HighGHSA-5964-pq8r-4q62CVE-2012-4399

CakePHPallows remote attackers to read arbitrary files via XML data containing external entity references

Published 17 May 2022 · Updated 9 Apr 2024

Affected packages

Affected
>=2.1.0-alpha <2.1.5
Fixed in
2.1.5
Update to the fixed version for your release line, for example:composer require cakephp/cakephp:^2.1.5
Affected
>=2.2.0-beta <2.2.1
Fixed in
2.2.1
Update to the fixed version for your release line, for example:composer require cakephp/cakephp:^2.2.1

Details

The Xml class in CakePHP 2.1.x before 2.1.5 and 2.2.x before 2.2.1 allows remote attackers to read arbitrary files via XML data containing external entity references, aka an XML external entity (XXE) injection attack.

Is GHSA-5964-pq8r-4q62 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 cakephp/cakephp, and gives you the command that fixes it.

References

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