{"id":"CVE-2025-57811","aliases":["GHSA-crcq-738g-pqvc"],"url":"https://o3.security/vulnerability/CVE-2025-57811","summary":"Craft Potential Remote Code Execution via Twig SSTI","details":"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.\n\nhttps://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production\n\nNote: This is a follow-up to [GHSA-f3cw-hg6r-chfv](https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv)\n\nUsers should update to the patched versions (4.16.6 and 5.8.7) to mitigate the issue.\n\nResources: https://github.com/craftcms/cms/pull/17612","published":"2025-08-25T17:52:07.786Z","modified":"2026-08-12T03:51:33.613302293Z","cvss":null,"epss":{"score":0.00864,"percentile":0.56683,"asOf":"2026-09-15"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"craftcms/cms","fixedVersion":"4.16.6"},{"ecosystem":"Packagist","name":"craftcms/cms","fixedVersion":"5.8.7"}],"fix":{"url":"https://github.com/craftcms/cms/commit/e77f8a287dcdda41f1724f525d03542f18566cbc","label":"craftcms/cms@e77f8a2"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57811.json"},{"type":"ADVISORY","url":"https://github.com/craftcms/cms/security/advisories/GHSA-crcq-738g-pqvc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57811"},{"type":"FIX","url":"https://github.com/craftcms/cms/commit/e77f8a287dcdda41f1724f525d03542f18566cbc"},{"type":"FIX","url":"https://github.com/craftcms/cms/pull/17612"},{"type":"WEB","url":"https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv"},{"type":"PACKAGE","url":"https://github.com/craftcms/cms"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:33.613302293Z"}}