Craft CMS 4.0.0 before 4.18.9 SQL Injection via Element Search Endpoint
- State
- Published
- Severity
- 9.3 Critical
- Published
- Nov 6, 2026
- Updated
- Nov 9, 2026
- Reserved
- Nov 6, 2026
Description
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.
| Product | Versions |
|---|---|
| cms craftcms | 4.0.0 to before 4.18.9 Affected4.18.9 Not Affected |
| cms craftcms | 5.0.0 to before 5.11.2 Affected5.11.2 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 9.3 Critical | VulnCheck | |
| 3.1 | 9.8 Critical | VulnCheck |
Weaknesses
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
- GitHub Security Advisory (GHSA-qcvp-ggx3-97r6)Vendor Advisory
- VulnCheck Advisory: Craft CMS 4.0.0 before 4.18.9 SQL Injection via Element Search EndpointThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.