CVE-2026-55794
JSON

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 packageVersionsReported by
craftcms cms>= 5.9.0, < 5.10.0CVE List
craftcms/cms (Packagist)from 5.9.0 before 5.10.0GitHub Advisory Database

All scores

GitHub_M8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L
GitHubhigh CVSS:4.0CVSS: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

CWE-94CWE-1336

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

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

https://github.com/craftcms/cms/pull/18680

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

SourceRecordLicence
CVE ListCVE-2026-55794 changed 2026-07-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-f74w-488g-8x5r changed 2026-09-10CC-BY-4.0
NVDCVE-2026-55794 changed 2026-10-25Public domain