Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-f74w-488g-8x5r

Опубликовано: 06 июл. 2026
Источник: github
Github: Прошло ревью
CVSS4: 8.7

Описание

Craft CMS: Potential authenticated Remote Code Execution via referrer redirect

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

Пакеты

Наименование

craftcms/cms

composer
Затронутые версииВерсия исправления

>= 5.9.0, < 5.10.0

5.10.0

EPSS

Процентиль: 34%
0.00412
Низкий

8.7 High

CVSS4

Дефекты

CWE-94

Связанные уязвимости

nvd
3 месяца назад

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.

EPSS

Процентиль: 34%
0.00412
Низкий

8.7 High

CVSS4

Дефекты

CWE-94