{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-115935",
        "assignerOrgId": "7004884b-51e2-48e8-b4a2-5ca29e80453e",
        "state": "PUBLISHED",
        "assignerShortName": "Hackrate",
        "dateReserved": "2026-10-23T21:23:18.607Z",
        "datePublished": "2026-10-23T21:40:57.592Z",
        "dateUpdated": "2026-10-23T21:40:57.592Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "7004884b-51e2-48e8-b4a2-5ca29e80453e",
                "shortName": "Hackrate",
                "dateUpdated": "2026-10-23T21:40:57.592Z"
            },
            "title": "Control panel only API response emulation replaces \"securityKey\" and reaches server RCE",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-94",
                            "description": "CWE-94 Improper Control of Generation of Code ('Code Injection')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "craftcms",
                    "product": "cms",
                    "collectionURL": "https://packagist.org",
                    "packageName": "craftcms/cms",
                    "versions": [
                        {
                            "status": "affected",
                            "version": "5.0.0",
                            "lessThan": "5.11.2",
                            "versionType": "semver"
                        },
                        {
                            "status": "affected",
                            "version": "4.0.0",
                            "lessThan": "4.18.9",
                            "versionType": "semver"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "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"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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.",
                    "supportingMedia": [
                        {
                            "type": "text/html",
                            "base64": false,
                            "value": "<p>The&nbsp;<code>app/process-api-response-headers</code>&nbsp;action accepts fake Craft API response headers from any authenticated control panel user.</p><p>A non-admin user with only&nbsp;<code>accessCp</code>&nbsp;can place newline characters in&nbsp;<code>X-Craft-Plugin-Licenses</code>. Craft passes this value to its&nbsp;<code>.env</code>&nbsp;writer without removing the newlines.</p><p>This lets the user insert a new attacker-known&nbsp;<code>CRAFT_SECURITY_KEY</code>&nbsp;into&nbsp;<code>.env</code>. After Craft loads that key, the user can forge a signed login redirect containing a Twig&nbsp;<code>system()</code>&nbsp;callback.</p><p>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.</p>"
                        }
                    ]
                }
            ],
            "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"
                    }
                }
            ],
            "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"
            }
        }
    }
}