CVE Catalog
EnglishPolski(English translation not available - showing Polish)

CVE-2026-31857

High
Published: Translated: NVD NIST

Summary

W systemie zarządzania treścią Craft CMS przed wersjami 5.9.9 i 4.17.4 występuje podatność na zdalne wykonanie kodu w systemie warunków. Metoda BaseElementSelectConditionRule::getElementIds() przekazuje kontrolowany przez użytkownika ciąg znaków do funkcji renderObjectTemplate(), co umożliwia pełne RCE dla uwierzytelnionych użytkowników panelu sterowania.

Risk Assessment

Podatność ta pozwala na zdalne wykonanie kodu przez użytkowników z podstawowym dostępem do panelu sterowania, co stwarza poważne zagrożenie dla bezpieczeństwa organizacji. Nie wymaga ona uprawnień administratora ani specjalnych zezwoleń, co zwiększa ryzyko jej wykorzystania.

Recommendation

Zaleca się aktualizację do wersji 5.9.9 lub 4.17.4, aby zniwelować tę podatność. Użytkownicy powinni również zweryfikować swoje ustawienia zabezpieczeń w celu ochrony przed podobnymi zagrożeniami.

Related vulnerabilities

Original NVD description (English source)

Craft is a content management system (CMS). Prior to 5.9.9 and 4.17.4, a Remote Code Execution vulnerability exists in the Craft CMS 5 conditions system. The BaseElementSelectConditionRule::getElementIds() method passes user-controlled string input through renderObjectTemplate() -- an unsandboxed Twig rendering function with escaping disabled. Any authenticated Control Panel user (including non-admin roles such as Author or Editor) can achieve full RCE by sending a crafted condition rule via standard element listing endpoints. This vulnerability requires no admin privileges, no special permissions beyond basic control panel access, and bypasses all production hardening settings (allowAdminChanges: false, devMode: false, enableTwigSandbox: true). Users should update to the patched 5.9.9 or 4.17.4 release to mitigate the issue.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS