{"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-09-04T03:30:58.370435554Z","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":"daac7c1da2f701f2e9ddee1da1457ce61660b581"},{"fixed":"a17667bd7ba7e69c4eb19eb7d13f039a6904e130"},{"introduced":"04755d93f86d07cc183db47db8a0eee106892e30"},{"fixed":"5ad0b36612ad190c841bd55cc05fcebc299ac1d7"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"4.0.0-RC1"},{"fixed":"4.14.13"},{"introduced":"5.0.0-RC1"},{"fixed":"5.6.15"}]}}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-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"}]}