Katalog CVE

CVE-2026-115934

KrytyczneCVSS 9.8
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

Witryny korzystające z craft.search do wyszukiwania są podatne na nieuwierzytelnioną iniekcję SQL na froncie. Parametr attribute jest wstawiany do zapytania bez sanityzacji, a ponieważ PDO działa z emulowanymi przygotowaniami, możliwe jest wykonanie wielu instrukcji. Podatność dotyczy wyłącznie MySQL/MariaDB i pozwala na odczyt oraz zapis bazy danych, a także eskalację uprawnień do administratora.

Ocena ryzyka

Nieuwierzytelniony atakujący może odczytać i modyfikować dane aplikacji, w tym ustawić flagę administratora dla konta lub nadpisać hasła. Może to prowadzić do pełnego przejęcia systemu CMS.

Rekomendacja

Zaktualizuj do wersji 4.18.9 lub 5.11.2. Jeśli aktualizacja nie jest możliwa, zablokuj żądania frontowe zawierające %5Battribute%5D lub [attribute] w ciągu zapytania.

Inne podatności w Craft CMS

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

An unauthenticated SQL injection can occur on the front end of any site that uses craft.search to perform a search, allowing stacked query execution and enabling escalation to an administrator. Note that this only affects MySQL/MariaDB. Impact * SQL injection — The attribute parameter is concatenated into the query unsanitized, and because PDO runs with emulated prepares, stacked statements execute. This gives unauthenticated read and write access to the application database. * Privilege escalation to administrator — The write primitive was used to set the admin flag on user ID 1 in the users table, confirmed by reading the value back. Craft short-circuits its permission checks on this single column, so no further changes were needed. The same primitive can overwrite any account’s password hash. Update to the patched versions (4.18.9 and 5.11.2) to get the fix. If you cannot update immediately, you can block front-end requests with %5Battribute%5D and [attribute] anywhere in the query string as a temporary mitigation.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS