GHSA-xp8p-9rq5-4wgv CVE-2015-5161
ZendXml and Zend Framework contain XXE and XEE Vulnerabilities
- Severity
- Medium
- The publisher's own rating, not a CVSS score
- Exploit chance (EPSS)
- 9.87%
- Chance of exploitation in the next 30 days. Higher than 95.57% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-611 Improper Restriction of XML External Entity Reference
- CWE-776 Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
- Fix
- Available
- 3 packages have a fixed version
Description
The Zend_Xml_Security::scan in ZendXml before 1.0.1 and Zend Framework before 1.12.14, 2.x before 2.4.6, and 2.5.x before 2.5.2, when running under PHP-FPM in a threaded environment, allows remote attackers to bypass security checks and conduct XML external entity (XXE) and XML entity expansion (XEE) attacks via multibyte encoded characters.
Affected versions
Packagist
| Package | Vulnerable | Fixed in |
|---|---|---|
| zendframework/zendframework | >= 2.0.0, < 2.4.6 |
2.4.6 |
| zendframework/zendframework | >= 2.5.0, < 2.5.2 |
2.5.2 |
| zendframework/zendframework | >= 1.12.0, < 1.12.14 |
1.12.14 |
| zendframework/zendframework1 | >= 1.12.0, < 1.12.14 |
1.12.14 |
| zendframework/zendxml | >= 1.0.0, < 1.0.1 |
1.0.1 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
zendframework/zendframework Packagist → 2.4.6
- composer
composer require zendframework/zendframework:^2.4.6
zendframework/zendframework1 Packagist → 1.12.14
- composer
composer require zendframework/zendframework1:^1.12.14
zendframework/zendxml Packagist → 1.0.1
- composer
composer require zendframework/zendxml:^1.0.1
Weakness
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 to prevent it
- Implementation, System Configuration: Many XML parsers and validators can be configured to disable external entity expansion.
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 to prevent it
- Operation: If possible, prohibit the use of DTDs or use an XML parser that limits the expansion of recursive DTD entities.
- Implementation: Before parsing XML files with associated DTDs, scan for recursive entity declarations and do not continue parsing potentially explosive content.
References
Advisories
Other links
- github.com/zendframework/zf1/issues/393
- github.com/zendframework/ZendXml/commit/79f478fa2af85ce1fc18ac132dee5aa714c3b532
- github.com/zendframework/zf1/commit/ff7edddf1410b44b5ead857c02698aad9f748d1b
- framework.zend.com/security/advisory/ZF2015-06
- github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframe…
- github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframe…
- github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendxml/C…
- web.archive.org/web/20200228055156/http://www.securityfocus.com/bid/76177
- exploit-db.com/exploits/37765
- framework.zend.com/security/advisory/ZF2015-06
- legalhackers.com/advisories/zend-framework-XXE-vuln.txt
- lists.fedoraproject.org/pipermail/package-announce/2015-August/164409.html
- lists.fedoraproject.org/pipermail/package-announce/2015-August/165147.html
- lists.fedoraproject.org/pipermail/package-announce/2015-August/165173.html
- packetstormsecurity.com/files/133068/Zend-Framework-2.4.2-1.12.13-XXE-Injection.html
- seclists.org/fulldisclosure/2015/Aug/46
- debian.org/security/2015/dsa-3340
- securityfocus.com/bid/76177
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-6fqw-j3vm-7f66 Zendframework1 Potential SQL injection in ORDER and GROUP functions | Critical | Also affects zendframework/zendframework1 |
| GHSA-848f-mph5-9pm9 Zendframework Potential Information Disclosure and Insufficient Entropy vulnerability | High | Also affects zendframework/zendframework1 |
| GHSA-8xhv-gqm4-3w99 ZendFramework1 Potential Insufficient Entropy Vulnerability | High | Also affects zendframework/zendframework1 |
| GHSA-v42g-7q2x-cw32 Zendframework1 potential SQL injection vector using null byte for PDO (MsSql, SQLite) | Critical | Also affects zendframework/zendframework1 |
| GHSA-2x36-qhx3-7m5f ZendFramework1 Potential SQL injection in the ORDER implementation of Zend_Db_Select | Critical | Also affects zendframework/zendframework1 |
| GHSA-9v78-h226-2rmq Zendframework potential security issue in login mechanism | High | Also affects zendframework/zendframework1 |
| GHSA-4vf6-mq7w-3hp6 Zend_Filter_StripTags vulnerable to Cross-site Scripting when comments allowed | Medium | Also affects zendframework/zendframework1 |
| GHSA-4v57-pwvf-x35j Zendframework potential Cross-site Scripting vector in `Zend_Service_ReCaptcha_MailHide` | Medium | Also affects zendframework/zendframework1 |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor