Skip to main content
← All vulnerabilities
CVE-2026-119417EUVD-2026-113797GHSA-XMWP-GCGJ-P387GHSA-2QH5-382H-3JPC

CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7
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

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  4. 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

References 11

GitHub · cakephp/cakephp

abraxaslabs.tech

vulncheck.com