December 4, 2019
CESNET libyang is prone to multiple stack-based buffer-overflow vulnerabilities because it fails to adequately bounds-check user-supplied data before copying it to an insufficiently sized memory buffer. An attacker can exploit these issues to execute arbitrary code in the context of an affected system. Failed exploit attempts may result in a denial-of-service condition. Versions prior to CESNET libyang 1.0-r5 are vulnerable.
- CESNET libyang 0.11-r1
- CESNET libyang 0.12-r1
- CESNET libyang 0.13-r1
- CESNET libyang 0.14-r1
- CESNET libyang 0.15-r1
- CESNET libyang 0.16-r1
- CESNET libyang 1.0-r1
- CESNET libyang 1.0-r2
- CESNET libyang 1.0-r4
- Redhat Enterprise Linux 8
Block external access at the network boundary, unless external parties require service.
If global access isn't needed, filter access to the affected computer at the network boundary. Restricting access to only trusted computers and networks might greatly reduce the likelihood of successful exploits.
Run all software as a nonprivileged user with minimal access rights.
Run all non-administrative software as a non-administrative user with the least amount of privileges required to successfully operate. This will greatly reduce the potential damage that successful exploitation may achieve.
Deploy network intrusion detection systems to monitor network traffic for malicious activity.
Deploy NIDS to monitor network traffic for signs of anomalous or suspicious activity. This includes but is not limited to requests that include NOP sleds and unexplained incoming and outgoing traffic. This may indicate exploit attempts or activity that results from successful exploits.
Implement multiple redundant layers of security.
Various memory-protection schemes (such as nonexecutable and randomly mapped memory segments) may hinder an attacker's ability to exploit this vulnerability to execute arbitrary code.
Updates are available. Please see the references or vendor advisory for more information.
- RedHat - Bug 1779573 (CVE-2019-19333) - CVE-2019-19333 libyang: stack-based buffer overfl
- RedHat - Bug 1779576 (CVE-2019-19334) - CVE-2019-19334 libyang: stack-based buffer overfl
- CESNET - libyang Homepage
- CESNET - parser BUGFIX long identity name buffer overflow
- CESNET - parser BUGFIX long identityref default value buffer overflow
- redhat - Redhat Homepage
Riccardo Schirone (Red Hat Product Security).
© 1995- Symantec Corporation
Permission to redistribute this alert electronically is granted as long as it is not edited in any way unless authorized by Symantec Security Response. Reprinting the whole or part of this alert in any medium other than electronically requires permission from email@example.com.
The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use in an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information.
Symantec, Symantec products, Symantec Security Response, and firstname.lastname@example.org are registered trademarks of Symantec Corp. and/or affiliated companies in the United States and other countries. All other registered and unregistered trademarks represented in this document are the sole property of their respective companies/owners.