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.
Published: 2026-10-30
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: Arbitrary MIME header injection
Action: Immediate patch
AI Analysis

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.

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

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 yet.

History

Fri, 30 Oct 2026 11:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-30T11:30:48.078Z

Reserved: 2026-10-30T02:41:10.464Z

Link: CVE-2026-119415

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-30T12:16:37.850

Modified: 2026-10-30T12:16:37.850

Link: CVE-2026-119415

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T13:30:12Z

Weaknesses
  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')