CakePHP: SmtpTransport vulnerable to CRLF header injection
CakePHP: SmtpTransport vulnerable to CRLF header injection. Custom 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.
- Severity
- HighCVSS 4.0 · 8.2
- Affected versions
- 4.5.0 or newer, but before 4.5.12; 4.6.0 or newer, but before 4.6.5; 5.0.0 or newer, but before 5.1.9+2 more
- Weakness
- CWE-93CRLF Injection
- Exploit likelihood
- 0.31% in 30 daysEPSS, higher than 24% of known flaws
- Affects
- CakePHP
Severity breakdown
- Attack vector Network Requires network access to the vulnerable service
- Attack complexity Low No extra steps to bypass built-in attack protections
- Required conditions Present Attack depends on particular deployment or execution conditions
- Privileges required None Attacker needs no account or login
- User action None No action by another user is required
- Vulnerable system: Data exposure None No data disclosure
- Vulnerable system: Data changes High Protected data can be changed with serious impact
- Vulnerable system: Service disruption None No availability impact
- Other systems: Data exposure None No additional impact beyond the vulnerable system
- Other systems: Data changes None No additional impact beyond the vulnerable system
- Other systems: Service disruption None No additional impact beyond the vulnerable system
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Open in FIRST.org calculatorReferences
- github.com · GHSA-2qh5-382h-3jpc vendor advisory
- nvd.nist.gov · CVE-2026-77634 vdb entry
- euvd.enisa.europa.eu · EUVD-2026-65123 vdb entry
- github.com · commit 0818896 GitHub Advisory
- github.com · commit 2afe42b GitHub Advisory
- github.com · commit 3e09dae GitHub Advisory
- github.com · commit b67b622 GitHub Advisory