{"id":"CVE-2026-77634","published":"2026-08-24T20:33:46Z","modified":"2026-08-25T19:23:40Z","title":"CakePHP: SmtpTransport vulnerable to CRLF header injection","vendor":"cakephp","product":"cakephp","tier":"tail","description":{"text":"CakePHP is a rapid development framework for PHP. Prior to versions 4.5.12, 4.6.5, 5.1.8, 5.2.14, and 5.3.7 on their respective release lines, custom mail headers added with Message::setHeaders() or Message::addHeaders() do not have CRLF bytes removed, allowing header injection when user-controlled data is used in message headers. This issue is fixed in versions 4.5.12, 4.6.5, 5.1.8, 5.2.14, and 5.3.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00313,"percentile":0.24817,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"references":[{"url":"https://github.com/cakephp/cakephp/security/advisories/GHSA-2qh5-382h-3jpc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cakephp/cakephp/commit/08188962bcd99a95da1e49f62e786f2d688f1e41","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/commit/2afe42b02d8ddc5d442bca5e8bb61910a727646e","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/commit/3e09dae6cbdc983754fa3a8e6aae74da102a3ea1","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/commit/b67b622457362b075bb37e625a82af73a0b3c9c3","tags":["x_refsource_MISC"]}],"priority":{"score":10.7,"factors":[{"name":"EPSS percentile","points":4.96},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"cakephp","affectedVersions":[{"vendor":"cakephp","product":"cakephp","versions":[">= 4.5.0, < 4.5.12",">= 4.6.0, < 4.6.5",">= 5.0.0, < 5.1.9",">= 5.2.0, < 5.2.14",">= 5.3.0, < 5.3.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-25T18:32:29.994179Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"cakephp/cakephp","vulnerableRanges":[">=4.5.0, <4.5.12",">=4.6.0, <4.6.5",">=5.0.0, <5.1.9",">=5.2.0, <5.2.14",">=5.3.0, <5.3.7"],"patched":["4.5.12","4.6.5","5.1.9","5.2.14","5.3.7"],"from":["GHSA-2qh5-382h-3jpc"],"provenance":"source"}],"summary":{"text":"The CakePHP framework's SmtpTransport component does not strip CRLF bytes from custom mail headers added via Message::setHeaders() or Message::addHeaders(), so header injection is possible wherever user-controlled data is placed into message headers. An attacker with network access and no authentication or user interaction can inject additional headers into outgoing mail when the application passes user-supplied values into those headers.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:12Z"},"euvd":{"id":"EUVD-2026-65123","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cakephp-cve-2026-77634","children":[{"from":"CVE-2026-77634","to":"CVE-2026-119417","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"…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.","from":"CVE.org","in":"CVE-2026-119417"},{"kind":"osv-related","provenance":"source","id":"GHSA-2qh5-382h-3jpc","via":"reference","url":"https://github.com/cakephp/cakephp/security/advisories/GHSA-2qh5-382h-3jpc"},{"kind":"same-code","provenance":"machine","files":["src/Mailer/Transport/SmtpTransport.php"],"commits":["https://github.com/cakephp/cakephp/commit/2b9326ca3f17b2e940c6c9f50d821e9929c00f39","https://github.com/cakephp/cakephp/commit/773587406a29eedc2e0031e12683b08e112cc538","https://github.com/cakephp/cakephp/commit/08188962bcd99a95da1e49f62e786f2d688f1e41","https://github.com/cakephp/cakephp/commit/2afe42b02d8ddc5d442bca5e8bb61910a727646e"],"basis":"shared function","functions":["_sendData"]},{"kind":"similar","provenance":"machine","score":0.5,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2023-22727","published":"2023-01-17","fixed":"4.4.10","kev":false},{"cve":"CVE-2026-23643","published":"2026-01-16","fixed":"5.3.1","kev":false},{"cve":"CVE-2026-48820","published":"2026-06-17","fixed":"5.3.6","kev":false,"link":{"from":"CVE-2026-48820","to":"CVE-2026-77634","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:cakephp/cakephp","fromFixed":"5.1.7","toFixed":"5.1.9","daysApart":68},{"kind":"version-step","provenance":"source","package":"Packagist:cakephp/cakephp","fromFixed":"4.5.11","toFixed":"4.5.12","daysApart":68}]}},{"cve":"CVE-2026-77634","published":"2026-08-24","fixed":"5.3.7","kev":false},{"cve":"CVE-2026-77635","published":"2026-08-24","fixed":"5.3.7","kev":false,"link":{"from":"CVE-2026-77634","to":"CVE-2026-77635","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:cakephp/cakephp","fromFixed":"5.2.14","toFixed":"5.2.15","daysApart":0}]}},{"cve":"CVE-2026-79752","published":"2026-09-17","fixed":"5.3.7","kev":false}],"package":"Packagist:cakephp/cakephp"}}