CVE-2026-124283
Code execution and SQL injection via struct-wrapped values in a forged keyset pagination cursor in Ash
CVE-2026-124283 is an SQL injection in Ash-hq Ash Framework (CVSS 9.8, Critical).
No known exploitation. EPSS puts it in the 65th percentile. Fixed in 3.38.0.
No public exploit knownFix3.38.0Upgrade to this build
No ready-made check. Neither Nuclei nor OpenVAS has one for this CVE yet.
What to do
Find your product and version, then upgrade to the build on the right.
- Ash-project AshAffected: ≥ 3.31.3, < 3.38.0Upgrade to: 3.38.0Stated by: CVE record
- Ash-hq Ash FrameworkAffected: ≥ 3.31.3, < 3.38.0Upgrade to: 3.38.0Stated by: NVD
Versions as the sources state them. Full version matrix after sign-in
Steps
Written by AI from the record- Check whether your application uses Ash (the ash package) for data access with keyset pagination (page[:after] or page[:before] parameters).
- If you are on Ash version 3.31.3 through 3.37.x, you are affected and must act.
- Upgrade to Ash 3.38.0 or later, which fixes the flaw.
- If you cannot upgrade immediately, set the config :ash, keyset_signing_secret to a long random string on Ash 3.37.0+ so unsigned/forged cursors are rejected — note this invalidates any pagination links issued before the change.
- After upgrading, re-test pagination features to confirm cursors are validated correctly.
mix deps.update ash # ensure {:ash, ">= 3.38.0"} in mix.exsCoverage timeline
2 publishersExploitation reported in the wild
Sourced from public security reporting — each date is when it was published, not when it happened. 1 further article named this CVE in wider roundups without reporting it as a distinct event.
What it is
From the CVE record
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.
In plain language
Written by AI from the recordA flaw in the Ash framework lets an outside attacker tamper with a pagination “cursor” (the token used to move between pages of results) to run commands on your server or tamper with your database, with no login needed — if you use Ash, you should treat this as urgent and fix it now.
Unauthenticated remote code execution and SQL injection in Ash via Erlang-term deserialization of client-supplied keyset pagination cursors, where a crafted struct bypasses the expression check and reaches the data layer, triggering arbitrary code execution through Inspect/ecto/db_connection chains or raw SQL injection via embedded fragment expressions.
If you're affected
- Full server takeover
- Database tampering or theft
- Customer data exposure
- Operational disruption
- Backend command execution
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
No public exploit or proof of concept found in the sources we track.
- EPSS
1.1% chance of exploitation activity in the next 30 days, which ranks it in the 65th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
- Attention now
Sustained, driven by in-the-wild reports.
Lifecycle
10 events over 6 days, from the signal feeds we watch.
- Patch availableworkaround available, record updated
- Workaround availableworkaround available, published, weakness classified, att&ck mapped, record updated, record updated
Affected products
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored 9.8 by NVD.
How it is reached
- Attack Vector NetworkExploitable remotely over the network without any special conditions
- Attack Complexity LowNo special conditions — the attack can be reliably reproduced
- Privileges Required NoneNo authentication required — anyone can exploit this
- User Interaction NoneNo user interaction needed — fully automated exploitation
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity HighTotal loss of integrity — attacker can modify any data in the component
- Availability HighTotal denial of service — the component is completely unavailable
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
Sources
References in the record
- cna.erlef.org/cves/CVE-2026-124283.html
- cna.erlef.org/cves/CVE-2026-67579.html
- github.com/ash-project/ash/commit/8da3fe514975ac93682f8377c5439baefaf50bad
And 3 more references. See all after sign-in
In the news
Questions about CVE-2026-124283
- Is CVE-2026-124283 being exploited?
- No exploitation is confirmed and no public exploit is known. EPSS puts the chance of exploitation in the next 30 days at 1.1%.
- Which versions are affected by CVE-2026-124283?
- Ash Framework: ≥ 3.31.3, < 3.38.0. Ash: ≥ 3.31.3, < 3.38.0.
- How do I fix or mitigate CVE-2026-124283?
- Upgrade to 3.38.0 or later. The advisory is on github.com.
Last updated
Related articles
All articlesWatch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Ash Framework, not every advisory.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI