Skip to main content
VulnerabilityPublished Updated

CVE-2025-57811: craftcms/cms · Craft CMS Potential Remote Code Execution via Twig SSTI

Affects craftcms/cmsSource GCVE Database

0
Compare
Authoritative record:CVE-2025-57811· Medium 6.1

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

CVSS 4.0 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
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:U

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Aug 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Packagistcraftcms/cmsAffected
  • >=4.0.0-RC1 <4.16.6
Fixed in
  • 4.16.6
Packagistcraftcms/cmsAffected
  • >=5.0.0-RC1 <5.8.7
Fixed in
  • 5.8.7

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

Community reviews

Loading reviews…