Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted search request to front end
-
DeliveryInject stacked SQL via attribute parameter
-
ExploitExecute write primitive on users table
-
ExecutionSet admin flag on user ID 1
-
ImpactLog in as administrator
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires that the target Craft CMS site exposes a front-end template using craft.search for searching AND runs on a MySQL/MariaDB database - the stacked-statement write primitive depends on PDO emulated prepares, which is the behavior on these backends; PostgreSQL deployments are explicitly NOT affected. Given AV:N/AC:L/PR:N/UI:N, no authentication, special privileges or user interaction is needed against such a configuration, and it works against default setups that use craft.search. The primary limiting factors are therefore the database engine (MySQL/MariaDB only) and the presence of a craft.search-backed search feature; the temporary mitigation is blocking front-end requests containing %5Battribute%5D or [attribute] anywhere in the query string. |
| Impact | All available signals align toward high real-world risk. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a network-reachable, low-complexity attack requiring no privileges and no user interaction, with high confidentiality, integrity and availability impact to the vulnerable system (VC:H/VI:H/VA:H), scored 9.3. The vuln.today decision label is act_now, and the CVSS 4.0 exploit-maturity field is set to E:A (Attacked). The GHSA advisory and detailed impact write-up confirm a working exploitation technique - unsanitized concatenation of the attribute parameter plus PDO emulated prepares allowing stacked statements, used to set the admin flag on user ID 1 and read the value back. One genuine limiting factor: the vendor states the flaw only affects MySQL/MariaDB, so PostgreSQL deployments are not exploitable via this path - this narrows the population but MySQL/MariaDB is a very common Craft backend. No EPSS score is provided in the input, and there is no CISA KEV listing in the data, so active mass exploitation is not independently confirmed despite the E:A maturity flag; the act_now label and E:A should be weighed against the absence of KEV/EPSS corroboration. On balance this is a genuine priority - an unauthenticated SQLi-to-admin on a shipping CMS - not a high-CVSS-but-low-real-risk case. |
| Exploit ScenarioDerived | A remote, unauthenticated attacker sends a crafted front-end search request to any Craft site using craft.search on a MySQL/MariaDB backend, injecting a stacked SQL statement through the unsanitized attribute parameter. Because PDO runs with emulated prepares, the appended statement executes, letting the attacker set the admin flag on user ID 1 (or overwrite any account's password hash) and take over the application. A public PoC reference exists (the Hackrate hacktivity report and GHSA advisory describe the exact primitive); it is not verified here as distributable working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
Craft CMS exposes an unauthenticated SQL injection through front-end search templates that use craft.search, letting remote attackers append stacked SQL statements to the underlying attribute parameter and gain full read/write access to the application database. Because Craft's permission checks short-circuit on the admin column in the users table, the same write primitive escalates to administrator (confirmed by flipping the admin flag on user ID 1) and can overwrite any account's password hash. The flaw affects 4.x before 4.18.9 and 5.x before 5.11.2, is limited to MySQL/MariaDB backends (PDO emulated prepares allow stacked statement execution), and carries an act_now decision label with high EPSS-level urgency in the 9.3 CVSS 4.0 scoring; PostgreSQL deployments are not affected.
RemediationAI
Vendor-released patch: upgrade to Craft CMS 4.18.9 or 5.11.2 (https://github.com/craftcms/cms/security/advisories/GHSA-qcvp-ggx3-97r6, https://github.com/craftcms/cms/releases/tag/5.11.2); this is the only complete fix per the advisory. If immediate updating is not possible, apply the vendor's stated temporary mitigation by blocking front-end requests whose query string contains %5Battribute%5D or [attribute] anywhere in it, which prevents the injection parameter from reaching craft.search - this is a stopgap that must be replaced by the upgrade, and it does not protect other code paths if an attacker can reach the vulnerable parameter through a different encoding or request format. Sites on PostgreSQL are not exposed to this specific issue, but should still update to stay on supported versions.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-89 (SQL injection) in the craft.search front-end search path: the search attribute parameter is concatenated into the SQL query without sanitization rather than being bound as a parameter. On MySQL/MariaDB, Craft's PDO connection runs with emulated prepares enabled, so multi-statement ('stacked') payloads are accepted and executed by the driver, turning a read-only injection into an arbitrary INSERT/UPDATE/DELETE primitive over the application schema. The advisory documents a concrete exploitation chain: an UPDATE against the users table to set the admin flag on user ID 1, which bypasses Craft's authorization checks because the framework short-circuits permission evaluation on that single column; the same primitive can replace any user's password hash. The vulnerability requires a site template that invokes craft.search to perform a search, and it is database-engine specific - PostgreSQL deployments are explicitly unaffected because they do not exhibit the same stacked-statement behavior under emulated prepares. The affected package ranges are composer/craftcms/cms >= 4.0.0 < 4.18.9 and >= 5.0.0 < 5.11.2, matching CPE cpe:2.3:a:craftcms:cms. The release notes for 5.11.2 bundle this fix alongside a separate SQL injection (GHSA-mjj9-pjh4-r48g) and permission-escalation fixes (GHSA-r56r-f696-c8w9). The trigger is precisely described in the advisory: unsanitized concatenation of the attribute parameter into the search query.
Know when Cms gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A
Unauthenticated network stacked SQLi against default MySQL/MariaDB configs gives full DB read/write and admin takeover, so PR:N/AC:L with C/I/A all High; scope unchanged within the application.
Primary rating from Vendor (Hackrate).
CVSS VectorVendor: Hackrate
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-89: SQL injection in Craft CMS front-end search via craft.search.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Craft CMS contains a critical SQL injection vulnerability (CVE-2026-115934) that allows unauthenticated attackers to fully compromise the application database and escalate to administrator, impacting all organizations using affected versions (4.x before 4.18.9 and 5.x before 5.11.2) on MySQL/MariaDB. Leadership should prioritize immediate remediation because exploitation enables complete takeover of content management systems, data theft, and potential lateral movement.
No vendor-released patch identified at time of analysis. Interim mitigations include deploying WAF rules to block SQL injection attempts in search parameters, restricting front-end search access, enforcing strict input validation on the attribute parameter, and monitoring database activity for stacked queries. Consider migrating to PostgreSQL, which is not affected.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Cayin CMS suffers from an authenticated OS semi-blind command injection vulnerability using default credentials. Rated c
Multiple integer underflows in the icmLut_allocate function in International Color Consortium (ICC) Format library (iccl
phpKF CMS 3.00 Beta allows unauthenticated PHP file upload by disguising it as a PNG, then renaming it for execution. Po
Deserialization of Untrusted Data in the Sitecore.Security.AntiCSRF (aka anti CSRF) module in Sitecore CMS 7.0 to 7.2 an
Unauthenticated SQL injection in Craft CMS 4.0.0 before 4.18.9 and 5.0.0 before 5.11.2 allows remote attackers to read a
Deserialization of Untrusted Data in the anti CSRF module in Sitecore through 9.1 allows an authenticated attacker to ex
Unauthenticated file disclosure in LavaLite CMS through 10.1.2 allows remote attackers to download private stored files
Authenticated remote code execution in Craft CMS versions 5.5.0 through 5.9.13 allows admin users to execute arbitrary P
SQL injection vulnerability in hava_post.php in Havalite CMS 1.1.0 and earlier allows remote attackers to execute arbitr
Unrestricted file upload vulnerability in hava_upload.php in Havalite CMS 1.1.0 and earlier allows remote attackers to e
Cross-site request forgery (CSRF) vulnerability in Ilch CMS allows remote attackers to hijack the authentication of admi
Multiple cross-site scripting (XSS) vulnerabilities in Havalite 1.0.4 and earlier allow remote attackers to inject arbit
EUVD-2026-120517
GHSA-grcw-mp3h-6wqj
NVD
CVE.org
EPSS
Exploit-DB