All vulnerabilities

Servers and applications

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 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.

Severity
Medium 4.3
Published
3 Jul 2012
Last changed
16 Jun 2026
Added to UpHeron
21 Oct 2026
Fixed in
2.1.0, 2.6.8, 2.7.3, 3.1.5, 3.2.3
Exploit chance
5.7% in the next 30 daysHigher than 93% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Uncontrolled resource consumption (CWE-400)
Attack
Over the network · No login needed
Attacker can
Slow it down
CVSS vector
AV:N/AC:M/Au:N/C:N/I:N/A:P
Sources
NVD

Affected software

SoftwareAffected versions
ExpatServers and applications · cpe:a:libexpat_project:libexpat
  • Every version before 2.1.0
PythonServers and applications · cpe:a:python:python
  • From 2.6.0 before 2.6.8
  • From 2.7.0 before 2.7.3
  • From 3.1.0 before 3.1.5
  • From 3.2.0 before 3.2.3

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2012-0876
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2012-0876