Improper Neutralization of Special Elements Used in a Template Engine in Craft CMS - CVE-2025-57811

 

Improper Neutralization of Special Elements Used in a Template Engine in Craft CMS - CVE-2025-57811

Published: April 17, 2026


Vulnerability identifier: #VU126476
CSH Severity: Low
CVSS v4.0: 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/U:Clear
CVE-ID: CVE-2025-57811
CWE-ID: CWE-1336
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Pixel & Tonic, Inc.
Affected software:
Craft CMS

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to server-side template injection in the Twig template engine when processing crafted template input. A remote privileged user can inject specially crafted Twig template content to execute arbitrary code.

Exploitation requires administrator access and the ALLOW_ADMIN_CHANGES setting to be enabled.


How to mitigate CVE-2025-57811

Install security update from vendor's website.

Sources