CVE-2026-77634
CakePHP: SmtpTransport vulnerable to CRLF header injection
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
8.2
CakePHP: SmtpTransport vulnerable to CRLF header injection
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.
- Record
CVE-2026-77634- CVSS 4.0
- 8.2 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 - Weakness
- CWE-93
- Updated
- 2026-11-02
EUVDEUVD-2026-65123
8.2
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.
- Record
EUVD-2026-65123- CVSS 4.0
- 8.2 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-2qh5-382h-3jpc
8.2
CakePHP: SmtpTransport vulnerable to CRLF header injection
Impact
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.
Patches
5.3.7, 5.2.14, 5.1.9, 4.6.5, 4.5.12 contain fixes for this issue.
Workarounds
You can strip CRLF bytes from email header values before setting header values.
- Record
GHSA-2qh5-382h-3jpc- CVSS 4.0
- 8.2 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 - Weakness
- CWE-93
- Updated
- 2026-11-02
NVD
8.2
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.
- Record
CVE-2026-77634- CVSS 4.0
- 8.2 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/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 - Weakness
- CWE-93
- Updated
- 2026-11-02
OSVCVE-2026-119417
6.3
CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport
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.
- Record
CVE-2026-119417- 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 - Weakness
- CWE-93
- Updated
- 2026-11-02
OSV
8.2
CakePHP: SmtpTransport vulnerable to CRLF header injection
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.
- Record
CVE-2026-77634- CVSS 4.0
- 8.2 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 - Weakness
- CWE-93
- Updated
- 2026-11-02
Show 6 moreShow less
OSVDEBIAN-CVE-2026-77634
8.2
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.
- Record
DEBIAN-CVE-2026-77634- CVSS 4.0
- 8.2 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/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 - Updated
- 2026-11-02
OSVGHSA-2qh5-382h-3jpc
8.2
CakePHP: SmtpTransport vulnerable to CRLF header injection
Impact
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.
Patches
5.3.7, 5.2.14, 5.1.9, 4.6.5, 4.5.12 contain fixes for this issue.
Workarounds
You can strip CRLF bytes from email header values before setting header values.
- Record
GHSA-2qh5-382h-3jpc- CVSS 4.0
- 8.2 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 - Weakness
- CWE-93
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-77634
8.2
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.
- Record
UBUNTU-CVE-2026-77634- CVSS 4.0
- 8.2 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 - Updated
- 2026-11-03
OSVCLSA-2026-1789384929 No score
TuxCare security update for cakephp/cakephp (1 CVE)
TuxCare rebuilt cakephp/cakephp to address 1 CVE. Fixed in 2.10.24-p3+tuxcare.
- Record
CLSA-2026-1789384929- Updated
- 2026-11-02
OSVCLSA-2026-1791987574 No score
TuxCare security update for cakephp/cakephp (3 CVEs)
TuxCare rebuilt cakephp/cakephp to address 3 CVEs. Fixed in 5.0.11-p1+tuxcare.
- Record
CLSA-2026-1791987574- Updated
- 2026-11-02
OSVCLSA-2026-1791988278 No score
TuxCare security update for cakephp/cakephp (3 CVEs)
TuxCare rebuilt cakephp/cakephp to address 3 CVEs. Fixed in 4.4.18-p1+tuxcare.
- Record
CLSA-2026-1791988278- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
cakephp/cakephpPackagist |
4.5.0 up to 4.5.12 | 4.5.12 |
cakephp/cakephpPackagist |
4.6.0 up to 4.6.5 | 4.6.5 |
cakephp/cakephpPackagist |
5.0.0 up to 5.1.8 | 5.1.8 |
cakephp/cakephpPackagist |
5.2.0 up to 5.2.14 | 5.2.14 |
cakephp/cakephpPackagist |
5.3.0 up to 5.3.7 | 5.3.7 |
cakephp/cakephpTuxCare:Packagist |
2.10.24 up to 2.10.24-p3+tuxcare, plus listed versions 2.10.24-p1+tuxcare2.10.24-p2+tuxcare |
2.10.24-p3+tuxcare |
cakephp/cakephpTuxCare:Packagist From an advisory covering 3 CVEs |
5.0.11 up to 5.0.11-p1+tuxcare | 5.0.11-p1+tuxcare |
cakephp/cakephpTuxCare:Packagist From an advisory covering 3 CVEs |
4.4.18 up to 4.4.18-p1+tuxcare | 4.4.18-p1+tuxcare |
cakephpDebian:11 |
All versions, plus listed versions 2.10.11-2.12.10.24-12.10.24-2 |
None known |
cakephp/cakephpPackagist From an advisory covering 2 CVEs |
4.5.0 up to 4.5.12, plus listed versions 4.5.14.5.104.5.114.5.24.5.3 Show 6 moreShow less4.5.44.5.54.5.64.5.74.5.84.5.9 |
4.5.12 |
Show 7 moreShow less
| Package | Affected | Fixed |
|---|---|---|
cakephp/cakephpPackagist From an advisory covering 2 CVEs |
4.6.0 up to 4.6.5, plus listed versions 4.6.14.6.24.6.34.6.4 |
4.6.5 |
cakephp/cakephpPackagist From an advisory covering 2 CVEs |
5.0.0 up to 5.1.9, plus listed versions 5.0.15.0.105.0.115.0.25.0.3 Show 16 moreShow less5.0.45.0.55.0.65.0.75.0.85.0.95.1.05.1.0-RC15.1.0-RC25.1.15.1.25.1.45.1.55.1.65.1.75.1.8 |
5.1.9 |
cakephp/cakephpPackagist From an advisory covering 2 CVEs |
5.2.0 up to 5.2.14, plus listed versions 5.2.15.2.105.2.115.2.125.2.13 Show 8 moreShow less5.2.25.2.35.2.45.2.55.2.65.2.75.2.85.2.9 |
5.2.14 |
cakephp/cakephpPackagist From an advisory covering 2 CVEs |
5.3.0 up to 5.3.7, plus listed versions 5.3.15.3.25.3.35.3.45.3.55.3.6 |
5.3.7 |
cakephpUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 2.7.2-12.8.0-12.8.0-1ubuntu0.1~esm1 |
None known |
cakephpUbuntu:20.04:LTS |
All versions, plus listed versions 2.10.11-2 |
None known |
cakephpUbuntu:22.04:LTS |
All versions, plus listed versions 2.10.11-2.12.10.24-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| affected, facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-77634 is a high vulnerability (CVSS 8.2) in Cakephp, published August 24, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.31%, the 24th percentile. Fixed in cakephp/cakephp 4.5.12.
References
github.com/cakephp/cakephp/security/advisories/GHSA-2qh5-382h-3jpc
github.com/cakephp/cakephp/commit/08188962bcd99a95da1e49f62e786f2d688f1e41
github.com/cakephp/cakephp/commit/2afe42b02d8ddc5d442bca5e8bb61910a727646e
github.com/cakephp/cakephp/commit/3e09dae6cbdc983754fa3a8e6aae74da102a3ea1
github.com/cakephp/cakephp/commit/b67b622457362b075bb37e625a82af73a0b3c9c3
nvd.nist.gov/vuln/detail/CVE-2026-77634
Show 17 moreShow less
github.com/advisories/GHSA-2qh5-382h-3jpc
abraxaslabs.tech/research/cakephp-smtp-crlf
github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119417.json
nvd.nist.gov/vuln/detail/CVE-2026-119417
vulncheck.com/advisories/cakephp-through-5.4.3-email-header-injection-via-bare-cr-lf-in-smtptransport-and-mailtransport
github.com/cakephp/cakephp/commit/2b9326ca3f17b2e940c6c9f50d821e9929c00f39
github.com/cakephp/cakephp/commit/3b997318539c48a423b77651c61c9f229cbf9e33
github.com/cakephp/cakephp/commit/773587406a29eedc2e0031e12683b08e112cc538
github.com/cakephp/cakephp/commit/e5936b286cc389b1497fd9b675a2133ba9ac557d
github.com/cakephp/cakephp/pull/19695
github.com/cakephp/cakephp
github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Mailer/Transport/MailTransport.php
github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Mailer/Transport/SmtpTransport.php
github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77634.json
security-tracker.debian.org/tracker/CVE-2026-77634
ubuntu.com/security/CVE-2026-77634
cve.org/CVERecord?id=CVE-2026-77634