CVE-2026-124283: Code execution and SQL injection via struct-wrapped values in a forged keyset pagination cursor in Ash
ash-project · ash
Fixed in 3.38.0 · Affected: ash-project before 3.38.0 · Exploitation: not established
Verdict
RoutineA fix exists and nothing on record suggests attackers are using it.
- NoAttacks seen
- NoPublic exploit code
- 0.6%Chance of exploitation in 30 days, higher than 49% of scored CVEs
- YesFix available: Fixed in 3.38.0
How we decide
Patch now: attacks are on record (CISA KEV, the EU exploited list, CISA marking exploitation active, or a report of exploitation), or exploit code is public for a flaw reachable over the network with no login that has exploit odds of 10% or more, or is rated critical with odds of at least 1%. Patch this cycle: any other public exploit code, scanning observed, or exploit odds of 10% or more. Routine: a fix exists and none of those. No verdict yet: no fix on record and nothing else known. The verdict says how soon to act, not how severe the flaw is, and it changes when these facts change.
What it isNVD
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.
Are you affected?
The answer appears here.
Or hand it to your AI agent. The prompt carries the facts on this page and only commands that read package and kernel state; it tells the agent to change nothing.
Higher than 49% of scored CVEs
Not scored yet. NVD has not published a CVSS score.
Check your systemsRead-only commands per release
Assess your exposure
Commands that only read package and kernel state, for each release we checked. They change nothing on the host.
Affected versions, per the CVE record
- The CNA record lists ash versions from 3.31.3 up to, but not including, 3.38.0 as affectedchecked 24 Nov 16:02 UTC
Not checked: Red Hat, Ubuntu, Debian, SUSE, Alpine. Treat distributions and products not listed as unknown, not unaffected.
ExploitationNot established
ExploitationNot established
Not in CISA KEV as of catalogue 2026.11.23 (23 Nov)
- Not establishedNothing in the sources we check
Not seen so far: in CISA KEV · exploited (reported) · scanning observed · proof of concept public.
Weakness and public checksSQL Injection
Weakness and public checks
- Public check
- No public nuclei template
- Weakness
- SQL Injection
Related CVEsash
Other CVEs in ash
Every published CVE for ash-project ash, by how far exploitation has gone. This one is among them.
What changed1 change, latest 24 Nov
What changed
- CyberSIXT published “Hex.pm hacked through CVE-2026-129514 deserialization flaw” CyberSIXT
Coverage1 article · 1 outlet
Coverage1 article · 1 outlet
First in our coverage: cybersixt, 24 Nov.
- Hex.pm hacked through CVE-2026-129514 deserialization flawcybersixt · first in our coverage · mentions it in passing
New articles also arrive in the RSS feed.