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.
Published: 2026-07-01
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Control‑panel users who can edit entries can cause the system to treat the HTTP Referrer header as unsandboxed Twig template code during an entry‑save operation. Because the CMS compiles this string with the regular renderObjectTemplate() method rather than a sandboxed alternative, an attacker can inject arbitrary Twig code that is executed with the permissions of the editing user. This code execution flaw is classified as CWE‑1336 and CWE‑94 and can compromise the underlying web server, providing the attacker with full control over site files, the database, and system resources.

Affected Systems

Craft CMS versions 5.9.0 through 5.9.x are vulnerable; the issue was fixed in version 5.10.0. Any installation that employs the control‑panel entry‑editing feature is affected.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity, while the EPSS score of less than 1% shows a very low exploitation probability, suggesting limited active use. The vulnerability requires an authenticated control‑panel user with entry‑editing rights who must supply a malicious Referer header during the save operation. Once triggered, the attacker achieves authenticated remote code execution. The issue is not currently listed in the CISA KEV catalog.

Generated by OpenCVE AI on July 21, 2026 at 12:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Craft CMS to version 5.10.0 or later to apply the official fix.
  • Restrict or remove entry‑editing permissions for users until the update can be applied.
  • If a patch cannot be applied immediately, block or strip the Referer header on entry‑save requests to prevent the unsafe rendering.

Generated by OpenCVE AI on July 21, 2026 at 12:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-f74w-488g-8x5r Craft CMS: Potential authenticated Remote Code Execution via referrer redirect
History

Thu, 02 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 01 Jul 2026 23:45:00 +0000

Type Values Removed Values Added
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.
Title Craft CMS: Potential authenticated Remote Code Execution via referrer redirect
Weaknesses CWE-1336
CWE-94
References
Metrics cvssV4_0

{'score': 8.7, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-02T12:41:39.752Z

Reserved: 2026-06-17T14:40:28.380Z

Link: CVE-2026-55794

cve-icon Vulnrichment

Updated: 2026-07-02T12:41:35.675Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-21T12:45:02Z

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')