CVE-2026-119417
JSON

6.3medium

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

Severity
6.3medium CVSS:4.0 by VulnCheck
Exploit likelihood
0.45% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-2qh5-382h-3jpc

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.

Affected

Product or packageVersionsReported by
cakephp cakephpfrom 4.5.12 up to 4.5.12, from 4.6.5 before 4.6.6, from 5.1.8 up to 5.1.10, from 5.2.14 before 5.2.16, from 5.3.7 before 5.3.8, from 5.4.0 before 5.4.4CVE List
cakephp/cakephp (Packagist)from 4.5.0 before 4.5.12, from 4.6.0 before 4.6.5, from 5.0.0 before 5.1.9, from 5.2.0 before 5.2.14, from 5.3.0 before 5.3.7GitHub Advisory Database

All scores

VulnCheck6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
VulnCheck3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Classification

CWE-93

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

Custom mail headers added with Message::setHeaders() or addHeaders() do not have CRLF replaced allowing header injection if user controlled data is added to message headers without stripping CRLF bytes.

Patches

5.3.7, 5.2.14, 5.1.9, 4.6.5, 4.5.12 contain fixes for this issue.

Workarounds

You can strip CRLF bytes from email header values before setting header values.

References

https://github.com/cakephp/cakephp/commit/2b9326ca3f17b2e940c6c9f50d821e9929c00f39patch
https://github.com/cakephp/cakephp/commit/773587406a29eedc2e0031e12683b08e112cc538patch
https://github.com/cakephp/cakephp/commit/3b997318539c48a423b77651c61c9f229cbf9e33patch
https://github.com/cakephp/cakephp/commit/e5936b286cc389b1497fd9b675a2133ba9ac557dpatch
https://github.com/cakephp/cakephp/pull/19695issue-tracking, patch
https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Mailer/Transport/SmtpTransport.php#L574technical-description
https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Mailer/Transport/MailTransport.php#L57technical-description
https://github.com/cakephp/cakephp/security/advisories/GHSA-2qh5-382h-3jpcrelated, vendor-advisory, web
https://abraxaslabs.tech/research/cakephp-smtp-crlfthird-party-advisory
https://github.com/cakephp/cakephppackage, product
https://www.vulncheck.com/advisories/cakephp-through-5.4.3-email-header-injection-via-bare-cr-lf-in-smtptransport-and-mailtransportthird-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2026-77634advisory

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-119417 changed 2026-11-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-2qh5-382h-3jpc changed 2026-10-31CC-BY-4.0
NVDCVE-2026-119417 changed 2026-11-20Public domain