VDB
Sign up
HIGH7.5

GHSA-5964-pq8r-4q62

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

Quick fix

GHSA-5964-pq8r-4q62 — cakephp/cakephp: upgrade to the fixed version with the command below.

composer require cakephp/cakephp:^2.1.5

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/cakephp/cakephp
Introduced in: 2.1.0-alphaFixed in: 2.1.5
Fixcomposer require cakephp/cakephp:^2.1.5
Packagist/cakephp/cakephp
Introduced in: 2.2.0-betaFixed in: 2.2.1
Fixcomposer require cakephp/cakephp:^2.2.1

References