craftcms/cms · Security
Craft CMS Potential Remote Code Execution via Twig SSTI
- GHSA ID
- GHSA-crcq-738g-pqvc
- CVE ID
- CVE-2025-57811
- Severity
- medium
- Published
- Updated
- CVSS v4
- 6.6 · CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Description
Note that users must have administrator access to the Craft Control Panel, and 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
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
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
- CWE-1336 · Improper Neutralization of Special Elements Used in a Template Engine
References
- https://github.com/craftcms/cms/security/advisories/GHSA-crcq-738g-pqvc ↗
- https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv ↗
- https://github.com/craftcms/cms/pull/17612 ↗
- https://github.com/craftcms/cms/commit/e77f8a287dcdda41f1724f525d03542f18566cbc ↗
- https://nvd.nist.gov/vuln/detail/CVE-2025-57811 ↗
- https://github.com/advisories/GHSA-crcq-738g-pqvc ↗