{"id":"CVE-2026-119417","aliases":["CVE-2026-119417","GHSA-2qh5-382h-3jpc"],"related":["CVE-2026-77634"],"kind":"vulnerability","state":"published","title":"CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nCustom 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.\n\n### Patches\n5.3.7, 5.2.14, 5.1.9, 4.6.5, 4.5.12 contain fixes for this issue.\n\n### Workarounds\nYou can strip CRLF bytes from email header values before setting header values.","format":"markdown","source":"ghsa"}],"published":"2026-09-08T20:56:26.000Z","modified":"2026-11-20T15:17:38.760Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":6.3,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-93"],"affected":[{"ranges":[{"type":"semver","introduced":"4.5.12","lastAffected":"4.5.12","status":"affected"},{"type":"semver","introduced":"4.6.5","fixed":"4.6.6","status":"affected"},{"type":"semver","introduced":"5.1.8","lastAffected":"5.1.10","status":"affected"},{"type":"semver","introduced":"5.2.14","fixed":"5.2.16","status":"affected"},{"type":"semver","introduced":"5.3.7","fixed":"5.3.8","status":"affected"},{"type":"semver","introduced":"5.4.0","fixed":"5.4.4","status":"affected"}],"vendor":"cakephp","product":"cakephp","repo":"https://github.com/cakephp/cakephp","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.5.0","status":"affected","fixed":"4.5.12"}],"ecosystem":"Packagist","package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.6.0","status":"affected","fixed":"4.6.5"}],"ecosystem":"Packagist","package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.1.9"}],"ecosystem":"Packagist","package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.2.0","status":"affected","fixed":"5.2.14"}],"ecosystem":"Packagist","package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.3.0","status":"affected","fixed":"5.3.7"}],"ecosystem":"Packagist","package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"ghsa"}],"references":[{"url":"https://github.com/cakephp/cakephp/commit/2b9326ca3f17b2e940c6c9f50d821e9929c00f39","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cakephp/cakephp/commit/773587406a29eedc2e0031e12683b08e112cc538","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cakephp/cakephp/commit/3b997318539c48a423b77651c61c9f229cbf9e33","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cakephp/cakephp/commit/e5936b286cc389b1497fd9b675a2133ba9ac557d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cakephp/cakephp/pull/19695","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Mailer/Transport/SmtpTransport.php#L574","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Mailer/Transport/MailTransport.php#L57","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cakephp/cakephp/security/advisories/GHSA-2qh5-382h-3jpc","tags":["related","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://abraxaslabs.tech/research/cakephp-smtp-crlf","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cakephp/cakephp","tags":["package","product"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/cakephp-through-5.4.3-email-header-injection-via-bare-cr-lf-in-smtptransport-and-mailtransport","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77634","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cakephp/cakephp/commit/08188962bcd99a95da1e49f62e786f2d688f1e41","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/cakephp/cakephp/commit/2afe42b02d8ddc5d442bca5e8bb61910a727646e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/cakephp/cakephp/commit/3e09dae6cbdc983754fa3a8e6aae74da102a3ea1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/cakephp/cakephp/commit/b67b622457362b075bb37e625a82af73a0b3c9c3","tags":["web"],"sources":["ghsa"]}],"credits":["Abraxas Labs","Mark Story"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-30T15:20:55.429Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-119417","url":"https://www.cve.org/CVERecord?id=CVE-2026-119417","licence":"CVE Terms of Use","modified":"2026-11-20T14:31:15.155Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2qh5-382h-3jpc","url":"https://github.com/advisories/GHSA-2qh5-382h-3jpc","licence":"CC-BY-4.0","modified":"2026-10-31T02:55:38.121Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-119417","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119417","licence":"Public domain","modified":"2026-11-20T15:17:38.760Z"}],"updatedAt":"2026-11-25T22:59:47.911Z","epss":{"score":0.00452,"percentile":0.41016,"date":"2026-12-01T12:00:22.000Z"}}