CVE-2012-4399 CakePHPallows remote attackers to read arbitrary files via XML data containing external entity references
Remote attackers can read arbitrary files via XML external entity injection in the CakePHP Xml class.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2012-4399?
CVE-2012-4399 is a high-severity vulnerability in n/a, published on 9 Oct 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-611
Which versions are affected by CVE-2012-4399?
4 open source packages ship an affected version, including cakephp/cakephp. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
cakephp/cakephp Packagist | From 2.1.0-alpha | 2.1.5 |
cakephp/cakephp Packagist | From 2.1.0-alpha | 2.1.5 |
cakephp/cakephp Packagist | From 2.2.0-beta | 2.2.1 |
cakephp/cakephp Packagist | From 2.2.0-beta | 2.2.1 |
Products include Cakefoundation Cakephp.
How do I fix CVE-2012-4399?
Upgrade cakephp/cakephp to a fixed version for your release line: 2.1.5 or 2.2.1.
Is CVE-2012-4399 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-4399 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in n/a
Sources
Also known as GHSA-5964-pq8r-4q62.