{"id":"CVE-2025-46731","summary":"Craft CMS Contains a Potential Remote Code Execution Vulnerability via Twig SSTI","details":"Craft is a content management system. Versions of Craft CMS on the 4.x branch prior to 4.14.13 and on the 5.x branch prior to 5.6.16 contains a potential remote code execution vulnerability via Twig SSTI. One must have administrator access and `ALLOW_ADMIN_CHANGES` must be enabled for this to work. Users should update to the patched versions 4.14.13 or 5.6.15 to mitigate the issue.","aliases":["GHSA-7c58-g782-9j38"],"modified":"2026-08-12T03:51:16.502663195Z","published":"2025-05-05T19:35:31.347Z","related":["GHSA-7c58-g782-9j38","GHSA-f3cw-hg6r-chfv"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-1336"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46731.json"},"references":[{"type":"WEB","url":"https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46731.json"},{"type":"ADVISORY","url":"https://github.com/craftcms/cms/security/advisories/GHSA-7c58-g782-9j38"},{"type":"ADVISORY","url":"https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46731"},{"type":"FIX","url":"http://github.com/craftcms/cms/pull/17026"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/craftcms/cms","events":[{"introduced":"f83b031ab9b64e88c17ae9714fe12a9ab653b715"},{"fixed":"a17667bd7ba7e69c4eb19eb7d13f039a6904e130"},{"introduced":"963ff6d04306af26cb4b0cd1dbf22fc493ecd7ba"},{"fixed":"5ad0b36612ad190c841bd55cc05fcebc299ac1d7"},{"introduced":"daac7c1da2f701f2e9ddee1da1457ce61660b581"},{"last_affected":"04755d93f86d07cc183db47db8a0eee106892e30"}],"database_specific":{"source":["CPE_RANGE","CPE_STRING"],"cpe":["cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*","cpe:2.3:a:craftcms:craft_cms:4.0.0:rc1:*:*:*:*:*:*","cpe:2.3:a:craftcms:craft_cms:4.0.0:rc2:*:*:*:*:*:*","cpe:2.3:a:craftcms:craft_cms:4.0.0:rc3:*:*:*:*:*:*","cpe:2.3:a:craftcms:craft_cms:5.0.0:rc1:*:*:*:*:*:*"],"extracted_events":[{"introduced":"4.1.0"},{"fixed":"4.14.13"},{"introduced":"5.1.0"},{"fixed":"5.6.15"},{"introduced":"4.0.0-rc1"},{"last_affected":"4.0.0-rc1"},{"introduced":"4.0.0-rc2"},{"last_affected":"4.0.0-rc2"},{"introduced":"4.0.0-rc3"},{"last_affected":"4.0.0-rc3"},{"introduced":"5.0.0-rc1"},{"last_affected":"5.0.0-rc1"}]}}],"versions":["4.0.0-rc1","4.0.0-rc2","4.0.0-rc3","5.0.0-rc1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-46731.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"}]}