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

- Severity: Medium 6.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.09%, higher than 66% of CVEs (2026-12-01)
- Published: 2025-08-25T17:52:07.786Z
- Modified: 2026-06-17T09:43:28.847Z
- Also known as: GHSA-crcq-738g-pqvc
- Weaknesses: CWE-22, CWE-94, CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- craftcms cms: >= 4.0.0-RC1, < 4.16.6; >= 5.0.0-RC1, < 5.8.7
- craftcms/cms (Packagist): from 4.0.0-RC1 before 4.16.6; from 5.0.0-RC1 before 5.8.7
- craftcms craft_cms: from 4.1.0 before 4.16.6; from 5.1.0 before 5.8.7; 4.0.0; 5.0.0

## Every score

- GitHub_M: CVSS:4.0 6.1 Medium `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`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/craftcms/cms/security/advisories/GHSA-crcq-738g-pqvc> (vendor-advisory, web)
- <https://github.com/craftcms/cms/pull/17612> (patch, web)
- <https://github.com/craftcms/cms/commit/e77f8a287dcdda41f1724f525d03542f18566cbc> (patch, web)
- <https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-57811> (advisory)
- <https://github.com/craftcms/cms> (package)

## Sources

- CVE List: [CVE-2025-57811](https://www.cve.org/CVERecord?id=CVE-2025-57811), CVE Terms of Use, modified 2025-08-25
- GitHub Advisory Database: [GHSA-crcq-738g-pqvc](https://github.com/advisories/GHSA-crcq-738g-pqvc), CC-BY-4.0, modified 2025-11-27
- NVD: [CVE-2025-57811](https://nvd.nist.gov/vuln/detail/CVE-2025-57811), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-57811 · Whole record: https://cve.day/CVE-2025-57811.json · Rebuilt by cve.day 2026-11-25T22:59:03.663Z
