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
- CakePHP 2.x < 2.2.0-RC2 - XML External Entity Injection EDB-19863 · webapps · Jul 16, 2012 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- 49900 third-party-advisory
- 20120716 CakePHP 2.x-2.2.0-RC2 XXE Injection mailing-list
- http://bakery.cakephp.org/articles/markstory/2012/07/14/security_release_-_cakephp_2_1_5_2_2_1
- 19863 exploit
- 84042 vdb-entry
- [oss-security] 20120903 CVE-request: CakePHP XXE injection mailing-list
- [oss-security] 20120903 Re: CVE-request: CakePHP XXE injection mailing-list