CVE-2025-57811
highpriority · track · 29EPSS 0.009 · 61 %ileEUUSEPSS · scored 2026-10-27
Craft is a platform for creating digital experiences. From versions 4.0.0-RC1 to 4.16.5 and 5.0.0-RC1 to 5.8.6, there is a potential remote code execution vulnerability via Twig SSTI (Server-Side Template Injection). This is a follow-up to CVE-2024-52293. This vulnerability has been patched in versions 4.16.6 and 5.8.7.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.1–7.3
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (8)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-crcq-738g-pqvcCraft CMS Potential Remote Code Execution via Twig SSTI2025-08-25ghsa · osvUS
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
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://github.com/craftcms/cms/commit/e77f8a287dcdda41f1724f525d03542f18566cbccnnvd
- https://github.com/craftcms/cms/pull/17612cnnvd
- https://github.com/craftcms/cms/releasesPatchcnnvd
- https://github.com/craftcms/cms/security/advisories/GHSA-crcq-738g-pqvccnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2025-57811cnnvd
- https://github.com/craftcms/cms/commit/e77f8a287dcdda41f1724f525d03542f18566cbcenisa_euvd
- https://github.com/craftcms/cms/pull/17612enisa_euvd
- https://github.com/craftcms/cms/security/advisories/GHSA-crcq-738g-pqvcenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan