CVE Catalog

CVE-2026-115934

CriticalCVSS 9.8
Published: Translated: NVD NIST

Summary

Sites using craft.search for searching are vulnerable to unauthenticated SQL injection on the front end. The attribute parameter is concatenated into the query unsanitized, and because PDO runs with emulated prepares, stacked statements execute. This affects only MySQL/MariaDB and allows database read/write access and privilege escalation to administrator.

Risk Assessment

An unauthenticated attacker can read and modify application data, including setting the admin flag on an account or overwriting password hashes. This can lead to full compromise of the CMS.

Recommendation

Update to version 4.18.9 or 5.11.2. If immediate update is not possible, block front-end requests containing %5Battribute%5D or [attribute] anywhere in the query string.

Other vulnerabilities in Craft CMS

See all
Original NVD description (English source)

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.

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