# CVE-2025-46731: Craft CMS Contains a Potential Remote Code Execution Vulnerability via Twig SSTI

- Severity: High 7.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.54%, higher than 75% of CVEs (2026-12-01)
- Published: 2025-05-05T19:35:31.347Z
- Modified: 2026-06-17T09:26:53.587Z
- Also known as: GHSA-7c58-g782-9j38
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- craftcms cms: >= 4.0.0-RC1, < 4.14.13; >= 5.0.0-RC1, < 5.6.15
- craftcms/cms (Packagist): from 4.0.0-RC1 before 4.14.13; from 5.0.0-RC1 before 5.6.15
- craftcms craft_cms: from 4.1.0 before 4.14.13; from 5.1.0 before 5.6.15; 4.0.0; 5.0.0

## Every score

- GitHub_M: CVSS:4.0 7.3 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/craftcms/cms/security/advisories/GHSA-7c58-g782-9j38> (third-party-advisory, web)
- <https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv> (not-applicable, web)
- <https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production> (product, web)
- <http://github.com/craftcms/cms/pull/17026> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-46731> (advisory)
- <https://github.com/craftcms/cms> (package)

## Sources

- CVE List: [CVE-2025-46731](https://www.cve.org/CVERecord?id=CVE-2025-46731), CVE Terms of Use, modified 2025-05-05
- GitHub Advisory Database: [GHSA-7c58-g782-9j38](https://github.com/advisories/GHSA-7c58-g782-9j38), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-46731](https://nvd.nist.gov/vuln/detail/CVE-2025-46731), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-46731 · Whole record: https://cve.day/CVE-2025-46731.json · Rebuilt by cve.day 2026-11-25T22:58:57.610Z
