CVE-2012-6531: Zendframework/zendframework1 Zend Framework XEE Vulnerability Vulnerability
MODERATECVE-2012-6531 is a MODERATE zend framework xee vulnerability vulnerability (CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')) affecting Zendframework/zendframework1 libraries in the Packagist ecosystem. The issue involves zend framework xee vulnerability. Remediation is available by upgrading affected packages to version 1.11.13, 1.12.0.
CVE-2012-6531 at a Glance
How to Fix CVE-2012-6531
To remediate this vulnerability, upgrade all affected Zendframework/zendframework1 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade zendframework/zendframework1 to 1.11.13
Upgrade zendframework/zendframework1 to 1.12.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for zendframework/zendframework1
How to Check if You Are Affected
To determine whether your application is affected by CVE-2012-6531, inspect your project dependencies for Zendframework/zendframework1:
inspect dependencies for zendframework/zendframework1
Analyze the terminal output to locate any version of Zendframework/zendframework1 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.11.13), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion'), where the product uses xml documents and allows their structure to be defined with a document type definition (dtd), but it does not properly control the number of recursive definitions of entities. In Zendframework/zendframework1, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2012-6531 Affected Zendframework/zendframework1 Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
zendframework/zendframework1
|
Packagist |
≥ 1.0
< 1.11.13
|
1.11.13
|
|
zendframework/zendframework1
|
Packagist |
≥ 1.12.0-rc1
< 1.12.0
|
1.12.0
|
References
Frequently Asked Questions
What is CVE-2012-6531?
Which Zendframework/zendframework1 versions are affected?
What version fixes CVE-2012-6531?
Is zendframework/zendframework1 affected?
What CWE is associated with CVE-2012-6531?
How can I check Packagist dependencies for CVE-2012-6531?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h5p3-7mg6-hgj4",
"modified" : "2024-01-12T19:50:47Z",
"published" : "2022-05-17T05:14:21Z",
"aliases" : [ "CVE-2012-6531" ],
"summary" : "Zend Framework XEE Vulnerability",
"details" : "(1) `Zend_Dom`, (2) `Zend_Feed`, and (3) `Zend_Soap` in Zend Framework 1.x before 1.11.13 and 1.12.x before 1.12.0 do not properly handle SimpleXMLElement classes, which allow remote attackers to read arbitrary files or create TCP connections via an external entity reference in a DOCTYPE element in an XML-RPC request, aka an XML external entity (XXE) injection attack, a different vulnerability than CVE-2012-3363.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "zendframework/zendframework1"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0"
}, {
"fixed" : "1.11.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "zendframework/zendframework1"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.12.0-rc1"
}, {
"fixed" : "1.12.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-6531"
}, {
"type" : "WEB",
"url" : "https://github.com/zendframework/zf1/commit/1b5e86183a72b7b10b6c89e4f95f08c5da9716db"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/zendframework/zf1"
}, {
"type" : "WEB",
"url" : "https://www.sec-consult.com/files/20120626-0_zend_framework_xxe_injection.txt"
}, {
"type" : "WEB",
"url" : "http://framework.zend.com/security/advisory/ZF2012-01"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2012/dsa-2505"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2012/06/26/2"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2012/06/26/4"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2012/06/27/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-776" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-12T19:50:47Z",
"nvd_published_at" : "2013-02-13T17:55:00Z"
}
}