Memory leak in expat - CVE-2012-1148
Published: July 3, 2012 / Updated: August 3, 2020
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
Amazon Linux AMI
Gentoo Linux
Debian Linux
Ubuntu
expat (Alpine package)
libxmltok1 (Ubuntu package)
libxmlrpc-core-c3 (Ubuntu package)
libxmlrpc-core-c3-0 (Ubuntu package)
expat (Debian package)
python2.4-minimal (Ubuntu package)
python2.4 (Ubuntu package)
python2.5-minimal (Ubuntu package)
python2.5 (Ubuntu package)
libxmltok1t64 (Ubuntu package)
NetWorker Management Console
How to mitigate CVE-2012-1148
expat (Alpine package) - update to 2.1.0-r0
libxmltok1 (Ubuntu package) - addressed in versions Ubuntu Pro, 1.2-3ubuntu0.16.04.1~esm2, 1.2-4ubuntu0.18.04.1~esm1, 1.2-4ubuntu0.20.04.1~esm1, 1.2-4ubuntu0.22.04.1~esm1
libxmlrpc-core-c3 (Ubuntu package) - addressed in versions 1.06.27-1ubuntu7.1, 1.16.33-3.1ubuntu5.1
libxmlrpc-core-c3-0 (Ubuntu package) - addressed in versions 1.16.32-0ubuntu3.1, 1.16.32-0ubuntu4.1
expat (Debian package) - update to 2.0.1-7+squeeze1
python2.4-minimal (Ubuntu package) - update to 2.4.5-1ubuntu4.4
python2.4 (Ubuntu package) - update to 2.4.5-1ubuntu4.4
python2.5-minimal (Ubuntu package) - update to 2.5.2-2ubuntu6.2
python2.5 (Ubuntu package) - update to 2.5.2-2ubuntu6.2
libxmltok1t64 (Ubuntu package) - addressed in versions Ubuntu Pro, 1.2-4.1ubuntu3.2
NetWorker Management Console - update to 19.12.0.1
External References
- http://expat.cvs.sourceforge.net/viewvc/expat/expat/lib/xmlparse.c?r1=1.166&r2=1.167
- http://lists.apple.com/archives/security-announce/2015/Dec/msg00005.html
- http://rhn.redhat.com/errata/RHSA-2012-0731.html
- http://rhn.redhat.com/errata/RHSA-2016-0062.html
- http://rhn.redhat.com/errata/RHSA-2016-2957.html
- http://secunia.com/advisories/49504
- http://secunia.com/advisories/51024
- http://secunia.com/advisories/51040
- http://sourceforge.net/projects/expat/files/expat/2.1.0/
- http://sourceforge.net/tracker/?func=detail&atid=110127&aid=2958794&group_id=10127
- http://www.debian.org/security/2012/dsa-2525
- http://www.mandriva.com/security/advisories?name=MDVSA-2012:041
- http://www.securityfocus.com/bid/52379
- http://www.securitytracker.com/id/1034344
- http://www.ubuntu.com/usn/USN-1527-1
- http://www.ubuntu.com/usn/USN-1613-1
- http://www.ubuntu.com/usn/USN-1613-2
- https://support.apple.com/HT205637
Related Security Bulletins
- Memory leak in libexpat expat
- Memory leak in expat (Alpine package)
- Amazon Linux AMI update for expat
- Gentoo update for Expat
- Ubuntu update for libxmltok
- Dell NetWorker Management Console update for third-party components
- Ubuntu update for python2.5
- Ubuntu update for libxmltok
- Ubuntu update for xmlrpc-c
- Ubuntu update for python2.4
- DSA-2525-1: expat - several