CVE-2026-119415

CakePHP through 5.4.3 MIME Header Injection via FormDataPart Content-Type

Published Oct 30, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
CakePHP through 5.4.3 contains a header injection vulnerability in FormDataPart that allows attackers to inject MIME part headers via unsanitized Content-Type and Content-ID values. Attackers can supply CR/LF sequences in attachment MIME types or Content-IDs passed to Message::setAttachments() or HTTP client multipart data to add arbitrary headers or content.

Analysis

AI-generated

Technical impact

CakePHP versions up to 5.4.3 contain a flaw in the FormDataPart class that allows an attacker to insert carriage‑return and line‑feed sequences into the Content‑Type or Content‑ID headers of a MIME part. The attacker can supply these values via Message::setAttachments or the HTTP multipart client, causing the framework to add arbitrary MIME headers or modify the request body. Such header injection can lead to data exposure, manipulation of request handling, or unintended behavior in downstream services that interpret the injected headers.

Affected Systems

All installations of CakePHP from the earliest releases through 5.4.3 are affected. The vulnerability resides in the public FormDataPart component and the Mailer Message component used for attachments. Any system that processes file attachments or multipart HTTP requests using these components without the patch is at risk.

Risk and Exploitability

The vulnerability has a CVSS score of 6.3, categorizing it as moderate. No EPSS score is available, so exploitation likelihood cannot be quantified precisely, and the issue is not listed in CISA KEV. The attack vector requires an attacker to craft a multipart request or attachment via a form or API that accepts file uploads, making it a remote exploitation scenario. Successful exploitation can inject malicious MIME headers, potentially affecting how the application or downstream services process the request or email, with consequences that include data leakage, tampering, or denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade CakePHP to 5.4.4 or later, which includes the patch that sanitizes Content‑Type and Content‑ID values.
  • Modify the attachment handling code to reject or escape CR/LF characters in user‑supplied Content‑Type and Content‑ID headers, thereby preventing header injection in accordance with CWE-93.
  • After applying the fix, monitor application logs for unexpected MIME headers or abnormal email content as an ongoing sanity check and alerting mechanism.

Generated by OpenCVE AI on October 30, 2026 at 13:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description CakePHP through 5.4.3 contains a header injection vulnerability in FormDataPart that allows attackers to inject MIME part headers via unsanitized Content-Type and Content-ID values. Attackers can supply CR/LF sequences in attachment MIME types or Content-IDs passed to Message::setAttachments() or HTTP client multipart data to add arbitrary headers or content.
Title CakePHP through 5.4.3 MIME Header Injection via FormDataPart Content-Type
First Time appeared Cakephp
Cakephp cakephp
Weaknesses CWE-93
CPEs cpe:2.3:a:cakephp:cakephp:*:*:*:*:*:*:*:*
Vendors & Products Cakephp
Cakephp cakephp
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N'}

cvssV4_0

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

Weaknesses
  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 4, 2026, 2:19 AM
Reserved
Oct 30, 2026, 2:41 AM
Status
Deferred
Published
Oct 30, 2026, 12:16 PM
Modified
Nov 4, 2026, 3:17 AM