Code execution and SQL injection via forged Ash keyset cursor
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Code execution, SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-502 and CWE-89.
Summary
The ash-project ash package from 3.31.3 before 3.38.0 is affected. Ash decodes the client-supplied keyset pagination cursor from Erlang external term format, and its check on decoded expressions does not examine struct fields, so attacker-supplied structs reach the data layer (CWE-502). An unauthenticated attacker who sends a forged cursor can execute arbitrary code or inject SQL, as with AshPostgres. A public exploit is linked in the references.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ash-project | ash | 3.31.3 to before 3.38.0 | 3.38.0 | Patch available | CNA |
- ash Vendorash-project Affected 3.31.3 to before 3.38.0 Fixed in 3.38.0 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ash-hq:ash_framework:*:*:*:*:*:*:*:* | 3.31.3 to before 3.38.0 | Vulnerable | ash-project |
- cpe:2.3:a:ash-hq:ash_framework:*:*:*:*:*:*:*:* Versions 3.31.3 to before 3.38.0 Vulnerable ·ash-project
Remediation
Update ash to version 3.38.0.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA ash (ash-project) Fixed in 3.38.0
Timeline
- 2026-11-24 Threatist record created from CVE-2026-124283
- 2026-11-24 CISA SSVC decision points changed
- 2026-11-25 EPSS moved to the 50th–90th percentile
- 2026-11-30 CVSS score added · NVD
References
More ash-project Ash Framework vulnerabilities
- TI-2026-26840 Ash Framework: Ash.Type.Module.cast_input/2 atom exhaustion via unchecked Module.concat allows BEAM VM crash CVSS 4.0HIGH 8.2
- TI-2026-47745 Filter expression injection via forged keyset pagination cursor in Ash CVSS 4.0HIGH 7.5
- TI-2026-48952 Memory exhaustion via unbounded deserialization of keyset pagination cursors in Ash.Page.Keyset CVSS 4.0MEDIUM 5.9
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences