CVE-2012-6702

MEDIUM

libexpat < 2.2.0 - Hash Collision via srand Function

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2012-6702. PoCs published by codecat007.

AI-analyzed exploit summary This PoC demonstrates a vulnerability in the Expat XML parser (CVE-2012-6702) by repeatedly creating and freeing parsers to exploit a flaw in random value generation, leading to potential memory corruption or DoS conditions.

Description

Expat, when used in a parser that has not called XML_SetHashSalt or passed it a seed of 0, makes it easier for context-dependent attackers to defeat cryptographic protection mechanisms via vectors involving use of the srand function.

Exploits (1)

github WORKING POC 8 stars
by codecat007 · cpoc
https://github.com/codecat007/cvehub/tree/main/android/securityPatch/CVE-2012-6702

This PoC demonstrates a vulnerability in the Expat XML parser (CVE-2012-6702) by repeatedly creating and freeing parsers to exploit a flaw in random value generation, leading to potential memory corruption or DoS conditions.

Classification
Working Poc 90%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: Expat XML parser (versions prior to fix)
No auth needed
Prerequisites: Access to a system using the vulnerable Expat library
devstral-2 · analyzed Feb 27, 2026 Full analysis →

References (8)

Core 8
Core References
Third Party Advisory x_refsource_confirm
https://www.tenable.com/security/tns-2016-20
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/91483
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2016/dsa-3597
Mailing List mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2016/06/04/1
Mailing List mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2016/06/03/8
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201701-21
Vendor Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/USN-3010-1

Scores

CVSS v3 5.9
EPSS 0.0072
EPSS Percentile 73.1%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Details

CWE
CWE-310
Status published
Products (11)
canonical/ubuntu_linux 12.04
canonical/ubuntu_linux 14.04
canonical/ubuntu_linux 15.10
canonical/ubuntu_linux 16.04
debian/debian_linux 8.0
google/android 4.4.4
google/android 5.0.2
google/android 5.1.1
google/android 6.0
google/android 6.0.1
... and 1 more
Published Jun 16, 2016
Tracked Since Feb 18, 2026