CVE-2026-124283
Code execution and SQL injection via struct-wrapped values in a forged keyset pagination cursor in Ash
Check your servers for CVE-2026-124283
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-124283 affects ash, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop beyond it
Exploitation
EPSS 4.94%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 92.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 24 Nov 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
- CWE-502 Deserialization of Untrusted Data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
ash
package
ash |
affected from 3.31.3, before 3.38.0
Other versions: unaffected
|
|
ash
package
ash-project/ash |
affected from 91874dd5435bc0ffebd8a254acfa573b39b74520, before 8da3fe514975ac93682f8377c5439baefaf50bad
Other versions: unaffected
|
Is my server affected?
Find the installed version of ash and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i ash
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-124283 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-124283RHEL, Rocky, Alma, Fedora
rpm -q ash
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-124283Alpine
apk list --installed | grep -i ashWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-124283
trivy image --scanners vuln IMAGE | grep CVE-2026-124283
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- Fix commit 8da3fe5 in ash-project/ash github.com · patch
Exploits and proof of concept
- Code execution and SQL injection via struct-wrapped values in a forged keyset pagination cursor in Ash github.com · vendor advisory, related, exploit
Other references
- EEF CNA record for CVE-2026-124283 cna.erlef.org · related
- OSV record EEF-CVE-2026-124283 osv.dev · related
- CVE-2026-67579 cna.erlef.org · related
- Introducing commit 91874dd in ash-project/ash github.com · related
Source: the record CVE-2026-124283 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse