cvelo
P4 · InfoCVSS 3.7EPSS 0.5%

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 versionsFixed in
    from 5.4.0 to before 5.4.45.4.4
    from 5.3.7 to before 5.3.85.3.8
    from 5.2.14 to before 5.2.165.2.16
    from 4.6.5 to before 4.6.64.6.6
    from 4.5.12 up to 4.5.12none stated
    from 5.1.8 up to 5.1.10none stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.