Description
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.
Published: 2026-08-24
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: Email header injection allowing arbitrary SMTP headers
Action: Immediate patch
AI Analysis

Impact

CakePHP’s SmtpTransport components fail to strip carriage‑return and line‑feed characters from custom mail headers set with Message::setHeaders() or Message::addHeaders(). This omission permits an attacker who can supply input to these header functions to inject additional email headers into the outgoing message. The injected headers may change how the message is treated by mail servers or could be used to forge sender or recipient addresses, potentially enabling phishing or spam defacement. The weakness is a classic CRLF injection flaw (CWE‑93) and can compromise the integrity of email communications.

Affected Systems

The vulnerability affects CakePHP versions prior to 4.5.12, 4.6.5, 5.1.8, 5.2.14, and 5.3.7 on their respective release lines. All other versions above those revision numbers are considered patched.

Risk and Exploitability

With a CVSS score of 8.2, the issue is rated as high severity. The EPSS score is not available, suggesting insufficient publicly observable exploitation data, but the vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the attack vector is web-based, local to the application, as an attacker can exploit the flaw by sending web requests that include crafted header values to the application. The high CVSS score and lack of patches on older releases make the risk significant for users still running unpatched CakePHP.

Generated by OpenCVE AI on August 24, 2026 at 21:42 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade CakePHP to the latest released version that includes the patch (4.5.12, 4.6.5, 5.1.8, 5.2.14, or 5.3.7 and later).
  • Sanitize any user‑controlled data before passing it to Message::setHeaders() or Message::addHeaders(), ensuring that all CRLF characters are removed or encoded.
  • Limit or review the usage of custom mail headers in the application code, preferring standard headers whenever possible and validating header values against a whitelist.

Generated by OpenCVE AI on August 24, 2026 at 21:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-2qh5-382h-3jpc CakePHP: SmtpTransport vulnerable to CRLF header injection
History

Tue, 25 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 24 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Cakephp
Cakephp cakephp
Vendors & Products Cakephp
Cakephp cakephp

Mon, 24 Aug 2026 20:45:00 +0000

Type Values Removed Values Added
Description 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.
Title CakePHP: SmtpTransport vulnerable to CRLF header injection
Weaknesses CWE-93
References
Metrics cvssV4_0

{'score': 8.2, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-25T19:23:40.053Z

Reserved: 2026-08-20T20:52:01.927Z

Link: CVE-2026-77634

cve-icon Vulnrichment

Updated: 2026-08-25T18:32:33.699Z

cve-icon NVD

Status : Deferred

Published: 2026-08-24T21:17:48.307

Modified: 2026-09-09T21:06:39.057

Link: CVE-2026-77634

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-24T21:45:03Z

Weaknesses
  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')