CVE-2015-5161
ZendXml and Zend Framework contain XXE and XEE Vulnerabilities
Also known as EDB-37765, EDB-38573, GHSA-xp8p-9rq5-4wgv
Mitigation
- Upgrade zendframework/zendframework to one of 2.4.6, 2.5.2, 1.12.14 (or later in the same release line).
- Upgrade zendframework/zendframework1 to 1.12.14 or later.
- Upgrade zendframework/zendxml to 1.0.1 or later.
Who should check
- Projects that depend on Packagist package zendframework/zendframework (>= 2.0.0, < 2.4.6)
- Projects that depend on Packagist package zendframework/zendframework1 (>= 1.12.0, < 1.12.14)
- Projects that depend on Packagist package zendframework/zendxml (>= 1.0.0, < 1.0.1)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- zendframework/zendframework >= 2.0.0, < 2.4.6; zendframework/zendframework1 >= 1.12.0, < 1.12.14; zendframework/zendxml >= 1.0.0, < 1.0.1
- Fixed in
- 2.4.6, 2.5.2, 1.12.14, 1.0.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.8 (v2.0, NVD)AV:N/AC:M/Au:N/C:P/I:P/A:P
Show all 6 CVSS metrics
- Attack vector: Network
- Attack complexity: Medium
- Authentication: None
- Confidentiality impact: Partial
- Integrity impact: Partial
- Availability impact: Partial
- EPSS
- 9.87% chance of exploitation in 30 days (percentile 96, 2026-11-26)
- CWE
- CWE-611, CWE-776
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist zendframework/zendframework | >= 2.0.0, < 2.4.6 | 2.4.6, 2.5.2, 1.12.14 | osv |
| Packagist zendframework/zendframework1 | >= 1.12.0, < 1.12.14 | 1.12.14 | osv |
| Packagist zendframework/zendxml | >= 1.0.0, < 1.0.1 | 1.0.1 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2015-5161. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2015-5161.md Affected: zendframework/zendframework >= 2.0.0, < 2.4.6; zendframework/zendframework1 >= 1.12.0, < 1.12.14; zendframework/zendxml >= 1.0.0, < 1.0.1 Fixed in: 2.4.6, 2.5.2, 1.12.14, 1.0.1 Steps: 1. Search this machine and project for zendframework/zendframework (Packagist), zendframework/zendframework1 (Packagist), zendframework/zendxml (Packagist), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- http://lists.fedoraproject.org/pipermail/package-announce/2015-August/165173.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-August/165147.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-August/164409.html
- http://www.debian.org/security/2015/dsa-3340
- http://framework.zend.com/security/advisory/ZF2015-06
- https://nvd.nist.gov/vuln/detail/CVE-2015-5161
Patches
Exploits and PoCs
- http://packetstormsecurity.com/files/133068/Zend-Framework-2.4.2-1.12.13-XXE-Injection.html
- http://legalhackers.com/advisories/zend-framework-XXE-vuln.txt
- http://www.securityfocus.com/bid/76177
- https://www.exploit-db.com/exploits/37765/
- http://seclists.org/fulldisclosure/2015/Aug/46
- https://www.exploit-db.com/exploits/37765
- https://www.exploit-db.com/exploits/38573
Other
- https://github.com/zendframework/zf1/issues/393
- https://framework.zend.com/security/advisory/ZF2015-06
- https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework/CVE-2015-5161.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/CVE-2015-5161.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendxml/CVE-2015-5161.yaml
- https://web.archive.org/web/20200228055156/http://www.securityfocus.com/bid/76177
FAQ
Is CVE-2015-5161 being exploited?
There is no confirmed exploitation: CVE-2015-5161 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 9.87% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2015-5161?
Medium: CVSS 6.8 (v2.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2015-5161?
zendframework/zendframework >= 2.0.0, < 2.4.6; zendframework/zendframework1 >= 1.12.0, < 1.12.14; zendframework/zendxml >= 1.0.0, < 1.0.1.
Is there a fix for CVE-2015-5161?
Yes. Fixed in 2.4.6, 2.5.2, 1.12.14, 1.0.1. Upgrade zendframework/zendframework to one of 2.4.6, 2.5.2, 1.12.14 (or later in the same release line). Upgrade zendframework/zendframework1 to 1.12.14 or later. Upgrade zendframework/zendxml to 1.0.1 or later.
How do I check if I'm affected by CVE-2015-5161?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.