HIGH7.3
GHSA-7c58-g782-9j38
Craft CMS Contains a Potential Remote Code Execution Vulnerability via Twig SSTI
Quick fix
GHSA-7c58-g782-9j38 — craftcms/cms: upgrade to the fixed version with the command below.
composer require craftcms/cms:^4.14.13Details
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
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/craftcms/cms
Introduced in:
4.0.0-RC1Fixed in: 4.14.13Fix
composer require craftcms/cms:^4.14.13Packagist/craftcms/cms
Introduced in:
5.0.0-RC1Fixed in: 5.6.15Fix
composer require craftcms/cms:^5.6.15References
- https://github.com/craftcms/cms/security/advisories/GHSA-7c58-g782-9j38[WEB]
- https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2025-46731[ADVISORY]
- https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production[WEB]
- https://github.com/craftcms/cms[PACKAGE]
- http://github.com/craftcms/cms/pull/17026[WEB]