MediumGHSA-xp8p-9rq5-4wgvCVE-2015-5161

ZendXml and Zend Framework contain XXE and XEE Vulnerabilities

Published 17 May 2022 · Updated 4 Dec 2024

Affected packages

Affected
>=2.0.0 <2.4.6
Fixed in
2.4.6
Update to the fixed version for your release line, for example:composer require zendframework/zendframework:^2.4.6
Affected
>=2.5.0 <2.5.2
Fixed in
2.5.2
Update to the fixed version for your release line, for example:composer require zendframework/zendframework:^2.5.2
Affected
>=1.12.0 <1.12.14
Fixed in
1.12.14
Update to the fixed version for your release line, for example:composer require zendframework/zendframework1:^1.12.14
Affected
>=1.0.0 <1.0.1
Fixed in
1.0.1
Update to the fixed version for your release line, for example:composer require zendframework/zendxml:^1.0.1
Affected
>=1.12.0 <1.12.14
Fixed in
1.12.14
Update to the fixed version for your release line, for example:composer require zendframework/zendframework:^1.12.14

Details

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.

Is GHSA-xp8p-9rq5-4wgv in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected zendframework/zendframework, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.