CVE-2012-6702: Medium severity Libexpat Project Libexpat vulnerability

Published Jun 16, 2016
·
Updated

Expat, when used in a parser that has not called XMLSetHashSalt 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.

Affected Software

21 affected componentsFixes available
Libexpat Project Libexpat<2.2.0
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
Google Android
alpine/expat<2.2.0-r0
2.2.0-r0
alpine/expat<2.2.0-r0
2.2.0-r0
alpine/expat<2.2.0-r0
2.2.0-r0
debian/expat<2.1.1-3
2.1.1-3
debian/expat<2.1.1-3
2.1.1-3
debian/expat<2.1.1-3
2.1.1-3
debian/libxmltok*
debian/expat
2.1.0-1+deb7u42.1.0-6+deb8u32.1.1-3
debian/libxmltok<=1.2-4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/expat to a version that resolves this vulnerability.

    Fixed in 2.2.0-r0
  2. Upgrade

    Upgrade debian/expat to a version that resolves this vulnerability.

    Fixed in 2.1.1-3
  3. Upgrade

    Upgrade debian/expat to a version that resolves this vulnerability.

    Fixed in 2.1.0-1+deb7u4Fixed in 2.1.0-6+deb8u3Fixed in 2.1.1-3
  4. Configuration

    Call XML_SetHashSalt with a seed other than 0 before parsing.

    Expat parser XML_SetHashSalt = seed other than 0

Event History

Dec 31, 2012
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Jun 16, 2016
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Data Sourced
via OSV·06:59 PM
DescriptionAffected Software
Jan 25, 2021
Data Sourced
03:44 PM
Weakness
Oct 27, 2023
Data Sourced
via Android·12:00 AM
SeverityAffected Software
Updated
12:00 AM
Affected Software
Nov 7, 2023
Data Sourced
via NVD·02:13 AM
DescriptionSeverityWeaknessAffected Software
Updated
02:13 AM
Affected Software
Feb 7, 2024
Updated
via Android·12:00 AM
Affected Software
Mar 11, 2024
Updated
via Android·12:00 AM
Affected Software
Apr 29, 2024
Updated
via Android·12:00 AM
Affected Software
Aug 26, 2024
Updated
via Android·12:00 AM
Affected Software
Nov 21, 2024
Updated
via NVD·01:46 AM
Affected Software
Apr 12, 2025
Updated
via NVD·10:46 AM
Affected Software
Nov 18, 2026
Data Sourced
via OSV·12:01 PM
Severity

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2012-6702?

CVE-2012-6702 is a vulnerability in Expat that allows context-dependent attackers to defeat cryptographic protection mechanisms.

2

Which software is affected by CVE-2012-6702?

Google Android, Canonical Ubuntu Linux, Debian Debian Linux, and the Libexpat Project's Libexpat are affected by CVE-2012-6702.

3

What is the severity of CVE-2012-6702?

CVE-2012-6702 has a severity rating of medium with a CVSS score of 5.9.

4

How do I fix CVE-2012-6702 on Debian?

To fix CVE-2012-6702 on Debian, update the 'expat' package to version 2.2.0 or higher.

5

Where can I find more information about CVE-2012-6702?

You can find more information about CVE-2012-6702 on the MITRE CVE database, OSS Security mailing list, and Ubuntu's security notices.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203