7.5high
Filter expression injection via forged keyset pagination cursor in Ash
- Severity
- 7.5high CVSS:4.0 by EEF
- Exploit likelihood
- 0.63% (higher than 51% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- EEF
- Also known as
- EEF-CVE-2026-67579GHSA-3gq3-9xm3-c8v3
Description
Deserialization of Untrusted Data vulnerability in ash-project ash allows an unauthenticated attacker to inject a filter expression through a forged keyset pagination cursor, resulting in SQL injection or code execution depending on the data layer. Read actions with keyset pagination decode the client-supplied page[:after] or page[:before] cursor in decode_values/2 in lib/ash/page/keyset.ex using non_executable_binary_to_term/2 with [:safe]. That guard blocks new atoms, funs, and ports, but not a struct built from atoms already interned in a running Ash application, so a decoded %Ash.Query.Call{} expression survives and is spliced into the keyset filter as a comparison value in do_filters/4 and evaluated. Because the cursor bypasses the Ash.Expr macro, the runtime never applies the private?/public? gate that would otherwise reject it. On AshPostgres the injected fragment is inlined into the SQL query; on the ETS and Simple data layers it is evaluated in-process as an arbitrary function call. This issue affects ash: from 1.17.0 before 3.31.3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ash | from 1.17.0 before 3.31.3 | CVE List |
| ash-project/ash | from f8fadc67e67c955bb68b3a8d642be13e2b7e8ca9 before 91874dd5435bc0ffebd8a254acfa573b39b74520 | CVE List |
| ash (Hex) | from 1.17.0 before 3.31.3 | Erlang Ecosystem Foundation |
| https://github.com/ash-project/ash | from f8fadc67e67c955bb68b3a8d642be13e2b7e8ca9 before 91874dd5435bc0ffebd8a254acfa573b39b74520 | Erlang Ecosystem Foundation |
| ash-hq ash_framework | from 1.17.0 before 3.31.3 | NVD |
All scores
| EEF | 7.5high CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Erlang Ecosystem Foundation | Not scored CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 7.4high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
Deserialization of Untrusted Data vulnerability in ash-project ash allows an unauthenticated attacker to inject a filter expression through a forged keyset pagination cursor, resulting in SQL injection or code execution depending on the data layer. Read actions with keyset pagination decode the client-supplied page[:after] or page[:before] cursor in decode_values/2 in lib/ash/page/keyset.ex using non_executable_binary_to_term/2 with [:safe]. That guard blocks new atoms, funs, and ports, but not a struct built from atoms already interned in a running Ash application, so a decoded %Ash.Query.Call{} expression survives and is spliced into the keyset filter as a comparison value in do_filters/4 and evaluated. Because the cursor bypasses the Ash.Expr macro, the runtime never applies the private?/public? gate that would otherwise reject it. On AshPostgres the injected fragment is inlined into the SQL query; on the ETS and Simple data layers it is evaluated in-process as an arbitrary function call. This issue affects ash: from 1.17.0 before 3.31.3.
Erlang Ecosystem Foundation
Summary
Deserialization of Untrusted Data vulnerability in ash-project ash allows an unauthenticated attacker to inject a filter expression through a forged keyset pagination cursor, resulting in SQL injection or code execution depending on the data layer.
Read actions with keyset pagination decode the client-supplied page[:after] or page[:before] cursor in decode_values/2 in lib/ash/page/keyset.ex using non_executable_binary_to_term/2 with [:safe]. That guard blocks new atoms, funs, and ports, but not a struct built from atoms already interned in a running Ash application, so a decoded %Ash.Query.Call{} expression survives and is spliced into the keyset filter as a comparison value in do_filters/4 and evaluated. Because the cursor bypasses the Ash.Expr macro, the runtime never applies the private?/public? gate that would otherwise reject it. On AshPostgres the injected fragment is inlined into the SQL query; on the ETS and Simple data layers it is evaluated in-process as an arbitrary function call.
This issue affects ash: from 1.17.0 before 3.31.3.
Configurations
A read action must declare keyset? true in its pagination block, and the application must pass a client-supplied value as the :after or :before page option. The severity of a successful attack depends on the data layer: AshPostgres yields SQL injection, while the ETS and Simple data layers evaluate the injected expression in-process.
NVD (es)
Vulnerabilidad de deserialización de datos no confiables en ash-project ash permite a un atacante no autenticado inyectar una expresión de filtro a través de un cursor de paginación de conjunto de claves falsificado, resultando en inyección SQL o ejecución de código dependiendo de la capa de datos. Las acciones de lectura con paginación de conjunto de claves decodifican el cursor page[:after] o page[:before] suministrado por el cliente en decode_values/2 en lib/ash/page/keyset.ex usando non_executable_binary_to_term/2 con [:safe]. Esa protección bloquea nuevos átomos, funciones y puertos, pero no una estructura construida a partir de átomos ya internados en una aplicación Ash en ejecución, por lo que una expresión %Ash.Query.Call{} decodificada sobrevive y se inserta en el filtro del conjunto de claves como un valor de comparación en do_filters/4 y se evalúa. Debido a que el cursor omite la macro Ash.Expr, el tiempo de ejecución nunca aplica la puerta private?/public? que de otro modo lo rechazaría. En AshPostgres, el fragmento inyectado se inserta en la consulta SQL; en las capas de datos ETS y Simple se evalúa en el proceso como una llamada a función arbitraria. Este problema afecta a ash: desde 1.17.0 antes de 3.31.3.
References
| https://github.com/ash-project/ash/security/advisories/GHSA-3gq3-9xm3-c8v3 | advisory, exploit, patch, related, vendor-advisory | |
| https://cna.erlef.org/cves/CVE-2026-67579.html | patch, related, third-party-advisory, web | |
| https://osv.dev/vulnerability/EEF-CVE-2026-67579 | patch, related, third-party-advisory | |
| https://github.com/ash-project/ash/commit/f8fadc67e67c955bb68b3a8d642be13e2b7e8ca9 | related, web | |
| https://github.com/ash-project/ash/commit/91874dd5435bc0ffebd8a254acfa573b39b74520 | fix, patch | |
| https://hex.pm/packages/ash | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-67579 changed 2026-11-19 | CVE Terms of Use |
| Erlang Ecosystem Foundation | EEF-CVE-2026-67579 changed 2026-11-25 | CC-BY-4.0 |
| NVD | CVE-2026-67579 changed 2026-11-19 | Public domain |