# CVE-2026-124283: Code execution and SQL injection via struct-wrapped values in a forged keyset pagination cursor in Ash

Status: published. Published: 2026-11-24. Updated: 2026-11-24.

Deserialization of Untrusted Data vulnerability in ash-project ash allows an unauthenticated attacker to execute arbitrary code or inject SQL through a forged keyset pagination cursor.

Ash.Page.Keyset.filter/4 in lib/ash/page/keyset.ex decodes the client-supplied page[:after] or page[:before] cursor from Erlang external term format and rejects decoded expressions with Ash.Expr.expr?/1. That check does not examine the fields of a struct. The cast of each value against the type of its sort field accepts structs for the :ci_string, :map, :struct and :term types. A struct in the cursor value for such a sort field therefore reaches the data layer. With AshPostgres, the read passes such a struct to inspect/1, which runs the Inspect implementation of the struct module that the attacker selected. A chain of struct modules from ecto and db_connection then calls a function that the cursor names, which permits OS command execution. An %Ash.Query.Function.Fragment{} inside an %Ash.CiString{} value is written into the SQL query as raw text.

This issue affects ash: from 3.31.3 before 3.38.0.

## Remediation

- workaround: On ash 3.37.0 or later, set config :ash, keyset_signing_secret to a long random string. Ash then rejects each cursor that it did not sign, before it decodes the cursor. Cursors issued before the change become invalid. (source: CNA: EEF)
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/ash-project/ash/commit/8da3fe514975ac93682f8377c5439baefaf50bad

## Affected products and versions

- ash-project / ash (ash): ≥ 3.31.3; < 3.38.0 (affected, semver). Source: CNA: EEF
- ash-project / ash (ash-project/ash): ≥ 91874dd5435bc0ffebd8a254acfa573b39b74520; < 8da3fe514975ac93682f8377c5439baefaf50bad (affected, git). Source: CNA: EEF

## Severity and prioritization

- CVSS 4.0: 8.9 (high); CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H; source: CNA: EEF

- CVSS 4.0: 8.9 (high); CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X; source: NVD: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-89, CWE-502

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/ash-project/ash/security/advisories/GHSA-m5v6-3qwf-6w9r (CNA: EEF; vendor-advisory, related)

- https://cna.erlef.org/cves/CVE-2026-124283.html (CNA: EEF; related)

- https://osv.dev/vulnerability/EEF-CVE-2026-124283 (CNA: EEF; related)

- https://cna.erlef.org/cves/CVE-2026-67579.html (CNA: EEF; related)

- https://github.com/ash-project/ash/commit/91874dd5435bc0ffebd8a254acfa573b39b74520 (CNA: EEF; related)

- https://github.com/ash-project/ash/commit/8da3fe514975ac93682f8377c5439baefaf50bad (CNA: EEF; patch)

- https://cna.erlef.org/cves/CVE-2026-124283.html (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)

- https://cna.erlef.org/cves/CVE-2026-67579.html (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)

- https://github.com/ash-project/ash/commit/8da3fe514975ac93682f8377c5439baefaf50bad (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)

- https://github.com/ash-project/ash/commit/91874dd5435bc0ffebd8a254acfa573b39b74520 (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)

- https://github.com/ash-project/ash/security/advisories/GHSA-m5v6-3qwf-6w9r (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)

- https://osv.dev/vulnerability/EEF-CVE-2026-124283 (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)

## Provenance

- CNA: EEF: https://www.cve.org/CVERecord?id=CVE-2026-124283; retrieved 2026-11-24; source updated 2026-11-24

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-124283; retrieved 2026-11-24; source updated 2026-11-24

Revision: 1ad674fca88fbaa9b73556b7dffcb8820971a639d2910d2bb93ad296954929d5

Canonical: https://y2.dev/cve/CVE-2026-124283

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.