# CVE-2026-119417: CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport

- Severity: Medium 6.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-09-08T20:56:26.000Z
- Modified: 2026-11-20T15:17:38.760Z
- Also known as: GHSA-2qh5-382h-3jpc
- Related: CVE-2026-77634
- Weaknesses: CWE-93
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- cakephp cakephp: from 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.4
- 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.7

## Every score

- VulnCheck: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/cakephp/cakephp/commit/2b9326ca3f17b2e940c6c9f50d821e9929c00f39> (patch)
- <https://github.com/cakephp/cakephp/commit/773587406a29eedc2e0031e12683b08e112cc538> (patch)
- <https://github.com/cakephp/cakephp/commit/3b997318539c48a423b77651c61c9f229cbf9e33> (patch)
- <https://github.com/cakephp/cakephp/commit/e5936b286cc389b1497fd9b675a2133ba9ac557d> (patch)
- <https://github.com/cakephp/cakephp/pull/19695> (issue-tracking, patch)
- <https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Mailer/Transport/SmtpTransport.php#L574> (technical-description)
- <https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Mailer/Transport/MailTransport.php#L57> (technical-description)
- <https://github.com/cakephp/cakephp/security/advisories/GHSA-2qh5-382h-3jpc> (related, vendor-advisory, web)
- <https://abraxaslabs.tech/research/cakephp-smtp-crlf> (third-party-advisory)
- <https://github.com/cakephp/cakephp> (package, product)
- <https://www.vulncheck.com/advisories/cakephp-through-5.4.3-email-header-injection-via-bare-cr-lf-in-smtptransport-and-mailtransport> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-77634> (advisory)
- <https://github.com/cakephp/cakephp/commit/08188962bcd99a95da1e49f62e786f2d688f1e41> (web)
- <https://github.com/cakephp/cakephp/commit/2afe42b02d8ddc5d442bca5e8bb61910a727646e> (web)
- <https://github.com/cakephp/cakephp/commit/3e09dae6cbdc983754fa3a8e6aae74da102a3ea1> (web)
- <https://github.com/cakephp/cakephp/commit/b67b622457362b075bb37e625a82af73a0b3c9c3> (web)

## Sources

- CVE List: [CVE-2026-119417](https://www.cve.org/CVERecord?id=CVE-2026-119417), CVE Terms of Use, modified 2026-11-20
- GitHub Advisory Database: [GHSA-2qh5-382h-3jpc](https://github.com/advisories/GHSA-2qh5-382h-3jpc), CC-BY-4.0, modified 2026-10-31
- NVD: [CVE-2026-119417](https://nvd.nist.gov/vuln/detail/CVE-2026-119417), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-119417 · Whole record: https://cve.day/CVE-2026-119417.json · Rebuilt by cve.day 2026-11-25T22:59:47.911Z
