Memory leak in expat - CVE-2012-1148

 

Memory leak in expat - CVE-2012-1148

Published: July 3, 2012 / Updated: August 3, 2020


Vulnerability identifier: #VU33116
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-1148
CWE-ID: CWE-401
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to memory leak within the poolGrow function in expat/lib/xmlparse.c in expat before 2.1.0 allows context-dependent attackers to cause a denial of service (memory consumption) via a large number of crafted XML files that cause improperly-handled reallocation failures when expanding entities. A remote attacker can perform a denial of service attack.


Affected software

expat
Amazon Linux AMI
Gentoo Linux
Ubuntu
expat (Alpine package)
libxmltok1t64 (Ubuntu package)
libxmltok1 (Ubuntu package)
NetWorker Management Console

How to mitigate CVE-2012-1148

Update to version 2.1.0.

expat - update to 2.1.0
expat (Alpine package) - update to 2.1.0-r0
libxmltok1t64 (Ubuntu package) - addressed in versions Ubuntu Pro, 1.2-4.1ubuntu3.2
libxmltok1 (Ubuntu package) - update to Ubuntu Pro
NetWorker Management Console - update to 19.12.0.1

External References

Related Security Bulletins