CVE-2012-6532: Zendframework/zendframework1 Zend Framework XEE Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-jh4x-4wmf-67pr
CWE-776
Published
Advisory Summary

CVE-2012-6532 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-6532 at a Glance

CVE Identifier CVE-2012-6532
GHSA Identifier GHSA-jh4x-4wmf-67pr
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
Affected Product Zendframework/zendframework1
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2012-6532

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.

zendframework/zendframework1 fixed: 1.11.13
Upgrade zendframework/zendframework1 to 1.11.13
zendframework/zendframework1 fixed: 1.12.0
Upgrade zendframework/zendframework1 to 1.12.0
Verify Direct and Transitive Dependencies

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-6532, 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

(1) `Zend_Dom`, (2) `Zend_Feed`, (3) `Zend_Soap`, and (4) `Zend_XmlRpc` in Zend Framework 1.x before 1.11.13 and 1.12.x before 1.12.0 allow remote attackers to cause a denial of service (CPU consumption) via recursive or circular references in an XML entity definition in an XML DOCTYPE declaration, aka an XML Entity Expansion (XEE) attack.

CVE-2012-6532 Affected Zendframework/zendframework1 Versions

2 component(s)
Fixed Versions:
1.11.131.12.0
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-6532?
CVE-2012-6532 is a security vulnerability in Zendframework/zendframework1 involving Zend Framework XEE Vulnerability under CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion').
Which Zendframework/zendframework1 versions are affected?
Affected versions include releases prior to 1.11.13, 1.12.0 across affected packages: zendframework/zendframework1.
What version fixes CVE-2012-6532?
Upgrading to 1.11.13, 1.12.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is zendframework/zendframework1 affected?
Yes, zendframework/zendframework1 is affected in releases prior to 1.11.13, 1.12.0. Upgrade your dependency to 1.11.13, 1.12.0 or later.
What CWE is associated with CVE-2012-6532?
CVE-2012-6532 is classified under CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') (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.).
How can I check Packagist dependencies for CVE-2012-6532?
Run the dependency tree command: 'inspect dependencies for zendframework/zendframework1'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jh4x-4wmf-67pr",
  "modified" : "2024-01-12T18:28:17Z",
  "published" : "2022-05-17T05:10:32Z",
  "aliases" : [ "CVE-2012-6532" ],
  "summary" : "Zend Framework XEE Vulnerability",
  "details" : "(1) `Zend_Dom`, (2) `Zend_Feed`, (3) `Zend_Soap`, and (4) `Zend_XmlRpc` in Zend Framework 1.x before 1.11.13 and 1.12.x before 1.12.0 allow remote attackers to cause a denial of service (CPU consumption) via recursive or circular references in an XML entity definition in an XML DOCTYPE declaration, aka an XML Entity Expansion (XEE) attack.",
  "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-6532"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zendframework/zf1/commit/1b5e86183a72b7b10b6c89e4f95f08c5da9716db"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zendframework/zf1"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20131101014013/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2013:115/?name=MDVSA-2013:115"
  }, {
    "type" : "WEB",
    "url" : "http://framework.zend.com/security/advisory/ZF2012-02"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-776" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-12T18:28:17Z",
    "nvd_published_at" : "2013-02-13T17:55:00Z"
  }
}