CVE-2026-119417
CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport
Check your servers for CVE-2026-119417
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-119417 affects cakephp, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity low, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity low, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.45%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 41.0% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 30 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-93 Improper Neutralization of CRLF Sequences
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| cakephp |
affected from 4.5.12 up to and including 4.5.12 affected from 4.6.5, before 4.6.6 affected from 5.1.8 up to and including 5.1.10 affected from 5.2.14, before 5.2.16 affected from 5.3.7, before 5.3.8 affected from 5.4.0, before 5.4.4
Other versions: unaffected
|
Is my server affected?
Find the installed version of cakephp and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i cakephp
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-119417 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-119417RHEL, Rocky, Alma, Fedora
rpm -q cakephp
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-119417Alpine
apk list --installed | grep -i cakephpWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-119417
trivy image --scanners vuln IMAGE | grep CVE-2026-119417
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- GitHub Security Advisory (GHSA-2qh5-382h-3jpc) github.com · related, vendor advisory
- https://abraxaslabs.tech/research/cakephp-smtp-crlf abraxaslabs.tech · third party advisory
- VulnCheck Advisory: CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport vulncheck.com · third party advisory
Patches and release notes
- https://github.com/cakephp/cakephp/commit/2b9326ca3f17b2e940c6c9f50d821e9929c00f39 github.com · patch
- https://github.com/cakephp/cakephp/commit/773587406a29eedc2e0031e12683b08e112cc538 github.com · patch
- https://github.com/cakephp/cakephp/commit/3b997318539c48a423b77651c61c9f229cbf9e33 github.com · patch
- https://github.com/cakephp/cakephp/commit/e5936b286cc389b1497fd9b675a2133ba9ac557d github.com · patch
- https://github.com/cakephp/cakephp/pull/19695 github.com · patch, issue tracking
Other references
- https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Mailer/Transport/SmtpTransport.php#L574 github.com · technical description
- https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Mailer/Transport/MailTransport.php#L57 github.com · technical description
- https://github.com/cakephp/cakephp github.com · product
Source: the record CVE-2026-119417 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse