{"id":"GHSA-2qh5-382h-3jpc","aliases":["CVE-2026-77634"],"title":"CakePHP: SmtpTransport vulnerable to CRLF header injection","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"### 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.","severity":"high","score":8.2,"published":"2026-09-08T20:56:26.000Z","modified":"2026-09-08T21:15:04.001Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"cakephp/cakephp","sources":[{"name":"OSV · GHSA-2qh5-382h-3jpc","url":"https://osv.dev/vulnerability/GHSA-2qh5-382h-3jpc"}],"ranges":[{"events":[{"introduced":"4.5.0"},{"fixed":"4.5.12"}],"type":"ECOSYSTEM"}],"versions":["4.5.0","4.5.1","4.5.10","4.5.11","4.5.2","4.5.3","4.5.4","4.5.5","4.5.6","4.5.7","4.5.8","4.5.9"],"fixed":["4.5.12"]},{"ecosystem":"Packagist","name":"cakephp/cakephp","sources":[{"name":"OSV · GHSA-2qh5-382h-3jpc","url":"https://osv.dev/vulnerability/GHSA-2qh5-382h-3jpc"}],"ranges":[{"events":[{"introduced":"4.6.0"},{"fixed":"4.6.5"}],"type":"ECOSYSTEM"}],"versions":["4.6.0","4.6.1","4.6.2","4.6.3","4.6.4"],"fixed":["4.6.5"]},{"ecosystem":"Packagist","name":"cakephp/cakephp","sources":[{"name":"OSV · GHSA-2qh5-382h-3jpc","url":"https://osv.dev/vulnerability/GHSA-2qh5-382h-3jpc"}],"ranges":[{"events":[{"introduced":"5.0.0"},{"fixed":"5.1.9"}],"type":"ECOSYSTEM"}],"versions":["5.0.0","5.0.1","5.0.10","5.0.11","5.0.2","5.0.3","5.0.4","5.0.5","5.0.6","5.0.7","5.0.8","5.0.9","5.1.0","5.1.0-RC1","5.1.0-RC2","5.1.1","5.1.2","5.1.4","5.1.5","5.1.6","5.1.7","5.1.8"],"fixed":["5.1.9"]},{"ecosystem":"Packagist","name":"cakephp/cakephp","sources":[{"name":"OSV · GHSA-2qh5-382h-3jpc","url":"https://osv.dev/vulnerability/GHSA-2qh5-382h-3jpc"}],"ranges":[{"events":[{"introduced":"5.2.0"},{"fixed":"5.2.14"}],"type":"ECOSYSTEM"}],"versions":["5.2.0","5.2.1","5.2.10","5.2.11","5.2.12","5.2.13","5.2.2","5.2.3","5.2.4","5.2.5","5.2.6","5.2.7","5.2.8","5.2.9"],"fixed":["5.2.14"]},{"ecosystem":"Packagist","name":"cakephp/cakephp","sources":[{"name":"OSV · GHSA-2qh5-382h-3jpc","url":"https://osv.dev/vulnerability/GHSA-2qh5-382h-3jpc"}],"ranges":[{"events":[{"introduced":"5.3.0"},{"fixed":"5.3.7"}],"type":"ECOSYSTEM"}],"versions":["5.3.0","5.3.1","5.3.2","5.3.3","5.3.4","5.3.5","5.3.6"],"fixed":["5.3.7"]}],"sourceAffected":[],"references":["https://github.com/cakephp/cakephp/security/advisories/GHSA-2qh5-382h-3jpc","https://nvd.nist.gov/vuln/detail/CVE-2026-77634","https://github.com/cakephp/cakephp/commit/08188962bcd99a95da1e49f62e786f2d688f1e41","https://github.com/cakephp/cakephp/commit/2afe42b02d8ddc5d442bca5e8bb61910a727646e","https://github.com/cakephp/cakephp/commit/3e09dae6cbdc983754fa3a8e6aae74da102a3ea1","https://github.com/cakephp/cakephp/commit/b67b622457362b075bb37e625a82af73a0b3c9c3","https://github.com/cakephp/cakephp"],"sources":[{"name":"OSV","id":"GHSA-2qh5-382h-3jpc","modified":"2026-09-08T21:15:04.001246706Z","url":"https://osv.dev/vulnerability/GHSA-2qh5-382h-3jpc"}],"assessments":[{"source":"OSV","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","score":8.2}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T18:15:34.797Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}