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

Read the record on cve.org

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.

ProductVersions
cms craftcms4.0.0 to before 4.18.9 Affected4.18.9 Not Affected
cms craftcms5.0.0 to before 5.11.2 Affected5.11.2 Not Affected

Weaknesses

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

References

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.