Skip to main content

CakePHP CVE-2026-119417

| EUVDEUVD-2026-113797 MEDIUM
Improper Neutralization of CRLF Sequences ('CRLF Injection') (CWE-93)
2026-10-30 VulnCheck GHSA-xmwp-gcgj-p387
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app header built from user input
  2. Delivery
    Submit value with bare CR or LF
  3. Exploit
    Bypass CRLF-only header stripping
  4. Execution
    Inject Bcc/extra mail header
  5. Impact
    Redirect or alter outgoing email

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization CRLF sequence sanitization
Exploitation Conditions

Exploitation requires an application built on CakePHP to place attacker-controlled data into custom email header values through Message::setHeaders() or Message::addHeaders(), and to send via SmtpTransport or MailTransport - this is an application coding pattern, not CakePHP's default behavior, which is the primary limiting factor. The injected payload must use a bare CR or bare LF (full CRLF pairs are still stripped on affected versions), reflecting the AC:H/AT:P metrics. No authentication is required of the attacker against the application (PR:N), and no user interaction is needed. Impact is limited to email integrity (injecting headers such as Bcc to redirect or alter outgoing mail); there is no confidentiality or availability impact. Applications that never populate custom headers from untrusted input are not exploitable.

Impact

This is a medium-severity, defensive-priority issue rather than an emergency. The vendor-supplied CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N) scores 6.3 and tells a consistent story: network-reachable but with both high attack complexity and a specific attack requirement (AT:P), yielding only low integrity impact and no confidentiality or availability impact. The vuln.today decision label is 'this_month', not act_now/emergency. There is no CISA KEV entry and no EPSS probability in the supplied data, so there is no evidence of active or widespread exploitation. The practical risk is bounded by the fact that exploitation is not against CakePHP's defaults - it requires an application that feeds attacker-controlled data into custom email header values via Message::setHeaders()/addHeaders(). Where that pattern exists, the flaw is real and injectable without authentication, but it is a mail-integrity problem (e.g. silently adding Bcc recipients), not remote code execution. Note one data conflict: the CVE description lists '5.1.8 through 5.1.10' as vulnerable, while the GHSA advisory states the 5.1 branch was fixed in 5.1.9 - verify the exact 5.1 fix boundary against the vendor before concluding a 5.1.9/5.1.10 install is affected.

Exploit ScenarioDerived

An application uses CakePHP's mailer and copies user-supplied input (for example a form field or display name) into a custom email header via Message::setHeaders() or addHeaders(). Because SmtpTransport and MailTransport strip only full CRLF pairs, an attacker submits a value containing a bare CR or bare LF to split the header and inject an additional header such as Bcc, silently redirecting or copying outgoing mail. A public PoC reference exists (abraxaslabs research and the VulnCheck advisory); it is not verified as working exploit code in the supplied data.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 30, 2026

Email header injection in CakePHP's SmtpTransport and MailTransport lets data that an application places into custom mail headers via Message::setHeaders() or Message::addHeaders() break out of the header line and add or alter headers such as Bcc, redirecting or modifying outgoing mail. Affected releases named in the CVE are 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; the flaw is an incomplete fix for CVE-2026-77634, which stripped only full CRLF pairs and left bare CR or LF bytes intact. Impact is confined to message integrity (no confidentiality or availability effect) and only materializes when an application itself feeds untrusted input into custom headers; no authentication or user interaction is required of the attacker, and no public exploit code was identified at time of analysis. This is a medium-severity, defensive-priority issue rather than an emergency.

RemediationAI

Upgrade to a release containing the corrected newline stripping, which per the GitHub advisory GHSA-2qh5-382h-3jpc means 4.5.12 or later on the 4.5 line, 4.6.5 or later on 4.6, 5.1.9 or later on 5.1, 5.2.14 or later on 5.2, and 5.3.7 on 5.3; because the CVE text and the advisory disagree about 5.1.8-5.1.10 and 5.3.7, and because no fixed release is named for the affected 5.4.0-5.4.3 range, confirm the applicable version against the advisory and move to the newest patch release of your branch before treating the instance as fixed. The upstream changes are the commits https://github.com/cakephp/cakephp/commit/2b9326ca3f17b2e940c6c9f50d821e9929c00f39 (MailTransport and SmtpTransport) with related commits 773587406a29eedc2e0031e12683b08e112cc538, 3b997318539c48a423b77651c61c9f229cbf9e33 and e5936b286cc389b1497fd9b675a2133ba9ac557d and pull request https://github.com/cakephp/cakephp/pull/19695. If an immediate upgrade is not possible, the vendor's documented workaround is to strip CRLF bytes from email header values before calling setHeaders() or addHeaders() - remove bare carriage returns and bare line feeds, not just CRLF pairs - accepting that this relies on every code path that builds custom headers being covered, whereas the patched transports enforce the stripping centrally.

Affected VersionsENISA

cakephp 5.1.8 ≤5.1.10
cakephp 4.5.12 ≤4.5.12
cakephp 5.2.14 ≤5.2.15
cakephp 4.6.5 ≤4.6.5
cakephp 5.4.0 ≤5.4.3
cakephp 5.3.7 ≤5.3.7

Affected Packages

composer cakephp/cakephp fix: 4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7
euvd cakephp no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CakePHP is a PHP web framework whose Mailer component builds RFC 5322/MIME messages and hands them to a transport; SmtpTransport streams the message to a relay over SMTP while MailTransport passes it to a local mail binary. Custom headers supplied by the application flow into the serialized header block, and both transports attempt to neutralize header-splitting by stripping newline bytes from header values. The earlier fix for CVE-2026-77634 used str_replace("\r\n", '', $val), which removes only paired CRLF sequences, so a lone carriage return or a lone line feed survives and still terminates a header line in downstream SMTP/mail handling - the classic CWE-93 CRLF injection root cause. The upstream commits replace that call with str_replace(["\r", "\n"], '', $val) in src/Mailer/Transport/MailTransport.php (around line 57) and in SmtpTransport::_sendData() in src/Mailer/Transport/SmtpTransport.php (around line 578), and the accompanying test changes add explicit X-crlf, X-lf and X-cr fixtures alongside the existing injection case. The trigger requires attacker-controlled data to reach a custom header value through the application's own setHeaders()/addHeaders() calls, and the injected payload must use a bare CR or bare LF rather than a CRLF pair, which is why the assessed vector carries AC:H and AT:P; CPE data identifies the affected package generically as cakephp:cakephp.

Know when Cakephp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 3.7 LOW

AV:N and PR:N since an unauthenticated web input can reach the header; AC:H because exploitation depends on a non-default app pattern passing untrusted data to custom headers; impact is integrity-only (I:L).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Medium
widely-used PHP MVC framework but moderate web deployment footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

CVE-2012-4399 HIGH POC
7.5 Oct 09

The Xml class in CakePHP 2.1.x before 2.1.5 and 2.2.x before 2.2.1 allows remote attackers to read arbitrary files via X

CVE-2016-4793 HIGH POC
7.5 Jan 23

The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP head

CVE-2015-8379 HIGH POC
8.8 Jan 26

CakePHP 2.x and 3.x before 3.1.5 might allow remote attackers to bypass the CSRF protection mechanism via the _method pa

CVE-2023-22727 CRITICAL
9.8 Jan 17

CakePHP is a development framework for PHP web apps. Rated critical severity (CVSS 9.8), this vulnerability is remotely

CVE-2026-79752 CRITICAL
9.2 Sep 17

SQL injection in the CakePHP PHP framework (versions prior to 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7) allows unauthenti

CVE-2026-77635 CRITICAL
9.2 Aug 24

SQL injection in CakePHP's database layer allows attackers to inject arbitrary SQL when an application uses FunctionsBui

CVE-2026-119419 CRITICAL
9.2 Oct 30

SQL injection in CakePHP 5.4.3 and earlier allows an attacker who can influence a collation name passed to the StringExp

CVE-2026-119418 CRITICAL
9.2 Oct 30

SQL injection in CakePHP through 5.4.3 allows an attacker who can influence window-function query parameters to inject S

CVE-2026-77337 CRITICAL
9.1 Aug 24

Authentication bypass in the CakePHP Authentication plugin's CookieAuthenticator (versions before 2.11.2, 3.0.0-3.3.6, a

CVE-2026-77634 HIGH
8.2 Aug 24

Email header injection in CakePHP's Mailer component allows CRLF sequences embedded in custom header values to split SMT

CVE-2019-11458 HIGH
7.5 May 08

An issue was discovered in SmtpTransport in CakePHP 3.7.6. Rated high severity (CVSS 7.5), this vulnerability is remotel

CVE-2026-48820 MEDIUM
6.3 Jun 17

Local file inclusion in CakePHP's View::_getElementFileName() allows remote attackers to include arbitrary PHP files fro

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy