8.7high
Craft CMS: Potential authenticated Remote Code Execution via referrer redirect
- Severity
- 8.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-f74w-488g-8x5r
Description
Craft CMS is a content management system (CMS). In versions 5.9.0 and above prior to 5.10.0, control panel users with the ability to edit entries can execute unsandboxed Twig code via the HTTP Referrer header, potentially leading to authenticated RCE. The issue happens when a user is saving entries. Strings for a signed redirect URL are being compiled as a Twig template via renderObjectTemplate(), and while a sandboxed alternative already exists (renderSandboxedObjectTemplate()), it is not used in this case. This signed URL can be specified by users, as it is reflected in the “Referer” HTTP request header, which is under attacker control. This issue has been fixed in version 5.10.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| craftcms cms | >= 5.9.0, < 5.10.0 | CVE List |
| craftcms/cms (Packagist) | from 5.9.0 before 5.10.0 | GitHub Advisory Database |
All scores
| GitHub_M | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L |
Classification
What each source says
CVE List
Craft CMS is a content management system (CMS). In versions 5.9.0 and above prior to 5.10.0, control panel users with the ability to edit entries can execute unsandboxed Twig code via the HTTP Referrer header, potentially leading to authenticated RCE. The issue happens when a user is saving entries. Strings for a signed redirect URL are being compiled as a Twig template via renderObjectTemplate(), and while a sandboxed alternative already exists (renderSandboxedObjectTemplate()), it is not used in this case. This signed URL can be specified by users, as it is reflected in the “Referer” HTTP request header, which is under attacker control. This issue has been fixed in version 5.10.0.
GitHub Advisory Database
Requirements:
- Control panel access
- Permissions to edit an entry
Details
Control panel users with the ability to edit entries can execute unsandboxed Twig code via the HTTP Referrer header.
The issue happens when a user is saving entries. Strings for a signed redirect URL are being compiled as a Twig template via renderObjectTemplate(), and while a sandboxed alternative already exists (renderSandboxedObjectTemplate()), it is not used in this case. This signed URL can be specified by users, as it is reflected in the “Referer” HTTP request header, which is under attacker control.
This has been fixed in Craft 5.10.0. Affected users should update to that version or higher to get the fix.
Resources
NVD (es)
Craft CMS es un sistema de gestión de contenido (CMS). En las versiones 5.9.0 y superiores anteriores a la 5.10.0, los usuarios del panel de control con capacidad para editar entradas pueden ejecutar código Twig sin sandbox a través del encabezado HTTP Referrer, lo que podría conducir a una RCE autenticada. El problema ocurre cuando un usuario está guardando entradas. Las cadenas para una URL de redirección firmada se están compilando como una plantilla Twig a través de renderObjectTemplate(), y aunque ya existe una alternativa con sandbox (renderSandboxedObjectTemplate()), no se utiliza en este caso. Esta URL firmada puede ser especificada por los usuarios, ya que se refleja en el encabezado de solicitud HTTP ’Referer’, el cual está bajo control del atacante. Este problema ha sido solucionado en la versión 5.10.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-55794 changed 2026-07-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f74w-488g-8x5r changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-55794 changed 2026-10-25 | Public domain |