{"id":"CVE-2026-115935","state":"PUBLISHED","title":"Control panel only API response emulation replaces \"securityKey\" and reaches server RCE","description":"The app/process-api-response-headers action accepts fake Craft API response headers from any authenticated control panel user.\n\n\n\nA 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.\n\n\n\nThis 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.\n\n\n\nThis 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.","publishedAt":"2026-10-23T21:40:57.592Z","updatedAt":"2026-10-23T21:40:57.592Z","severity":{"score":8.7,"label":"High","version":"4.0","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","source":"Hackrate"},"assigner":"Hackrate","products":["craftcms cms"],"affected":[{"vendor":"craftcms","product":"cms","packageName":"craftcms/cms","defaultStatus":"unaffected","versions":[{"version":"5.0.0","status":"affected","lessThan":"5.11.2","versionType":"semver"},{"version":"4.0.0","status":"affected","lessThan":"4.18.9","versionType":"semver"}],"collectionURL":"https://packagist.org"}],"references":["https://www.hckrt.com/hacktivity/HCKRT-WM3VSE","https://github.com/craftcms/cms/releases/tag/5.11.2","https://github.com/craftcms/cms","https://github.com/craftcms/cms/security/advisories/GHSA-9hp6-3565-gvh5"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:10:43.281Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/115xxx/CVE-2026-115935.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-115935","state":"PUBLISHED","datePublished":"2026-10-23T21:40:57.592Z","dateUpdated":"2026-10-23T21:40:57.592Z","assignerShortName":"Hackrate","assignerOrgId":"7004884b-51e2-48e8-b4a2-5ca29e80453e","dateReserved":"2026-10-23T21:23:18.607Z"},"containers":{"cna":{"title":"Control panel only API response emulation replaces \"securityKey\" and reaches server RCE","descriptions":[{"lang":"en","value":"The app/process-api-response-headers action accepts fake Craft API response headers from any authenticated control panel user.\n\n\n\nA 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.\n\n\n\nThis 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.\n\n\n\nThis 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."}],"affected":[{"vendor":"craftcms","product":"cms","packageName":"craftcms/cms","defaultStatus":"unaffected","versions":[{"version":"5.0.0","status":"affected","lessThan":"5.11.2","versionType":"semver"},{"version":"4.0.0","status":"affected","lessThan":"4.18.9","versionType":"semver"}],"collectionURL":"https://packagist.org"}],"references":[{"url":"https://www.hckrt.com/hacktivity/HCKRT-WM3VSE","tags":["third-party-advisory","technical-description","mitigation"]},{"url":"https://github.com/craftcms/cms/releases/tag/5.11.2","tags":["release-notes"]},{"url":"https://github.com/craftcms/cms","tags":["product"]},{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-9hp6-3565-gvh5","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"HIGH","baseScore":8.7,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseSeverity":"HIGH","baseScore":8.8,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"Hackrate","orgId":"7004884b-51e2-48e8-b4a2-5ca29e80453e","dateUpdated":"2026-10-23T21:40:57.592Z"},"cpeApplicability":[{"operator":"OR","nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:craftcms:cms:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0.0","versionEndExcluding":"5.11.2"},{"vulnerable":true,"criteria":"cpe:2.3:a:craftcms:cms:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0.0","versionEndExcluding":"4.18.9"}]}]}],"credits":[{"lang":"en","value":"Mohamed Wagdy (@Kalawy)","type":"reporter"},{"lang":"en","value":"Hackrate","type":"coordinator"}],"source":{"advisory":"GHSA-9hp6-3565-gvh5","discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 1.0.4"}}}}}