CVE-2026-124283

CriticalCVSS 9.8/10Last modified Nov 30, 2026

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.

Metrics

CVSS 3.1 9.8/10CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness enumeration

Affected software

VendorProductVersions
ash-projectash>= 3.31.3, < 3.38.0
ash-projectash>= 91874dd5435bc0ffebd8a254acfa573b39b74520, < 8da3fe514975ac93682f8377c5439baefaf50bad

References

Timeline

Published
Nov 24, 2026
Last modified
Nov 30, 2026
NVD status
Analyzed

Related CVEs from 2026

CVE-2026-1242849.8A critical security vulnerability affects certain authentication methods in Genetec Security Center, including external identity providers uCVE-2026-1242869.1Improper Verification of Cryptographic Signature vulnerability in Erlang OTP ssl (ssl_handshake module) allows an on-path attacker to impersCVE-2026-1242897.5@fastify/multipart is the official Fastify plugin for handling multipart/form-data uploads. In versions 7.4.0 through 10.1.8, when the plugiCVE-2026-1242905.9Net::Server versions through 2.018 for Perl allow CPU exhaustion via a read_until loop that keeps reading after the client disconnects. reaCVE-2026-1242914.3Net::Server::Proto::SSL versions through 2.018 for Perl allow clients to hold server processes indefinitely via a TLS handshake that has no CVE-2026-1242927.8Net::Server versions through 2.018 for Perl allow the run-as account to take ownership of any file via a symlink at the log or pid file pathCVE-2026-1242936.5Net::Server::Thread versions through 2.018 for Perl start a handler thread for every connection regardless of max_servers and exit when threCVE-2026-1242949.8Net::Server versions through 2.018 for Perl admit unlisted clients when an allow rule contains top-level alternation, as allow_deny anchors CVE-2026-1242957.5Net::Server::PSGI versions through 2.018 for Perl allow one malformed request to kill a worker or stop a single-process server, as process_rCVE-2026-1242969.1Net::Server::HTTP versions through 2.018 for Perl allow a single request to abort a worker with out-of-memory via the client's Content-LengtCVE-2026-1242977.5Net::Server::Proto::SSLEAY versions through 2.018 for Perl skip client certificate verification by silently ignoring the verify mode, CA andCVE-2026-1242988.8Net::Server versions through 2.018 for Perl keep root's group privileges after the privilege drop when user is set without group. When grou
CVE-2026-124283: Critical severity, CVSS 9.8 | Vulnix