Craft CMS Contains a Potential Remote Code Execution Vulnerability via Twig SSTI
Published 5 May 2025 · Updated 4 Feb 2026
Affected packages
- Affected
- >=4.0.0-RC1 <4.14.13
- Fixed in
- 4.14.13
composer require craftcms/cms:^4.14.13- Affected
- >=5.0.0-RC1 <5.6.15
- Fixed in
- 5.6.15
composer require craftcms/cms:^5.6.15Details
Craft CMS contains a potential remote code execution vulnerability via Twig SSTI. You must have administrator access and ALLOW_ADMIN_CHANGES must be enabled for this to work.
https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production
Note: This is a follow-up to https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv
Users should update to the patched versions (4.14.13 and 5.6.15) to mitigate the issue.
References
https://github.com/craftcms/cms/pull/17026
Is GHSA-7c58-g782-9j38 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected craftcms/cms, and gives you the command that fixes it.
References
- Linkgithub.com/craftcms/cms/security/advisories/GHSA-7c58-g782-9j38
- Linkgithub.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv
- Advisorynvd.nist.gov/vuln/detail/CVE-2025-46731
- Linkcraftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production
- Packagegithub.com/craftcms/cms
- Linkgithub.com/craftcms/cms/pull/17026
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.