CVE-2014-2682: Zendframework/zendframework1 Several Zend Products Vulnerable To Vulnerability
MODERATECVE-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
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.
Upgrade zendframework/zendframework1 to 1.12.4
Upgrade zendframework/zendopenid to 2.0.2
Upgrade zendframework/zendrest to 2.0.2
Upgrade zendframework/zendservice-audioscrobbler to 2.0.2
Upgrade zendframework/zendservice-nirvanix to 2.0.2
Upgrade zendframework/zendservice-slideshare to 2.0.2
Upgrade zendframework/zendservice-technorati to 2.0.2
Upgrade zendframework/zendservice-windowsazure to 2.0.2
Upgrade zendframework/zendservice-amazon to 2.0.3
Upgrade zendframework/zendservice-api to 1.0.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-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
CVE-2014-2682 Affected Zendframework/zendframework1 Versions
10 component(s)| 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?
Which Zendframework/zendframework1 versions are affected?
What version fixes CVE-2014-2682?
Is zendframework/zendframework1 affected?
Is zendframework/zendopenid affected?
What CWE is associated with CVE-2014-2682?
How can I check Packagist dependencies for CVE-2014-2682?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}