Out-of-bounds read in libxml2 (Alpine package)

Published: 2020-09-16
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE ID CVE-2020-24977
Exploitation vector Network
Public exploit N/A
Vulnerable software
libxml2 (Alpine package)
Operating systems & Components / Operating system package or component

Vendor Alpine Linux Development Team

Security Advisory

This security advisory describes one medium risk vulnerability.

1) Out-of-bounds read

Risk: Medium

CVSSv3: 4.7 [CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:U/RL:W/RC:C] [PCI]

CVE-ID: CVE-2020-24977

CWE-ID: CWE-125 - Out-of-bounds Read

Exploit availability: No


The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to a boundary condition within the xmlEncodeEntitiesInternal() function in libxml2/entities.c in libxml2. A remote attacker can pas specially crafted XML data to the affected application, trigger out-of-bounds read error and read contents of memory on the system.


Install update from vendor's website.

Vulnerable software versions

libxml2 (Alpine package)

Alpine Linux 2.5
2.9.1-r1, 2.9.1-r0

Alpine Linux 3.12

CPE External links


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.