p PatchFirst

CVE-2026-55794

CVE-2026-55794 · Craft CMS: Potential authenticated Remote Code Execution via referrer redirect

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 8.7 · High · EPSS 0.4% · Fix available

Published
Updated

Stack: php

Affected products and versions

  • cms

    Versions
    • >= 5.9.0, < 5.10.0: Affected

    No fix published

  • craftcms/cms Packagist

    Versions
    • 5.9.0
    • 5.9.1
    • 5.9.10
    • 5.9.11
    • 5.9.12
    • 5.9.13
    • 5.9.14
    • 5.9.15
    • 5.9.16
    • 5.9.17
    • 5.9.18
    • 5.9.19
    • 5.9.2
    • 5.9.20
    • 5.9.21
    • 5.9.22
    • 5.9.23
    • 5.9.3
    • 5.9.4
    • 5.9.5
    • 5.9.6
    • 5.9.7
    • 5.9.8
    • 5.9.9
    Affected ranges
    • ECOSYSTEM: ≥ 5.9.0, < 5.10.0

    Update to 5.10.0

Original sources

Check your server →