CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport
- CVE-2026-119417
- GHSA-xmwp-gcgj-p387
- EUVD-2026-113797
Description
CakePHP 4.5.12, 4.6.5, 5.1.8 through 5.1.10, 5.2.14 through 5.2.15, 5.3.7, and 5.4.0 through 5.4.3 contain an email header injection vulnerability because SmtpTransport and MailTransport strip only CRLF pairs from header values, an incomplete fix for CVE-2026-77634. Attackers controlling custom headers set via Message::setHeaders() or Message::addHeaders() can insert a bare CR or LF to inject headers like Bcc, redirecting or altering outgoing mail.
Text from the CVE.org record.
Recommendation
cakephp
- If you run 5.4.xupdate to 5.4.4 or laterPatch update: breaking changes are unlikely
- If you run 5.3.xupdate to 5.3.8 or laterPatch update: breaking changes are unlikely
- If you run 5.2.xupdate to 5.2.16 or laterPatch update: breaking changes are unlikely
- If you run 4.6.xupdate to 4.6.6 or laterPatch update: breaking changes are unlikely
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
cakephp
Affected versions Fixed in from 5.4.0 to before 5.4.4 5.4.4 from 5.3.7 to before 5.3.8 5.3.8 from 5.2.14 to before 5.2.16 5.2.16 from 4.6.5 to before 4.6.6 4.6.6 from 4.5.12 up to 4.5.12 none stated from 5.1.8 up to 5.1.10 none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.