CVE-2012-3363: Zendframework/zendframework1 Zend Framework XXE Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-7pg4-5233-82jv
CVSS 7.3
CWE-611
Published
Advisory Summary

CVE-2012-3363 is a HIGH (CVSS 7.3) zend framework xxe vulnerability vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Zendframework/zendframework1 libraries in the Packagist ecosystem. The issue involves zend framework xxe vulnerability. Remediation is available by upgrading affected packages to version 1.11.12, 1.12.0.

CVE-2012-3363 at a Glance

CVE Identifier CVE-2012-3363
GHSA Identifier GHSA-7pg4-5233-82jv
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Zendframework/zendframework1
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2012-3363

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.12
Upgrade zendframework/zendframework1 to 1.11.12
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-3363, 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.12), 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-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. 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

`Zend_XmlRpc` in Zend Framework 1.x before 1.11.12 and 1.12.x before 1.12.0 does not properly handle `SimpleXMLElement` classes, which allows 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.

CVE-2012-3363 Affected Zendframework/zendframework1 Versions

2 component(s)
Fixed Versions:
1.11.121.12.0
Product / Package Ecosystem Affected Versions Fixed Version
zendframework/zendframework1
Packagist
≥ 1.0.0
< 1.11.12
1.11.12
zendframework/zendframework1
Packagist
≥ 1.12.0-rc1
< 1.12.0
1.12.0

References

NVD — CVE-2012-3363 NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-3363
Security Fix Commit FIX COMMIT
https://github.com/zendframework/zf1/commit/281a3251d71ed40a5289ec4afc355eea8e014dc5
Zendframework/zendframework1 Source Repository REPOSITORY
https://github.com/zendframework/zf1
moodle.org/mod/forum/discuss.p... WEB
https://moodle.org/mod/forum/discuss.php?d=225345
Zendframework/zendframework1 Security Information SECURITY
https://web.archive.org/web/20170223044943/http://www.securitytracker.com/id?1027208
www.sec-consult.com/files/20120626-0_ze... WEB
https://www.sec-consult.com/files/20120626-0_zend_framework_xxe_injection.txt
Zendframework/zendframework1 Security Information SECURITY
http://framework.zend.com/security/advisory/ZF2012-01
git.moodle.org/gw WEB
http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-34284
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2013-April/101310.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2013-April/101358.html
Zendframework/zendframework1 Security Information SECURITY
http://openwall.com/lists/oss-security/2013/03/25/2
Zendframework/zendframework1 Security Information SECURITY
http://www.debian.org/security/2012/dsa-2505
Zendframework/zendframework1 Security Information SECURITY
http://www.openwall.com/lists/oss-security/2012/06/26/2
Zendframework/zendframework1 Security Information SECURITY
http://www.openwall.com/lists/oss-security/2012/06/26/4
Zendframework/zendframework1 Security Information SECURITY
http://www.openwall.com/lists/oss-security/2012/06/27/2
Zendframework/zendframework1 Security Information SECURITY
http://www.securitytracker.com/id?1027208

Frequently Asked Questions

What is CVE-2012-3363?
CVE-2012-3363 is a security vulnerability in Zendframework/zendframework1 involving Zend Framework XXE Vulnerability under CWE-611: Improper Restriction of XML External Entity Reference.
Which Zendframework/zendframework1 versions are affected?
Affected versions include releases prior to 1.11.12, 1.12.0 across affected packages: zendframework/zendframework1.
What version fixes CVE-2012-3363?
Upgrading to 1.11.12, 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.12, 1.12.0. Upgrade your dependency to 1.11.12, 1.12.0 or later.
What is the CVSS score of CVE-2012-3363?
CVE-2012-3363 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2012-3363?
CVE-2012-3363 is classified under CWE-611: Improper Restriction of XML External Entity Reference (The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.).
How can I check Packagist dependencies for CVE-2012-3363?
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-7pg4-5233-82jv",
  "modified" : "2024-04-09T14:07:57Z",
  "published" : "2022-05-17T04:56:50Z",
  "aliases" : [ "CVE-2012-3363" ],
  "summary" : "Zend Framework XXE Vulnerability",
  "details" : "`Zend_XmlRpc` in Zend Framework 1.x before 1.11.12 and 1.12.x before 1.12.0 does not properly handle `SimpleXMLElement` classes, which allows 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zendframework1"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.11.12"
      } ]
    } ]
  }, {
    "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-3363"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zendframework/zf1/commit/281a3251d71ed40a5289ec4afc355eea8e014dc5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zendframework/zf1"
  }, {
    "type" : "WEB",
    "url" : "https://moodle.org/mod/forum/discuss.php?d=225345"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20170223044943/http://www.securitytracker.com/id?1027208"
  }, {
    "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://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-34284"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2013-April/101310.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2013-April/101358.html"
  }, {
    "type" : "WEB",
    "url" : "http://openwall.com/lists/oss-security/2013/03/25/2"
  }, {
    "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"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id?1027208"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-12T18:22:11Z",
    "nvd_published_at" : "2013-02-13T17:55:00Z"
  }
}