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

Published Aug 25, 2025
·
Updated

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.

Other sources

You must have administrator access, and ALLOWADMINCHANGES must be enabled for this to work.

https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production

Note: This is a follow-up to GHSA-f3cw-hg6r-chfv

Users should update to the patched versions (4.16.6 and 5.8.7) to mitigate the issue.

References: https://github.com/craftcms/cms/pull/17612

GitHub

Affected Software

9 affected componentsFixes available
Craft Craft>=4.0.0-RC1<=4.16.5, >=5.0.0-RC1<=5.8.6
composer/craftcms/cms>=5.0.0-RC1<=5.8.6
5.8.7
composer/craftcms/cms>=4.0.0-RC1<=4.16.5
4.16.6
CraftCMS Craft CMS>=4.1.0<4.16.6
CraftCMS Craft CMS>=5.1.0<5.8.7
CraftCMS Craft CMS=4.0.0-rc1
CraftCMS Craft CMS=4.0.0-rc2
CraftCMS Craft CMS=4.0.0-rc3
CraftCMS Craft CMS=5.0.0-rc1

Event History

Aug 25, 2025
CVE Published
via MITRE·05:52 PM
Data Sourced
via MITRE·05:52 PM
DescriptionWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·08:42 PM
Data Sourced
via GitHub·08:42 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-57811?

The severity of CVE-2025-57811 is critical due to the potential for remote code execution.

2

How do I fix CVE-2025-57811?

To fix CVE-2025-57811, upgrade to a version of Craft CMS that is not vulnerable, specifically those beyond 5.8.6.

3

What versions are affected by CVE-2025-57811?

CVE-2025-57811 affects Craft CMS versions from 4.0.0-RC1 to 4.16.5 and 5.0.0-RC1 to 5.8.6.

4

What is the nature of the vulnerability in CVE-2025-57811?

CVE-2025-57811 is a remote code execution vulnerability caused by Server-Side Template Injection (SSTI) via Twig.

5

Is CVE-2025-57811 a follow-up to any previous vulnerabilities?

Yes, CVE-2025-57811 is a follow-up to CVE-2024-52293.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203