Every CVE Search/ Get API key

CVE-2012-4399

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

7.5 HighPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
None
Availability
None

Exploit likelihood

12.1%Up 3.5 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2012-4399
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:P/I:N/A:N
Weakness
CWE-611
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2012-4399
Updated
2026-11-02
EUVDEUVD-2022-2545 No score

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.

Record
EUVD-2022-2545
Updated
2026-11-03
GitHub AdvisoriesGHSA-5964-pq8r-4q62 7.5

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

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.

Record
GHSA-5964-pq8r-4q62
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-611
Updated
2026-11-02
OSVGHSA-5964-pq8r-4q62 7.5

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

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.

Record
GHSA-5964-pq8r-4q62
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-611
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
cakephp/cakephp
Packagist
2.1.0-alpha up to 2.1.5
2.1.5
cakephp/cakephp
Packagist
2.2.0-beta up to 2.2.1
2.2.1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
Exploit-DBCakePHP 2.x < 2.2.0-RC2 - XML External Entity Injection2012-07-16

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, Exploit-DB, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2012-4399 is a high vulnerability (CVSS 7.5) in Cakefoundation Cakephp, published October 9, 2012. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 12.1%, the 96th percentile. Fixed in cakephp/cakephp 2.1.5.

References

Show 4 moreShow less
MoveEnter Open