CVE-2012-0876: The XML parser (xmlparse.c) in expat before 2.1.0 computes hash values without restricting the ability to trigger hash collisions…
Noroxi assessment
Priority: Monitor (action score 19/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 5.6% (FIRST EPSS); higher than 93.1% of all records.
- Fixed version: expat (Debian:12) 2.1.0~beta3-1; xmlrpc-c (Debian:12) 1.16.33-3.2; expat (Debian:6.0) 2.0.1-7+squeeze1.
Low priority for now. Upgrade to expat (Debian:12) 2.1.0~beta3-1; xmlrpc-c (Debian:12) 1.16.33-3.2; expat (Debian:6.0) 2.0.1-7+squeeze1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
The XML parser (xmlparse.c) in expat before 2.1.0 computes hash values without restricting the ability to trigger hash collisions predictably, which allows context-dependent attackers to cause a denial of service (CPU consumption) via an XML file with many identifiers with the same value.
- Published
- Jul 3, 2012
- Updated
- Jun 16, 2026
- EPSS
- 5.6% · 93th percentile
- CWE
- CWE-400
Report tools
Action score
19
Low priority for now.
- CVSS
- 17 / 40 · 4.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 5.6%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| libexpat project | libexpat | cpe:2.3:a:libexpat_project:libexpat |
| python | python | cpe:2.3:a:python:python |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
| oracle | solaris | cpe:2.3:o:oracle:solaris |
| redhat | storage | cpe:2.3:a:redhat:storage |
| redhat | enterprise linux desktop | cpe:2.3:o:redhat:enterprise_linux_desktop |
| redhat | enterprise linux eus | cpe:2.3:o:redhat:enterprise_linux_eus |
| redhat | enterprise linux server | cpe:2.3:o:redhat:enterprise_linux_server |
| redhat | enterprise linux server aus | cpe:2.3:o:redhat:enterprise_linux_server_aus |
| redhat | enterprise linux workstation | cpe:2.3:o:redhat:enterprise_linux_workstation |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux10.04
- canonical ubuntu linux11.04
- canonical ubuntu linux11.10
- canonical ubuntu linux12.04
- canonical ubuntu linux8.04
- debian debian linux6.0
- debian debian linux7.0
- libexpat project libexpatbefore 2.1.0
+12 more rows
- oracle solaris11.3
- python python3.1.0 and later · before 3.1.5
- python python2.7.0 and later · before 2.7.3
- python python2.6.0 and later · before 2.6.8
- python python3.2.0 and later · before 3.2.3
- redhat enterprise linux desktop5.0
- redhat enterprise linux desktop6.0
- redhat enterprise linux eus6.2
- redhat enterprise linux server5.0
- redhat enterprise linux server6.0
- redhat enterprise linux server aus6.2
- redhat enterprise linux workstation5.0
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | expat | before 2.1.0~beta3-1 | 2.1.0~beta3-1 |
| Debian:12 | libxmltok | from 0 | — |
| Debian:12 | xmlrpc-c | before 1.16.33-3.2 | 1.16.33-3.2 |
| Debian:6.0 | expat | before 2.0.1-7+squeeze1 | 2.0.1-7+squeeze1 |
| openSUSE:Tumbleweed | expat | before 2.2.0-3.1 | 2.2.0-3.1 |
| Red Hat:enterprise_linux:5::client | expat | before 0:1.95.8-11.el5_8 | 0:1.95.8-11.el5_8 |
| Red Hat:enterprise_linux:5::client | expat-debuginfo | before 0:1.95.8-11.el5_8 | 0:1.95.8-11.el5_8 |
| Red Hat:enterprise_linux:5::client_workstation | expat-devel | before 0:1.95.8-11.el5_8 | 0:1.95.8-11.el5_8 |
| Red Hat:enterprise_linux:6::client | expat | before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
| Red Hat:enterprise_linux:6::client | expat-debuginfo | before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
| Red Hat:enterprise_linux:6::client | expat-devel | before 0:2.0.1-11.el6_2 | 0:2.0.1-11.el6_2 |
| SUSE:HPE Helion OpenStack 8 | python3 | before 3.4.10-25.39.3 | 3.4.10-25.39.3 |
| SUSE:HPE Helion OpenStack 8 | python3-base | before 3.4.10-25.39.2 | 3.4.10-25.39.2 |
Same product
libexpat project: all recordsOther highest-scoring records for the same primary product.
- CVE-2022-25236xmlparse.c in Expat (aka libexpat) before 2.4.5 allows attackers to insert namespace-separator characters into namespace URIs.50Plan
- CVE-2022-23852Expat (aka libexpat) before 2.4.4 has a signed integer overflow in XML_GetBuffer, for configurations with a nonzero XML_CONTEXT_BYTES.41Plan
- CVE-2022-22822addBinding in xmlparse.c in Expat (aka libexpat) before 2.4.3 has an integer overflow.41Plan
Published before and after this one in the same product
- ← EarlierCVE-2009-3560Dec 4, 2009 · The big2_toUtf8 function in lib/xmltok.c in libexpat in Expat 2.0.1, as used in the XML-Twig module for Perl, allows context-dependent…27Monitor
- Later →CVE-2012-1148Jul 3, 2012 · 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…21Monitor
- Later →CVE-2013-0340Jan 21, 2014 · expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetEntityDeclHandler…33Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:expat | 2.1.0~beta3-1 · Debian:12 | Package registry (OSV) |
| debian:xmlrpc-c | 1.16.33-3.2 · Debian:12 | Package registry (OSV) |
| opensuse:expat | 2.2.0-3.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:expat | 0:1.95.8-11.el5_8 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:expat-debuginfo | 0:1.95.8-11.el5_8 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:expat-devel | 0:1.95.8-11.el5_8 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| suse:python3 | 3.4.10-25.39.3 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:python3-base | 3.4.10-25.39.2 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- P · the service can be disrupted
- Attack complexity
- M
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- P
Weakness class (CWE)
CWE-400 · Uncontrolled Resource ConsumptionCVSS vector
AV:N/AC:M/Au:N/C:N/I:N/A:P
nvd-primary
Root cause
Code that parses nested structures sets no depth or size limit. A small input can turn into a disproportionate processing load.
The bug in code
The whole CWE-400 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
function expand(node) {
return node.children.map(expand);
}Fixed
const MAX_DEPTH = 32;
function expand(node, depth = 0) {
if (depth > MAX_DEPTH) throw new Error("too deep");
return node.children.map((c) => expand(c, depth + 1));
}Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- lists.apple.com/archives/security-announce/2013/Oct/msg00004.html
- lists.apple.com/archives/security-announce/2015/Dec/msg00005.html
- mail.libexpat.org/pipermail/expat-discuss/2012-March/002768.html
- rhn.redhat.com/errata/RHSA-2012-0731.html
- rhn.redhat.com/errata/RHSA-2016-0062.html
- rhn.redhat.com/errata/RHSA-2016-2957.html
- secunia.com/advisories/49504
- secunia.com/advisories/51024
- secunia.com/advisories/51040
- sourceforge.net/projects/expat/files/expat/2.1.0/
- sourceforge.net/tracker/?func=detail&atid=110127&aid=3496608&group_id=10127
- www.debian.org/security/2012/dsa-2525
- www.mandriva.com/security/advisories?name=MDVSA-2012:041
- www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
- www.securityfocus.com/bid/52379
- www.ubuntu.com/usn/USN-1527-1
- www.ubuntu.com/usn/USN-1613-1
- www.ubuntu.com/usn/USN-1613-2
- kc.mcafee.com/corporate/index?page=content&id=SB10365
Vendor advisories and official records. Exploit/PoC links are deliberately left out.