CVE-2012-1148 json
Memory leak in the poolGrow function in expat/lib/xmlparse.c in expat before 2.1.0 allows context-dependent attackers to cause a denial of…
published 2012-07-03 14 y ago modified 2026-06-16 4 mo ago also EUVD-2012-1182
- cvss
- 5.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.4%
- EPSS 3.4% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
Memory leak in 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.
Patch / fix
- expat Debian 14, Debian 13, Debian 12 2.1.0~beta3-1
- xmlrpc-c Debian 14, Debian 13, Debian 12 1.16.33-3.2
debian advisories DEBIAN-CVE-2012-1148
- libxmltok Ubuntu Pro 16.04 LTS 1.2-3ubuntu0.16.04.1~esm2
- libxmltok Ubuntu Pro 18.04 LTS 1.2-4ubuntu0.18.04.1~esm5
- libxmltok Ubuntu Pro 20.04 LTS 1.2-4ubuntu0.20.04.1~esm5
- libxmltok Ubuntu Pro 22.04 LTS 1.2-4ubuntu0.22.04.1~esm5
- libxmltok Ubuntu Pro 24.04 LTS 1.2-4.1ubuntu2.24.0.4.1+esm3
ubuntu advisories UBUNTU-CVE-2012-1148
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- expat RHEL 5 1.95.8-11.el5_8
- expat RHEL 6 2.0.1-11.el6_2
red hat advisories RHSA-2012:0731
- expat openSUSE Tumbleweed 2.2.0-3.1
opensuse advisories openSUSE-SU-2024:10077-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2012-1148 updated cvss 7.5
expat: Memory leak in poolGrow
-
Red Hat Directory Server 8 expataffected: no fix available
-
Red Hat Enterprise Linux 4 expat Red Hat Enterprise Linux 5 xmlrpc-c Red Hat Enterprise Linux 6 compat-expat1, mingw32-expataffected: no fix planned “Will not fix”
-
Red Hat JBoss Core Services expat Red Hat JBoss Enterprise Application Platform 6 expat Red Hat JBoss Enterprise Web Server 2 expataffected: no fix available
-
Red Hat JBoss Enterprise Web Server 3 expataffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux (v. 5 server) expat 1.95.8-11.el5_8 Red Hat Enterprise Linux Desktop (v. 5 client) expat 1.95.8-11.el5_8 Red Hat Enterprise Linux Desktop (v. 6) expat 2.0.1-11.el6_2 Red Hat Enterprise Linux Desktop Optional (v. 6) expat 2.0.1-11.el6_2 Red Hat Enterprise Linux HPC Node (v. 6) expat 2.0.1-11.el6_2 Red Hat Enterprise Linux HPC Node Optional (v. 6) expat 2.0.1-11.el6_2fixed: vendor fix RHSA-2012:0731
+2 more productsfewer
Red Hat Enterprise Linux Server (v. 6) expat 2.0.1-11.el6_2 Red Hat Enterprise Linux Workstation (v. 6) expat 2.0.1-11.el6_2 -
Red Hat JBoss Core Servicesfixed: vendor fix RHSA-2016:2957
-
Red Hat RHEL Desktop Workstation (v. 5 client) expat 1.95.8-11.el5_8fixed: vendor fix RHSA-2012:0731
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.43% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-399 Resource Management Errors
References
-
expat.cvs.sourceforge.net
/viewvc/expat/expat/lib/xmlparse.c?r1=1.166&r2=1.167
patch
-
ubuntu.com
/usn/USN-1527-1
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2012-0731.html
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2016-0062.html
vendor-advisory
-
lists.apple.com
/archives/security-announce/2015/Dec/msg00005.html
vendor-advisory
-
debian.org
/security/2012/dsa-2525
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2012:041
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2016-2957.html
vendor-advisory
-
ubuntu.com
/usn/USN-1613-2
vendor-advisory
-
ubuntu.com
/usn/USN-1613-1
vendor-advisory
-
secunia.com
/advisories/49504
third-party-advisory, vendor-advisory
- support.apple.com /HT205637
-
securitytracker.com
/id/1034344
vdb-entry
-
secunia.com
/advisories/51040
third-party-advisory
-
securityfocus.com
/bid/52379
vdb-entry
- sourceforge.net /projects/expat/files/expat/2.1.0/
- sourceforge.net /tracker/?func=detail&atid=110127&aid=2958794&group_id=10127
-
secunia.com
/advisories/51024
third-party-advisory
Sources
- CVE List CVE-2012-1148
- NVD CVE-2012-1148
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.