CVE-2014-2682: Zendframework/zendframework1 Several Zend Products Vulnerable To Vulnerability

MODERATE
Advisory Identifier: GHSA-gp39-h9c2-qw79
CWE-776 CWE-611
Published
Advisory Summary

CVE-2014-2682 is a MODERATE several zend products vulnerable to 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 several zend products vulnerable to xxe and xee attacks. Remediation is available by upgrading affected packages to version 1.12.4, 2.0.2, 2.0.3, 1.0.0.

CVE-2014-2682 at a Glance

CVE Identifier CVE-2014-2682
GHSA Identifier GHSA-gp39-h9c2-qw79
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-2014-2682

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.12.4
Upgrade zendframework/zendframework1 to 1.12.4
zendframework/zendopenid fixed: 2.0.2
Upgrade zendframework/zendopenid to 2.0.2
zendframework/zendrest fixed: 2.0.2
Upgrade zendframework/zendrest to 2.0.2
zendframework/zendservice-audioscrobbler fixed: 2.0.2
Upgrade zendframework/zendservice-audioscrobbler to 2.0.2
zendframework/zendservice-nirvanix fixed: 2.0.2
Upgrade zendframework/zendservice-nirvanix to 2.0.2
zendframework/zendservice-slideshare fixed: 2.0.2
Upgrade zendframework/zendservice-slideshare to 2.0.2
zendframework/zendservice-technorati fixed: 2.0.2
Upgrade zendframework/zendservice-technorati to 2.0.2
zendframework/zendservice-windowsazure fixed: 2.0.2
Upgrade zendframework/zendservice-windowsazure to 2.0.2
zendframework/zendservice-amazon fixed: 2.0.3
Upgrade zendframework/zendservice-amazon to 2.0.3
zendframework/zendservice-api fixed: 1.0.0
Upgrade zendframework/zendservice-api to 1.0.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-2014-2682, 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.12.4), 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

Zend Framework 1 (ZF1) before 1.12.4, Zend Framework 2 before 2.1.6 and 2.2.x before 2.2.6, ZendOpenId, ZendRest, ZendService_AudioScrobbler, ZendService_Nirvanix, ZendService_SlideShare, ZendService_Technorati, and ZendService_WindowsAzure before 2.0.2, ZendService_Amazon before 2.0.3, and ZendService_Api before 1.0.0, when PHP-FPM is used, does not properly share the libxml_disable_entity_loader setting between threads, which might allow remote attackers to conduct XML External Entity (XXE) attacks via an XML external entity declaration in conjunction with an entity reference. NOTE: this issue exists because of an incomplete fix for CVE-2012-5657.

CVE-2014-2682 Affected Zendframework/zendframework1 Versions

10 component(s)
Fixed Versions:
1.12.42.0.22.0.31.0.0
Product / Package Ecosystem Affected Versions Fixed Version
zendframework/zendframework1
Packagist
< 1.12.4
1.12.4
zendframework/zendopenid
Packagist
< 2.0.2
2.0.2
zendframework/zendrest
Packagist
< 2.0.2
2.0.2
zendframework/zendservice-audioscrobbler
Packagist
< 2.0.2
2.0.2
zendframework/zendservice-nirvanix
Packagist
< 2.0.2
2.0.2
zendframework/zendservice-slideshare
Packagist
< 2.0.2
2.0.2
zendframework/zendservice-technorati
Packagist
< 2.0.2
2.0.2
zendframework/zendservice-windowsazure
Packagist
< 2.0.2
2.0.2
zendframework/zendservice-amazon
Packagist
< 2.0.3
2.0.3
zendframework/zendservice-api
Packagist
< 1.0.0
1.0.0

References

Frequently Asked Questions

What is CVE-2014-2682?
CVE-2014-2682 is a security vulnerability in Zendframework/zendframework1 involving Several Zend Products Vulnerable to XXE and XEE attacks 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.12.4, 2.0.2, 2.0.3, 1.0.0 across affected packages: zendframework/zendframework1, zendframework/zendopenid, zendframework/zendrest, zendframework/zendservice-audioscrobbler, zendframework/zendservice-nirvanix, zendframework/zendservice-slideshare, zendframework/zendservice-technorati, zendframework/zendservice-windowsazure, zendframework/zendservice-amazon, zendframework/zendservice-api.
What version fixes CVE-2014-2682?
Upgrading to 1.12.4, 2.0.2, 2.0.3, 1.0.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.12.4. Upgrade your dependency to 1.12.4 or later.
Is zendframework/zendopenid affected?
Yes, zendframework/zendopenid is affected in releases prior to 2.0.2. Upgrade your dependency to 2.0.2 or later.
What CWE is associated with CVE-2014-2682?
CVE-2014-2682 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-2014-2682?
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-gp39-h9c2-qw79",
  "modified" : "2023-09-25T14:47:31Z",
  "published" : "2022-05-14T00:56:24Z",
  "aliases" : [ "CVE-2014-2682" ],
  "summary" : "Several Zend Products Vulnerable to XXE and XEE attacks",
  "details" : "Zend Framework 1 (ZF1) before 1.12.4, Zend Framework 2 before 2.1.6 and 2.2.x before 2.2.6, ZendOpenId, ZendRest, ZendService_AudioScrobbler, ZendService_Nirvanix, ZendService_SlideShare, ZendService_Technorati, and ZendService_WindowsAzure before 2.0.2, ZendService_Amazon before 2.0.3, and ZendService_Api before 1.0.0, when PHP-FPM is used, does not properly share the libxml_disable_entity_loader setting between threads, which might allow remote attackers to conduct XML External Entity (XXE) attacks via an XML external entity declaration in conjunction with an entity reference.  NOTE: this issue exists because of an incomplete fix for CVE-2012-5657.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zendframework1"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.12.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zendopenid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zendrest"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zendservice-audioscrobbler"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zendservice-nirvanix"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zendservice-slideshare"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zendservice-technorati"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zendservice-windowsazure"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zendservice-amazon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zendservice-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-2682"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20140419041226/http://www.securityfocus.com/bid/66358"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20150523055201/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2014:072/?name=MDVSA-2014:072"
  }, {
    "type" : "WEB",
    "url" : "http://advisories.mageia.org/MGASA-2014-0151.html"
  }, {
    "type" : "WEB",
    "url" : "http://framework.zend.com/security/advisory/ZF2014-01"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2014/q2/0"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2015/dsa-3265"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611", "CWE-776" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-25T14:47:31Z",
    "nvd_published_at" : "2014-11-16T00:59:00Z"
  }
}