Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2012-4399 EUVD-2022-2545GHSA-5964-pq8r-4q62

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

Published Oct 9, 2012 · Updated Sep 16, 2024 · Assigned by redhat

Description

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.

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist cakephp/cakephp >= 2.1.0-alpha, < 2.1.5 2.1.5 GHSA-5964-pq8r-4q62
Packagist cakephp/cakephp >= 2.2.0-beta, < 2.2.1 2.2.1 GHSA-5964-pq8r-4q62

References