CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
CakePHP, a popular PHP web framework, is affected in its email sending components (SmtpTransport and MailTransport), which fail to fully sanitize custom email header values. An attacker who can control those headers could inject extra headers such as Bcc, allowing them to secretly redirect or alter outgoing emails.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original 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.
Timeline
- CVE published
- First seen by cve.now
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- cakephp cakephp
From 4.5.12 · through 4.5.12; From 4.6.5 · through 4.6.5; From 5.1.8 · through 5.1.10; From 5.2.14 · through 5.2.15; From 5.3.7 · through 5.3.7; From 5.4.0 · through 5.4.3
- cakephp/cakephpPackagist
From 4.5.0 · fixed in 4.5.12
- cakephp/cakephpPackagist
From 4.6.0 · fixed in 4.6.5
- cakephp/cakephpPackagist
From 5.0.0 · fixed in 5.1.9
- cakephp/cakephpPackagist
From 5.2.0 · fixed in 5.2.14
- cakephp/cakephpPackagist
From 5.3.0 · fixed in 5.3.7