Description
The app/process-api-response-headers action accepts fake Craft API response headers from any authenticated control panel user.



A non-admin user with only accessCp can place newline characters in X-Craft-Plugin-Licenses. Craft passes this value to its .env writer without removing the newlines.



This lets the user insert a new attacker-known CRAFT_SECURITY_KEY into .env. After Craft loads that key, the user can forge a signed login redirect containing a Twig system() callback.



This is different from the previous report. That report reads the existing key through a Twig sandbox bypass. This report replaces the key through fake API headers and CRLF injection. Fixing either source does not fix the other.
Published: 2026-10-23
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The vulnerability allows a non-administrative user with control panel access to inject arbitrary content into the ".env" file by manipulating the X-Craft-Plugin-Licenses header. This replacement of the CRAFT_SECURITY_KEY enables forging a signed login redirect that executes arbitrary Twig system() calls, creating a remote code execution path. The weakness originates from improper validation of API response headers, a classic code injection flaw described by CWE‑94.

Affected Systems

Craft CMS is the impacted product. Users running any version prior to the patched release that includes the security fix (available as of the 5.11.2 release) are affected. The product is identified by the cpe entry for Craft CMS. No other vendors or product variants are listed.

Risk and Exploitability

The CVSS score of 8.7 classifies this vulnerability as high severity. Because the exploit requires authenticated access to the control panel with the accessCp permission, an attacker must first gain user credentials or compromise a legitimate account. Once authenticated, the attacker can inject CRLF sequences in the API header, replace the security key, and trigger server-side code execution. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog at this time. Despite the lack of a publicly documented exploit, the combination of high severity, authentication requirement, and the ease of header manipulation suggests that the potential impact is considerable for organizations using older Craft CMS versions.

Generated by OpenCVE AI on October 23, 2026 at 22:20 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Craft CMS to version 5.11.2 or later according to the official release notes.
  • Ensure that the X-Craft-Plugin-Licenses header value is sanitized before being passed to the .env writer, or remove the header's influence on configuration file writes.
  • Restrict control panel access so that only trusted administrators have the accessCp permission, keeping non-admin users from injecting CRLF characters into the header.

Generated by OpenCVE AI on October 23, 2026 at 22:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 23 Oct 2026 21:45:00 +0000

Type Values Removed Values Added
Description The app/process-api-response-headers action accepts fake Craft API response headers from any authenticated control panel user. A non-admin user with only accessCp can place newline characters in X-Craft-Plugin-Licenses. Craft passes this value to its .env writer without removing the newlines. This lets the user insert a new attacker-known CRAFT_SECURITY_KEY into .env. After Craft loads that key, the user can forge a signed login redirect containing a Twig system() callback. This is different from the previous report. That report reads the existing key through a Twig sandbox bypass. This report replaces the key through fake API headers and CRLF injection. Fixing either source does not fix the other.
Title Control panel only API response emulation replaces "securityKey" and reaches server RCE
First Time appeared Craftcms
Craftcms cms
Weaknesses CWE-94
CPEs cpe:2.3:a:craftcms:cms:*:*:*:*:*:*:*:*
Vendors & Products Craftcms
Craftcms cms
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Hackrate

Published:

Updated: 2026-10-23T21:40:57.592Z

Reserved: 2026-10-23T21:23:18.607Z

Link: CVE-2026-115935

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-23T22:16:59.290

Modified: 2026-10-23T22:16:59.290

Link: CVE-2026-115935

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T22:30:14Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')