Description
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.
CVSS scores
| Version | Scored by | Score | Vector |
|---|---|---|---|
| CVSS 4.0 | EEF (CNA) | 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 |
| CVSS 4.0 | CNA | 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 |
Timeline
- CVE published
- Last updated by the CVE authority
- First tracked by SecureCyberVM
Exploit likelihood (EPSS)
Am I affected?
- Do you run ash-project ash? Check the exact versions in the affected products list.
- Is the affected service reachable from the internet or by untrusted users? Exposed systems come first.
- Watch this page: if exploitation is reported it moves to the top of your list.
- Apply the fix below, or the workaround if you cannot patch yet, then confirm the new version is running.
Affected products
- ash-project ash: from 3.31.3 before 3.38.0 · All ash-project vulnerabilities
- ash-project ash: from 91874dd5435bc0ffebd8a254acfa573b39b74520 before 8da3fe514975ac93682f8377c5439baefaf50bad · All ash-project vulnerabilities
Fix
- Code execution and SQL injection via struct-wrapped values in a forged keyset pagination cursor in Ash (vendor-advisory, related)
- Fix commit 8da3fe5 in ash-project/ash (patch)
Mitigations
- 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.
Weakness
CWE-89 Improper Neutralization of Special Elements used in an SQL Command · CWE-502 Deserialization of Untrusted Data
Coverage of CVE-2026-124283
Frequently asked questions
Is CVE-2026-124283 being actively exploited?
There are no confirmed reports of exploitation in the wild: CVE-2026-124283 is not in CISA's Known Exploited Vulnerabilities catalog. EPSS estimates a 1.09% probability of exploitation in the next 30 days. This page is re-checked daily.
How severe is CVE-2026-124283?
CVE-2026-124283 has a highest CVSS score of 8.9 (High) under CVSS 4.0. Severity alone is not priority: check exploitation status and whether you run an affected version.
How do I fix CVE-2026-124283?
Apply the vendor's security update as soon as it is available and follow the official advisory linked in the references on this page. Restrict exposure of the affected service until it is patched.
Which products are affected by CVE-2026-124283?
ash-project ash. See the affected products list on this page for exact versions.
References
- Code execution and SQL injection via struct-wrapped values in a forged keyset pagination cursor in Ash
- EEF CNA record for CVE-2026-124283
- OSV record EEF-CVE-2026-124283
- CVE-2026-67579
- Introducing commit 91874dd in ash-project/ash
- Fix commit 8da3fe5 in ash-project/ash
Change log
- First recorded on SecureCyberVM from CVE.org, NVD, CISA KEV and FIRST EPSS.
Sources: CVE.org, NIST NVD, CISA KEV and ADP, FIRST EPSS. This record is refreshed automatically every day; changes are listed in the change log above.
