GHSA-crcq-738g-pqvc
Craft CMS Potential Remote Code Execution via Twig SSTI
Quick fix
GHSA-crcq-738g-pqvc — craftcms/cms: upgrade to the fixed version with the command below.
composer require craftcms/cms:^4.16.6Details
Note that users must have administrator access to the Craft Control Panel, and [allowAdminChanges](https://craftcms.com/docs/5.x/reference/config/general.html#allowadminchanges) must be enabled for this to work, which is against Craft CMS' recommendations for any non-dev environment.
https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production
Note: This is a follow-up to [GHSA-f3cw-hg6r-chfv](https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv)
Users should update to the patched versions (4.16.6 and 5.8.7) to mitigate the issue.
Resources: https://github.com/craftcms/cms/pull/17612
Are you affected?
Enter the version of the package you're using.
Affected packages
4.0.0-RC1Fixed in: 4.16.6composer require craftcms/cms:^4.16.65.0.0-RC1Fixed in: 5.8.7composer require craftcms/cms:^5.8.7References
- https://github.com/craftcms/cms/security/advisories/GHSA-crcq-738g-pqvc[WEB]
- https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2025-57811[ADVISORY]
- https://github.com/craftcms/cms/pull/17612[WEB]
- https://github.com/craftcms/cms/commit/e77f8a287dcdda41f1724f525d03542f18566cbc[WEB]
- https://github.com/craftcms/cms[PACKAGE]