CVEscakephpCVE-2026-119417Published Oct 30, 11:30 · Updated Oct 30, 15:55 UTC
3.7
LowCVSS 3.1 · from VulnCheck
CVE-2026-119417

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

cakephp · CWE-93 · CWE-93
Affectedcakephp
FixA patch is linked in the references.
PublishedOct 30, 11:30 · VulnCheck
ScoredOct 30 · 3.7 · VulnCheck
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:08 UTC

What we know

No known exploitation. CISA KEV, checked 22:08 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker only needs network access to the target. No login needed. CVSS: network, no privileges.
It only works under certain conditions, which makes it harder to pull off. CVSS: high attack complexity.

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.

From VulnCheck

Affected and fixed versions

ProductAffectedFixed incakephp4.5.12 – 4.5.12–cakephp4.6.5 – 4.6.5–cakephp5.1.8 – 5.1.10–cakephp5.2.14 – 5.2.15–cakephp5.3.7 – 5.3.7–cakephp5.4.0 – 5.4.3–

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

github.com/cakephp/cakephp/commit/2b9326ca3f17b2e940c6c9f50d821e9929c00f39 · github.compatchgithub.com/cakephp/cakephp/commit/773587406a29eedc2e0031e12683b08e112cc538 · github.compatchgithub.com/cakephp/cakephp/commit/3b997318539c48a423b77651c61c9f229cbf9e33 · github.compatchgithub.com/cakephp/cakephp/commit/e5936b286cc389b1497fd9b675a2133ba9ac557d · github.compatchgithub.com/cakephp/cakephp/pull/19695 · github.compatchissue trackinggithub.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Mailer/Transport/SmtpTransport.php#L574 · github.comtechnical descriptiongithub.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Mailer/Transport/MailTransport.php#L57 · github.comtechnical descriptionGitHub Security Advisory (GHSA-2qh5-382h-3jpc) · github.comrelatedvendor advisoryabraxaslabs.tech/research/cakephp-smtp-crlf · abraxaslabs.techthird party advisorygithub.com/cakephp/cakephp · github.comproductVulnCheck Advisory: CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport · vulncheck.comthird party advisory

Other CVEs in cakephp

All 10 →
8.1CakePHP through 5.4.3 SQL Injection via StringExpression and IdentifierExpression Collation · CVE-2026-119419Oct 308.1CakePHP through 5.4.3 SQL Injection via WindowExpression range() and frame() · CVE-2026-119418Oct 304.8CakePHP through 5.4.3 Cookie Leakage via HTTP Client CookieCollection Domain Matching · CVE-2026-119416Oct 30