Every CVE Search/ Get API key

CVE-2012-1148

Memory leak in the poolGrow function in expat/lib/xmlparse.c in expat before 2.1.0 allows context...

5.0 MediumFix available

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

3.47%Up 0.8 points since Feb 4, 2022
90%50%10%1%

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 MediumAV: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 HighCVSS: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

Affected packages
PackageAffectedFixed
expat
Debian:12
before 2.1.0~beta3-1
2.1.0~beta3-1
expat
Debian:13
before 2.1.0~beta3-1
2.1.0~beta3-1
expat
Debian:14
before 2.1.0~beta3-1
2.1.0~beta3-1
libxmltok
Debian:12
All versions, plus listed versions
1.2-41.2-4.11.2-4.1~exp11.2-4.2
None known
xmlrpc-c
Debian:12
before 1.16.33-3.2
1.16.33-3.2
xmlrpc-c
Debian:13
before 1.16.33-3.2
1.16.33-3.2
xmlrpc-c
Debian:14
before 1.16.33-3.2
1.16.33-3.2
expat
Debian:6.0
before 2.0.1-7+squeeze1, plus listed versions
2.0.1-7
2.0.1-7+squeeze1
expat
Red Hat:enterprise_linux:5::client
before 0:1.95.8-11.el5_8
0:1.95.8-11.el5_8
expat-debuginfo
Red Hat:enterprise_linux:5::client
before 0:1.95.8-11.el5_8
0:1.95.8-11.el5_8
Show 66 moreShow less
Affected packages
PackageAffectedFixed
expat
Red Hat:enterprise_linux:5::client_workstation
before 0:1.95.8-11.el5_8
0:1.95.8-11.el5_8
expat-debuginfo
Red Hat:enterprise_linux:5::client_workstation
before 0:1.95.8-11.el5_8
0:1.95.8-11.el5_8
expat-devel
Red Hat:enterprise_linux:5::client_workstation
before 0:1.95.8-11.el5_8
0:1.95.8-11.el5_8
expat
Red Hat:enterprise_linux:5::server
before 0:1.95.8-11.el5_8
0:1.95.8-11.el5_8
expat-debuginfo
Red Hat:enterprise_linux:5::server
before 0:1.95.8-11.el5_8
0:1.95.8-11.el5_8
expat-devel
Red Hat:enterprise_linux:5::server
before 0:1.95.8-11.el5_8
0:1.95.8-11.el5_8
expat
Red Hat:enterprise_linux:6::client
before 0:2.0.1-11.el6_2
0:2.0.1-11.el6_2
expat-debuginfo
Red Hat:enterprise_linux:6::client
before 0:2.0.1-11.el6_2
0:2.0.1-11.el6_2
expat-devel
Red Hat:enterprise_linux:6::client
before 0:2.0.1-11.el6_2
0:2.0.1-11.el6_2
expat
Red Hat:enterprise_linux:6::computenode
before 0:2.0.1-11.el6_2
0:2.0.1-11.el6_2
expat-debuginfo
Red Hat:enterprise_linux:6::computenode
before 0:2.0.1-11.el6_2
0:2.0.1-11.el6_2
expat-devel
Red Hat:enterprise_linux:6::computenode
before 0:2.0.1-11.el6_2
0:2.0.1-11.el6_2
expat
Red Hat:enterprise_linux:6::server
before 0:2.0.1-11.el6_2
0:2.0.1-11.el6_2
expat-debuginfo
Red Hat:enterprise_linux:6::server
before 0:2.0.1-11.el6_2
0:2.0.1-11.el6_2
expat-devel
Red Hat:enterprise_linux:6::server
before 0:2.0.1-11.el6_2
0:2.0.1-11.el6_2
expat
Red Hat:enterprise_linux:6::workstation
before 0:2.0.1-11.el6_2
0:2.0.1-11.el6_2
expat-debuginfo
Red Hat:enterprise_linux:6::workstation
before 0:2.0.1-11.el6_2
0:2.0.1-11.el6_2
expat-devel
Red Hat:enterprise_linux:6::workstation
before 0:2.0.1-11.el6_2
0:2.0.1-11.el6_2
coin3
Ubuntu: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
vnc4
Ubuntu: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
libxmltok
Ubuntu: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
ayttm
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
0.6.3-3build10.6.3-3ubuntu0.1~esm1
None known
cableswig
Ubuntu: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
cadaver
Ubuntu:16.04:LTS
All versions, plus listed versions
0.23.3-2ubuntu2
None known
coin3
Ubuntu: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
insighttoolkit
Ubuntu: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
matanza
Ubuntu:16.04:LTS
All versions, plus listed versions
0.13+ds1-5
None known
swish-e
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
2.4.7-42.4.7-4build12.4.7-4ubuntu0.1~esm1
None known
vnc4
Ubuntu: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
cadaver
Ubuntu:18.04:LTS
All versions, plus listed versions
0.23.3-2ubuntu3
None known
coin3
Ubuntu: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
libxmltok
Ubuntu: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
matanza
Ubuntu:18.04:LTS
All versions, plus listed versions
0.13+ds1-5build10.13+ds1-6
None known
swish-e
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
2.4.7-5ubuntu12.4.7-5ubuntu1+esm1
None known
vnc4
Ubuntu:18.04:LTS
All versions, plus listed versions
4.1.1+xorg4.3.0-37.3ubuntu2
None known
cadaver
Ubuntu:20.04:LTS
All versions, plus listed versions
0.23.3-2.1build1
None known
libxmltok
Ubuntu: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
matanza
Ubuntu:20.04:LTS
All versions, plus listed versions
0.13+ds1-60.13+ds2-1
None known
swish-e
Ubuntu:Pro:20.04:LTS
All versions, plus listed versions
2.4.7-6build12.4.7-6build22.4.7-6ubuntu0.1~esm1
None known
cadaver
Ubuntu:22.04:LTS
All versions, plus listed versions
0.23.3-2.1build1
None known
matanza
Ubuntu:22.04:LTS
All versions, plus listed versions
0.13+ds2-1
None known
libxmltok
Ubuntu: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-e
Ubuntu: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
cadaver
Ubuntu:24.04:LTS
All versions, plus listed versions
0.24+dfsg-20.24+dfsg-30.24+dfsg-3build10.24+dfsg-3build2
None known
matanza
Ubuntu:24.04:LTS
All versions, plus listed versions
0.13+ds2-10.13+ds2-1build10.13+ds2-1build2
None known
libxmltok
Ubuntu: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-e
Ubuntu: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
cadaver
Ubuntu:25.10
All versions, plus listed versions
0.26+dfsg-2
None known
matanza
Ubuntu:25.10
All versions, plus listed versions
0.13+ds2-2
None known
paraview
Ubuntu:25.10
All versions, plus listed versions
5.13.2+dfsg-2ubuntu15.13.2+dfsg-2ubuntu25.13.2+dfsg-3
None known
sitecopy
Ubuntu:25.10
All versions, plus listed versions
1:0.16.6-161:0.16.6-16build1
None known
swish-e
Ubuntu:25.10
All versions, plus listed versions
2.4.7-6.32.4.7-6.3build12.4.7-7
None known
cadaver
Ubuntu:26.10
All versions, plus listed versions
0.28+dfsg-2
None known
matanza
Ubuntu:26.10
All versions, plus listed versions
0.13+ds2-2build1
None known
paraview
Ubuntu:26.10
All versions, plus listed versions
6.0.1+dfsg1-76.0.1+dfsg1-86.1.1+dfsg1-2build1
None known
sitecopy
Ubuntu:26.10
All versions, plus listed versions
1:0.16.6-16build1
None known
swish-e
Ubuntu:26.10
All versions, plus listed versions
2.4.7-7.12.4.7-7.22.4.7-7.2build1
None known
cadaver
Ubuntu:26.04:LTS
All versions, plus listed versions
0.26+dfsg-20.28+dfsg-10.28+dfsg-2
None known
matanza
Ubuntu:26.04:LTS
All versions, plus listed versions
0.13+ds2-20.13+ds2-2build1
None known
paraview
Ubuntu: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
sitecopy
Ubuntu:26.04:LTS
All versions, plus listed versions
1:0.16.6-16build1
None known
swish-e
Ubuntu: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
libxmltok
Ubuntu: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
libxmltok
Ubuntu: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
libxmltok
Ubuntu: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
expat
openSUSE:Tumbleweed
before 2.2.0-3.1
2.2.0-3.1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 59 moreShow less
MoveEnter Open