Craft CMS 4.0.0 before 4.18.9 SQL Injection via Element Search Endpoint
3 public exploits exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in 4.18.9 and 5.11.2.
Craft CMS 4.0.0 before 4.18.9 and 5.0.0 before 5.11.2 contains an unauthenticated SQL injection vulnerability in the element search endpoint because the attribute parameter is concatenated into the query unsanitized and emulated PDO prepares allow stacked statements. Remote attackers can read and write the database, setting the admin flag or overwriting password hashes in the users table to gain administrator access.
Briefing
Written from the sources below · deepseek-v4.1-flash
Craft CMS 4.0.0 before 4.18.9 and 5.0.0 before 5.11.2 has an unauthenticated SQL injection in the element search endpoint, where the attribute parameter is concatenated unsanitized and emulated PDO prepares allow stacked statements. Attackers can read and write the database, including users-table changes granting administrator access.
Why it mattersPublic nuclei exploit material exists and the flaw is unauthenticated, so any exposed affected Craft CMS instance is at immediate risk of admin takeover.
ActionUpgrade Craft CMS to 4.18.9 or later (5.11.2 for 5.x); if unable, block or restrict access to the element search endpoint.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| craftcms | >=4.0.0 <4.18.9, >=5.0.0 <5.11.2 | 4.18.9, 5.11.2 |
Exploit evidence
3 public sources
Coverage
News and research mentioning this CVE
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket