Skip to content
Fencer Intel
medium 4.3

CVE-2012-0876 json

The XML parser (xmlparse.c) in expat before 2.1.0 computes hash values without restricting the ability to trigger hash collisions predictab…

published 2012-07-03 14 y ago modified 2026-06-16 4 mo ago also EUVD-2012-0901

cvss
4.3
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
5.7%
EPSS 5.7% chance of exploitation in 30 days, percentile 93%
public exploits
0
none known

Summary

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.

Patch / fix

  • libexpat_project libexpat 2.1.0
  • python python 2.6.8, 2.7.3, 3.1.5, 3.2.3
  • 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-0876

  • expat RHEL 5 1.95.8-11.el5_8
  • expat RHEL 6 2.0.1-11.el6_2

red hat advisories RHSA-2012:0731

  • python3 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +18 more 3.4.10-25.39.3
  • python3-base SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +18 more 3.4.10-25.39.2

suse advisories SUSE-SU-2020:0497-1

  • 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-0876 updated cvss 5.0

expat: hash table collisions CPU usage DoS

  • Red Hat Directory Server 8 expat
    affected: no fix available
  • Red Hat Enterprise Linux 4 expat Red Hat Enterprise Linux 5 xmlrpc-c
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux 6 compat-expat1, mingw32-expat
    affected: no fix available, no fix planned “Will not fix”
  • Red Hat JBoss Enterprise Application Platform 6 expat Red Hat JBoss Enterprise Web Server 3 expat
    affected: no fix available
  • 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_2
    +2 more products
    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
    fixed: vendor fix RHSA-2012:0731
  • Red Hat JBoss Core Services
    fixed: vendor fix RHSA-2016:2957
  • Red Hat JBoss Enterprise Application Platform 6.4
    fixed: vendor fix RHSA-2017:3239
  • Red Hat JBoss Web Server 2.1
    fixed: vendor fix RHSA-2016:0062
show 1 more
  • Red Hat RHEL Desktop Workstation (v. 5 client) expat 1.95.8-11.el5_8
    fixed: 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

5.66% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

Weakness
  • CWE-400 Uncontrolled Resource Consumption

References

Sources

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.