Skip to main content

Ash Framework CVE-2026-67579

| EUVDEUVD-2026-57544 HIGH
SQL Injection (CWE-89)
2026-08-12 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
7.5
CVSS 4.0 · Vendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed keyset pagination endpoint
  2. Delivery
    Craft and serialize forged %Ash.Query.Call{} struct
  3. Exploit
    Base64-encode, submit as page[after] cursor
  4. Execution
    [:safe] guard accepts pre-interned atom struct
  5. Persist
    Expression spliced into filter, bypasses auth gate
  6. Impact
    SQL injection or in-process code execution

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The targeted application must run ash versions 1.17.0 through 3.31.2 AND expose at least one read action configured with keyset pagination (page type: :keyset accepting page[after] or page[before] query parameters) - offset-paginated and non-paginated endpoints are entirely unaffected. The cursor is processed before any Ash authorization check, so no authentication or session credential is required; any HTTP caller who can reach the paginated endpoint is a potential attacker. Impact diverges by data layer: AshPostgres deployments face SQL injection into the Ecto-generated query; Ash.DataLayer.Ets and Ash.DataLayer.Simple deployments face in-process arbitrary function evaluation. Exploitation requires producing a valid BEAM external term binary for %Ash.Query.Call{}, which is trivially accomplished from any Elixir or Erlang runtime using :erlang.term_to_binary/1.

Impact

The CNA-assigned CVSS 4.0 vector specifies AV:L (Local), which is inconsistent with the actual attack path - the pagination cursor arrives as a URL query parameter (page[after] or page[before]) accessible over the network to any HTTP caller, with no local access requirement. This AV:L assignment appears erroneous and should be verified with the Erlef Foundation CNA at the advisory URL. The AT:P modifier correctly captures that keyset pagination must be actively configured and exposed, limiting the attack surface to endpoints where this feature is in use. No EPSS data was provided, precluding probabilistic exploitation likelihood assessment. The vulnerability is not listed in CISA KEV, and no standalone exploit tooling is known. However, the fix commit's regression test explicitly demonstrates forged cursor construction using :erlang.term_to_binary/1 and Base.encode64/1 - any Elixir or Erlang developer can reproduce this within minutes of reading the commit diff. The combination of unauthenticated network access, dual high-impact paths (SQL injection and RCE), and publicly documented exploitation technique makes this a genuine priority for any Ash application with keyset pagination exposed externally, despite the absence of KEV confirmation.

Exploit ScenarioDerived

An attacker identifies an Ash-backed Phoenix API endpoint that exposes keyset pagination, then constructs a forged cursor by evaluating :erlang.term_to_binary(%Ash.Query.Call{name: :fragment, args: ["injected payload"], relationship_path: []}) and base64-encoding the result in any Elixir or Erlang shell. Submitting this value as page[after] causes the AshPostgres data layer to inline the fragment into the generated SQL query, enabling data exfiltration or schema manipulation; against an ETS or Simple data layer, the Call struct is evaluated in-process, executing the attacker's payload within the application runtime.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 12, 2026

Unauthenticated SQL injection and remote code execution in Ash Framework (ash-project/ash) are achievable by any caller who can reach a keyset-paginated endpoint: the cursor deserializer accepts pre-interned Ash expression structs that bypass query filter guards, yielding SQL injection on AshPostgres deployments or in-process arbitrary code execution on ETS and Simple data layers. All ash versions 1.17.0 through 3.31.2 are exposed across both impact paths. No independently released exploit tooling is known at time of analysis, but the upstream fix commit contains a working proof-of-concept that reproduces the exact forged cursor technique, substantially shortening the path from disclosure to weaponization.

RemediationAI

Upgrade to Ash version 3.31.3 or later, which resolves the issue by adding expression-type validation after deserialization in lib/ash/page/keyset.ex (commit 91874dd5435bc0ffebd8a254acfa573b39b74520; full advisory at https://github.com/ash-project/ash/security/advisories/GHSA-3gq3-9xm3-c8v3). If an immediate upgrade is not feasible, the most effective compensating control is to disable all read actions that expose keyset pagination - remove page type: :keyset configurations or add a plug/middleware that strips page[after] and page[before] parameters before they reach Ash - and replace them with offset-based pagination where possible; this eliminates the vulnerable decode_values/2 path entirely but changes client-facing pagination semantics and may break existing API consumers. A secondary control is to add an input validation plug that rejects any page[after] or page[before] value whose base64-decoded content begins with the Erlang external term format tag byte (<<131, ...>>), blocking binary term payloads at the HTTP layer; this is more brittle and should not substitute for patching, as encoding variations could bypass it.

Affected VersionsENISA

ash 1.17.0 <3.31.3
ash f8fadc67e67c955bb68b3a8d642be13e2b7e8ca9 <91874dd5435bc0ffebd8a254acfa573b39b74520

Affected Packages

euvd ash fix: 3.31.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Ash Framework is an Elixir declarative resource and data layer abstraction used with AshPostgres, Ash.DataLayer.Ets, and Ash.DataLayer.Simple. The vulnerable code resides in decode_values/2 within lib/ash/page/keyset.ex, which decodes client-supplied keyset pagination cursors using Erlang's non_executable_binary_to_term/2 with the [:safe] option. The [:safe] flag prevents deserialization of new atoms, anonymous functions, and ports, but does not block reconstruction of structs whose atom keys are already present in the BEAM VM's atom table at runtime. Because Ash loads its own expression struct modules (including %Ash.Query.Call{}) at startup, those atoms are already interned, and a term_to_binary-serialized %Ash.Query.Call{} survives the [:safe] guard intact. The reconstructed struct is then passed to do_filters/4, which splices it into the keyset comparison filter as a value - a code path that never invokes the Ash.Expr macro's private?/public? access gate. On AshPostgres, the injected fragment is inlined directly into the Ecto SQL query (CWE-89 SQL Injection); on ETS and Simple layers, the expression is evaluated in-process as an arbitrary function call (CWE-502 Deserialization of Untrusted Data). The patch adds check_no_expression/1, which calls Ash.Expr.expr?/1 on the decoded term and returns {:error, %Ash.Error.Page.InvalidKeyset{}} for any expression-containing cursor.

Know when Ash Framework gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db) PRIMARY 7.5 HIGH
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
vuln.today AI 10.0 CRITICAL

Cursor is a network-accessible URL parameter requiring no authentication; SQL injection or in-process RCE constitutes a scope change beyond the vulnerable Ash component.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).

CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 12, 2026 - 21:17 EUVD
CVE Published
Aug 12, 2026 - 20:17 cve.org
HIGH 7.5

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Ash Framework versions 1.17.0 through 3.31.2 contain an unauthenticated remote code execution vulnerability in keyset pagination endpoints, enabling attackers to execute arbitrary SQL or in-process code without authentication. Organizations using affected versions face immediate risk of data breach, manipulation, or system compromise, with no vendor patch currently available.

Business Impact: Severe
Compensating Controls

Disable keyset pagination endpoints if not business-critical; implement network segmentation to restrict endpoint access; deploy WAF rules targeting cursor parameter manipulation; enforce strict rate limiting on pagination requests; monitor application and database logs for exploitation patterns; require authentication or IP-whitelisting at reverse proxy layer if feasible; prepare rapid rollback and incident response procedures.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Low
Elixir-specific framework, limited enterprise deployment outside Elixir ecosystem
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy