CVE-2012-1148
Memory leak in the poolGrow function in expat/lib/xmlparse.c in expat before 2.1.0 allows context...
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.
Exploit likelihood
What each source reports
NVD Score used
5.0
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.
- Record
CVE-2012-1148- CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-399
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2012-1148- Updated
- 2026-11-02
EUVDEUVD-2012-1182 No score
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.
- Record
EUVD-2012-1182- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-hm5h-j86h-82pc No score
Memory leak in the poolGrow function in expat/lib/xmlparse.c in expat before 2.1.0 allows context...
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.
- Record
GHSA-hm5h-j86h-82pc- Updated
- 2026-11-02
OSVRHSA-2012:0731
7.5
Red Hat Security Advisory: expat security update
- Record
RHSA-2012:0731- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2012-1148- Updated
- 2026-11-02
Show 5 moreShow less
OSVDEBIAN-CVE-2012-1148 No score
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.
- Record
DEBIAN-CVE-2012-1148- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10077-1 No score
expat-2.2.0-3.1 on GA media
These are all security issues fixed in the expat-2.2.0-3.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10077-1- Updated
- 2026-11-02
OSVUBUNTU-CVE-2012-1148 No score
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.
- Record
UBUNTU-CVE-2012-1148- Updated
- 2026-11-02
OSVUSN-5455-1 No score
libxmltok vulnerabilities
Tim Boddy, Gustavo Grieco and others discovered that Expat, that is integrated in xmltok library, incorrectly handled certain files. An attacker could possibly use these issues to cause a denial of service, or possibly execute arbitrary code. These issues were only addressed in Ubuntu 16.04 ESM. (CVE-2012-1148, CVE-2015-1283, CVE-2016-0718, CVE-2016-4472, CVE-2018-20843, CVE-2019-15903, CVE-2021-46143, CVE-2022-22822, CVE-2022-22823, CVE-2022-22824, CVE-2022-22825, CVE-2022-22826, CVE-2022-22827)
It was discovered that Expat, that is integrated in xmltok library, incorrectly handled encoding validation of certain files. An attacker could possibly use this issue to cause a denial of service, or possibly execute arbitrary code. (CVE-2022-25235)
It was discovered that Expat, that is integrated in xmltok library, incorrectly handled namespace URIs of certain files. An attacker could possibly use this issue to cause a denial of service, or possibly execute arbitrary code. (CVE-2022-25236)
- Record
USN-5455-1- Updated
- 2026-11-02
OSVUSN-7307-1 No score
libxmltok vulnerability
Tim Boddy discovered that Expat, contained within the xmltok library, did not properly handle memory reallocation when processing XML files. If a user or application linked against Expat were tricked into opening a crafted XML file, an attacker could cause a denial of service by consuming excessive memory resources.
- Record
USN-7307-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
expatDebian:12 |
before 2.1.0~beta3-1 | 2.1.0~beta3-1 |
expatDebian:13 |
before 2.1.0~beta3-1 | 2.1.0~beta3-1 |
expatDebian:14 |
before 2.1.0~beta3-1 | 2.1.0~beta3-1 |
libxmltokDebian:12 |
All versions, plus listed versions 1.2-41.2-4.11.2-4.1~exp11.2-4.2 |
None known |
xmlrpc-cDebian:12 |
before 1.16.33-3.2 | 1.16.33-3.2 |
xmlrpc-cDebian:13 |
before 1.16.33-3.2 | 1.16.33-3.2 |
xmlrpc-cDebian:14 |
before 1.16.33-3.2 | 1.16.33-3.2 |
expatDebian:6.0 |
before 2.0.1-7+squeeze1, plus listed versions 2.0.1-7 |
2.0.1-7+squeeze1 |
expatRed Hat:enterprise_linux:5::client |
before 0:1.95.8-11.el5_8 | 0:1.95.8-11.el5_8 |
expat-debuginfoRed Hat:enterprise_linux:5::client |
before 0:1.95.8-11.el5_8 | 0:1.95.8-11.el5_8 |
Show 66 moreShow less
| Package | Affected | Fixed |
|---|---|---|
expatRed Hat:enterprise_linux:5::client_workstation |
before 0:1.95.8-11.el5_8 | 0:1.95.8-11.el5_8 |
expat-debuginfoRed Hat:enterprise_linux:5::client_workstation |
before 0:1.95.8-11.el5_8 | 0:1.95.8-11.el5_8 |
expat-develRed Hat:enterprise_linux:5::client_workstation |
before 0:1.95.8-11.el5_8 | 0:1.95.8-11.el5_8 |
expatRed Hat:enterprise_linux:5::server |
before 0:1.95.8-11.el5_8 | 0:1.95.8-11.el5_8 |
expat-debuginfoRed Hat:enterprise_linux:5::server |
before 0:1.95.8-11.el5_8 | 0:1.95.8-11.el5_8 |
expat-develRed Hat:enterprise_linux:5::server |
before 0:1.95.8-11.el5_8 | 0:1.95.8-11.el5_8 |
expatRed Hat:enterprise_linux:6::client |
before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
expat-debuginfoRed Hat:enterprise_linux:6::client |
before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
expat-develRed Hat:enterprise_linux:6::client |
before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
expatRed Hat:enterprise_linux:6::computenode |
before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
expat-debuginfoRed Hat:enterprise_linux:6::computenode |
before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
expat-develRed Hat:enterprise_linux:6::computenode |
before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
expatRed Hat:enterprise_linux:6::server |
before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
expat-debuginfoRed Hat:enterprise_linux:6::server |
before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
expat-develRed Hat:enterprise_linux:6::server |
before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
expatRed Hat:enterprise_linux:6::workstation |
before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
expat-debuginfoRed Hat:enterprise_linux:6::workstation |
before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
expat-develRed Hat:enterprise_linux:6::workstation |
before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
coin3Ubuntu:Pro:14.04:LTS |
All versions, plus listed versions 3.1.4~abc9f50-33.1.4~abc9f50-43.1.4~abc9f50-4ubuntu23.1.4~abc9f50-4ubuntu2+esm13.1.4~abc9f50-4ubuntu2+esm2 |
None known |
vnc4Ubuntu:Pro:14.04:LTS |
All versions, plus listed versions 4.1.1+xorg4.3.0-37ubuntu54.1.1+xorg4.3.0-37ubuntu5.0.14.1.1+xorg4.3.0-37ubuntu5.0.24.1.1+xorg4.3.0-37ubuntu5.0.2+esm1 |
None known |
libxmltokUbuntu:Pro:16.04:LTS |
before 1.2-3ubuntu0.16.04.1~esm2, plus listed versions 1.2-3build31.2-3ubuntu0.16.04.1~esm1 |
1.2-3ubuntu0.16.04.1~esm2 |
ayttmUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 0.6.3-3build10.6.3-3ubuntu0.1~esm1 |
None known |
cableswigUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 0.1.0+git20150808-10.1.0+git20150808-20.1.0+git20150808-2ubuntu0.1~esm1 |
None known |
cadaverUbuntu:16.04:LTS |
All versions, plus listed versions 0.23.3-2ubuntu2 |
None known |
coin3Ubuntu:Pro:16.04:LTS |
All versions, plus listed versions 3.1.4~abc9f50+dfsg1-13.1.4~abc9f50+dfsg1-1ubuntu0.1~esm13.1.4~abc9f50+dfsg1-1ubuntu0.1~esm2 |
None known |
insighttoolkitUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 3.20.1+git20120521-63.20.1+git20120521-6build13.20.1+git20120521-6ubuntu0.1~esm1 |
None known |
matanzaUbuntu:16.04:LTS |
All versions, plus listed versions 0.13+ds1-5 |
None known |
swish-eUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 2.4.7-42.4.7-4build12.4.7-4ubuntu0.1~esm1 |
None known |
vnc4Ubuntu:Pro:16.04:LTS |
All versions, plus listed versions 4.1.1+xorg4.3.0-37.3ubuntu24.1.1+xorg4.3.0-37.3ubuntu2.1+esm1 |
None known |
cadaverUbuntu:18.04:LTS |
All versions, plus listed versions 0.23.3-2ubuntu3 |
None known |
coin3Ubuntu:Pro:18.04:LTS |
All versions, plus listed versions 3.1.4~abc9f50+dfsg1-23.1.4~abc9f50+dfsg2-13.1.4~abc9f50+dfsg3-13.1.4~abc9f50+dfsg3-23.1.4~abc9f50+dfsg3-2ubuntu0.1~esm1 |
None known |
libxmltokUbuntu:Pro:18.04:LTS |
before 1.2-4ubuntu0.18.04.1~esm5, plus listed versions 1.2-41.2-4ubuntu0.18.04.1~esm11.2-4ubuntu0.18.04.1~esm21.2-4ubuntu0.18.04.1~esm31.2-4ubuntu0.18.04.1~esm4 |
1.2-4ubuntu0.18.04.1~esm5 |
matanzaUbuntu:18.04:LTS |
All versions, plus listed versions 0.13+ds1-5build10.13+ds1-6 |
None known |
swish-eUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 2.4.7-5ubuntu12.4.7-5ubuntu1+esm1 |
None known |
vnc4Ubuntu:18.04:LTS |
All versions, plus listed versions 4.1.1+xorg4.3.0-37.3ubuntu2 |
None known |
cadaverUbuntu:20.04:LTS |
All versions, plus listed versions 0.23.3-2.1build1 |
None known |
libxmltokUbuntu:Pro:20.04:LTS |
before 1.2-4ubuntu0.20.04.1~esm5, plus listed versions 1.2-41.2-4ubuntu0.20.04.1~esm11.2-4ubuntu0.20.04.1~esm21.2-4ubuntu0.20.04.1~esm31.2-4ubuntu0.20.04.1~esm4 |
1.2-4ubuntu0.20.04.1~esm5 |
matanzaUbuntu:20.04:LTS |
All versions, plus listed versions 0.13+ds1-60.13+ds2-1 |
None known |
swish-eUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 2.4.7-6build12.4.7-6build22.4.7-6ubuntu0.1~esm1 |
None known |
cadaverUbuntu:22.04:LTS |
All versions, plus listed versions 0.23.3-2.1build1 |
None known |
matanzaUbuntu:22.04:LTS |
All versions, plus listed versions 0.13+ds2-1 |
None known |
libxmltokUbuntu:Pro:22.04:LTS |
before 1.2-4ubuntu0.22.04.1~esm5, plus listed versions 1.2-41.2-4ubuntu0.22.04.1~esm11.2-4ubuntu0.22.04.1~esm21.2-4ubuntu0.22.04.1~esm31.2-4ubuntu0.22.04.1~esm4 |
1.2-4ubuntu0.22.04.1~esm5 |
swish-eUbuntu:Pro:22.04:LTS |
All versions, plus listed versions 2.4.7-6build32.4.7-6.12.4.7-6.1build12.4.7-6.1ubuntu0.1~esm1 |
None known |
cadaverUbuntu:24.04:LTS |
All versions, plus listed versions 0.24+dfsg-20.24+dfsg-30.24+dfsg-3build10.24+dfsg-3build2 |
None known |
matanzaUbuntu:24.04:LTS |
All versions, plus listed versions 0.13+ds2-10.13+ds2-1build10.13+ds2-1build2 |
None known |
libxmltokUbuntu:Pro:24.04:LTS |
before 1.2-4.1ubuntu2.24.0.4.1+esm3, plus listed versions 1.2-4ubuntu11.2-4.1ubuntu11.2-4.1ubuntu21.2-4.1ubuntu2.24.0.4.1+esm11.2-4.1ubuntu2.24.0.4.1+esm2 |
1.2-4.1ubuntu2.24.0.4.1+esm3 |
swish-eUbuntu:Pro:24.04:LTS |
All versions, plus listed versions 2.4.7-6.22.4.7-6.2build12.4.7-6.2build22.4.7-6.2build32.4.7-6.2ubuntu0.1~esm1 |
None known |
cadaverUbuntu:25.10 |
All versions, plus listed versions 0.26+dfsg-2 |
None known |
matanzaUbuntu:25.10 |
All versions, plus listed versions 0.13+ds2-2 |
None known |
paraviewUbuntu:25.10 |
All versions, plus listed versions 5.13.2+dfsg-2ubuntu15.13.2+dfsg-2ubuntu25.13.2+dfsg-3 |
None known |
sitecopyUbuntu:25.10 |
All versions, plus listed versions 1:0.16.6-161:0.16.6-16build1 |
None known |
swish-eUbuntu:25.10 |
All versions, plus listed versions 2.4.7-6.32.4.7-6.3build12.4.7-7 |
None known |
cadaverUbuntu:26.10 |
All versions, plus listed versions 0.28+dfsg-2 |
None known |
matanzaUbuntu:26.10 |
All versions, plus listed versions 0.13+ds2-2build1 |
None known |
paraviewUbuntu:26.10 |
All versions, plus listed versions 6.0.1+dfsg1-76.0.1+dfsg1-86.1.1+dfsg1-2build1 |
None known |
sitecopyUbuntu:26.10 |
All versions, plus listed versions 1:0.16.6-16build1 |
None known |
swish-eUbuntu:26.10 |
All versions, plus listed versions 2.4.7-7.12.4.7-7.22.4.7-7.2build1 |
None known |
cadaverUbuntu:26.04:LTS |
All versions, plus listed versions 0.26+dfsg-20.28+dfsg-10.28+dfsg-2 |
None known |
matanzaUbuntu:26.04:LTS |
All versions, plus listed versions 0.13+ds2-20.13+ds2-2build1 |
None known |
paraviewUbuntu:26.04:LTS |
All versions, plus listed versions 5.13.2+dfsg-35.13.2+dfsg-3ubuntu15.13.2+dfsg-3.16.0.1+dfsg1-6ubuntu16.0.1+dfsg1-7 |
None known |
sitecopyUbuntu:26.04:LTS |
All versions, plus listed versions 1:0.16.6-16build1 |
None known |
swish-eUbuntu:Pro:26.04:LTS |
All versions, plus listed versions 2.4.7-72.4.7-7.12.4.7-7.1ubuntu0.1~esm1 |
None known |
libxmltokUbuntu:Pro:18.04:LTS |
before 1.2-4ubuntu0.18.04.1~esm1, plus listed versions 1.2-4 |
1.2-4ubuntu0.18.04.1~esm1 |
libxmltokUbuntu:Pro:20.04:LTS |
before 1.2-4ubuntu0.20.04.1~esm1, plus listed versions 1.2-4 |
1.2-4ubuntu0.20.04.1~esm1 |
libxmltokUbuntu:Pro:22.04:LTS |
before 1.2-4ubuntu0.22.04.1~esm1, plus listed versions 1.2-4 |
1.2-4ubuntu0.22.04.1~esm1 |
expatopenSUSE:Tumbleweed |
before 2.2.0-3.1 | 2.2.0-3.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2012-1148 is a medium vulnerability (CVSS 5.0) in Apple Mac Os X, published July 3, 2012. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.47%, the 89th percentile. Fixed in expat 2.1.0~beta3-1.
References
secunia.com/advisories/49504
ubuntu.com/usn/USN-1527-1
support.apple.com/HT205637
securitytracker.com/id/1034344
expat.cvs.sourceforge.net/viewvc/expat/expat/lib/xmlparse.c?r1=1.166&r2=1.167
secunia.com/advisories/51040
Show 59 moreShow less
rhn.redhat.com/errata/RHSA-2012-0731.html
securityfocus.com/bid/52379
sourceforge.net/projects/expat/files/expat/2.1.0
rhn.redhat.com/errata/RHSA-2016-0062.html
lists.apple.com/archives/security-announce/2015/Dec/msg00005.html
debian.org/security/2012/dsa-2525
mandriva.com/security/advisories?name=MDVSA-2012:041
sourceforge.net/tracker?func=detail&atid=110127&aid=2958794&group_id=10127
rhn.redhat.com/errata/RHSA-2016-2957.html
ubuntu.com/usn/USN-1613-2
secunia.com/advisories/51024
ubuntu.com/usn/USN-1613-1
nvd.nist.gov/vuln/detail/CVE-2012-1148
github.com/advisories/GHSA-hm5h-j86h-82pc
security-tracker.debian.org/tracker/CVE-2012-1148
access.redhat.com/errata/RHSA-2012:0731
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=786617
bugzilla.redhat.com/show_bug.cgi?id=801648
security.access.redhat.com/data/csaf/v2/advisories/2012/rhsa-2012_0731.json
access.redhat.com/security/cve/CVE-2012-0876
cve.org/CVERecord?id=CVE-2012-0876
nvd.nist.gov/vuln/detail/CVE-2012-0876
access.redhat.com/security/cve/CVE-2012-1148
cve.org/CVERecord?id=CVE-2012-1148
ubuntu.com/security/CVE-2012-1148
mail.python.org/pipermail/expat-bugs/2010-February/002870.html
openwall.com/lists/oss-security/2012/03/09/1
ubuntu.com/security/notices/USN-1527-1
ubuntu.com/security/notices/USN-1527-2
ubuntu.com/security/notices/USN-1613-1
ubuntu.com/security/notices/USN-1613-2
ubuntu.com/security/notices/USN-5455-1
ubuntu.com/security/notices/USN-7307-1
ubuntu.com/security/CVE-2015-1283
ubuntu.com/security/CVE-2016-0718
ubuntu.com/security/CVE-2016-4472
ubuntu.com/security/CVE-2018-20843
ubuntu.com/security/CVE-2019-15903
ubuntu.com/security/CVE-2021-46143
ubuntu.com/security/CVE-2022-22822
ubuntu.com/security/CVE-2022-22823
ubuntu.com/security/CVE-2022-22824
ubuntu.com/security/CVE-2022-22825
ubuntu.com/security/CVE-2022-22826
ubuntu.com/security/CVE-2022-22827
ubuntu.com/security/CVE-2022-25235
ubuntu.com/security/CVE-2022-25236
suse.com/security/cve/CVE-2009-2625
suse.com/security/cve/CVE-2009-3560
suse.com/security/cve/CVE-2009-3720
suse.com/security/cve/CVE-2012-0876
suse.com/security/cve/CVE-2012-1147
suse.com/security/cve/CVE-2012-1148
suse.com/security/cve/CVE-2012-6702
suse.com/security/cve/CVE-2015-1283
suse.com/security/cve/CVE-2016-0718
suse.com/security/cve/CVE-2016-4472
suse.com/security/cve/CVE-2016-5300