Description
CakePHP is a rapid development framework for PHP. Prior to versions 4.5.12, 4.6.5, 5.1.8, 5.2.14, and 5.3.7 on their respective release lines, custom mail headers added with Message::setHeaders() or Message::addHeaders() do not have CRLF bytes removed, allowing header injection when user-controlled data is used in message headers. This issue is fixed in versions 4.5.12, 4.6.5, 5.1.8, 5.2.14, and 5.3.7.
References5
- github.com/cakephp/cakephp/commit/08188962bcd99a95da1e49f62e786…
- github.com/cakephp/cakephp/commit/2afe42b02d8ddc5d442bca5e8bb61…
- github.com/cakephp/cakephp/commit/3e09dae6cbdc983754fa3a8e6aae7…
- github.com/cakephp/cakephp/commit/b67b622457362b075bb37e625a82a…
- github.com/cakephp/cakephp/security/advisories/GHSA-2qh5-382h-3…
Metrics
- CVSS 4.0
-
8.2
HIGH
Score source: CNA
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 24 · as of 9 November 2026
- CWE
- CWE-93
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.