CVE-2025-57811: craftcms/cms · Craft CMS Potential Remote Code Execution via Twig SSTI
Affects craftcms/cmsSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium : upgrade to 4.16.6 when convenient.
Data as of 19 Nov 2026, 02:48 UTC
- Patch
- Available – fixed in 4.16.6, 5.8.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:UExploitation evidence
Disclosed: evidence found.
CVE published 25 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 18 Nov 2026.
What to do
Upgrade craftcms/cms to 4.16.6; craftcms/cms to 5.8.7.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistcraftcms/cms | Affected
| Fixed in
|
| Packagistcraftcms/cms | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Users should update Craft CMS to versions 4.16.6 or 5.8.7 or later, where this vulnerability is patched. Additionally, it is recommended to disable the allowAdminChanges setting in production environments as per Craft CMS security best practices. No other specific mitigations are indicated. Since a patch is available, applying the official fix is the primary recommended action.
Description
CVE-2025-57811 is a high-severity vulnerability in Craft CMS that allows potential remote code execution via Twig Server-Side Template Injection (SSTI). Exploitation requires administrator access to the Craft Control Panel and the configuration setting allowAdminChanges to be enabled, which is not recommended for production environments. The issue affects Craft CMS versions from 4.0.0-RC1 up to but not including 4.16.6, and from 5.0.0-RC1 up to but not including 5.8.7. Patched versions 4.16.6 and 5.8.7 address this vulnerability. No known exploits are reported in the wild at this time.
References
- github.com/craftcms/cms/security/advisories/GHSA-crcq-738g-pqvc (opens in a new tab)
- github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-57811 (opens in a new tab)
- github.com/craftcms/cms/pull/17612 (opens in a new tab)
- github.com/craftcms/cms/commit/e77f8a287dcdda41f1724f525d03542f18566cbc (opens in a new tab)
- github.com/craftcms/cms (opens in a new tab)