Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to AshAdmin interface
-
DeliveryIdentify resource with sensitive short-value attribute
-
ExploitCraft ETF map encoding %{sensitive_attr: candidate_value}
-
ExecutionBase64-encode and submit as primary key in lookup URL
-
PersistObserve response to confirm match or mismatch
-
ImpactIterate candidates to recover secret attribute value
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
|
| Exploitation Conditions | Exploitation requires: (1) the attacker holds a valid AshAdmin session (authenticated, PR:L per CVSS 4.0); (2) the target resource has at least one sensitive non-primary-key attribute whose Elixir atom name is already interned in the BEAM runtime (all compiled resource attribute names qualify, since they are interned at compile time); (3) the attacker can distinguish a matching lookup result from a non-matching one via the HTTP response (status code, response body, or timing). The AT:P precondition in CVSS 4.0 reflects that the oracle is only useful when the sensitive attribute's value space is small enough to be enumerable - strong random tokens are impractical to brute-force, while short numeric codes or predictable values are realistic targets. What limits exploitation: authentication is mandatory (no unauthenticated path), the BEAM :safe flag blocks new-atom creation so only already-interned atoms are usable as injection keys, and each guess requires a distinct HTTP request making high-entropy secrets infeasible to recover. |
| Impact | The CVSS 4.0 score of 2.3 accurately reflects constrained real-world impact. AT:P (attack requires preconditions) captures that successful exploitation requires: (1) the targeted resource must have sensitive non-primary-key attributes whose atom names are already interned in the BEAM runtime; (2) the attacker must have authenticated access to the AshAdmin interface; and (3) the attacker must be able to enumerate attribute names and craft valid ETF payloads. PR:L confirms authentication is required, substantially reducing the attacker population. The confidentiality impact is rated VC:L because the oracle leaks only a single attribute equality match per request, not bulk data - brute-forcing a 32-byte token would require infeasible numbers of requests for strong tokens, but weak or short tokens (e.g., numeric reset codes) are realistically recoverable. There is no KEV listing and no public POC is identified at time of analysis. The combination of required authentication, preconditions, and low-rate oracle design makes this a real but low-urgency risk; organizations using AshAdmin with sensitive resource attributes and broad admin access should treat it as a priority patch. |
| Exploit ScenarioDerived | An authenticated AshAdmin user identifies a resource with a sensitive attribute (e.g., a short numeric password-reset token). They craft an ETF binary encoding the map %{reset_token: "123456"}, Base64-encode it, and submit it as the primary key in a record-lookup URL. If the response differs from a non-matching guess (e.g., returns a record vs. a 404), the attacker iterates over candidate values to recover the token. No public POC exists at time of analysis, but the attack is mechanically straightforward for anyone familiar with Elixir's ETF format. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAI
Composite primary key decoding in AshAdmin (ash_admin) versions 0.1.0 through 1.3.0 can be abused by authenticated users to turn any record-lookup URL into an equality oracle over arbitrary resource attributes. By crafting a Base64+ETF-encoded payload substituting a sensitive field name (e.g., api_token, reset_token) for an actual primary key, an attacker can brute-force secret attribute values one equality guess at a time. No public exploit has been identified at time of analysis, and exploitation requires authentication and specific preconditions (CVSS 4.0: 2.3, AT:P).
RemediationAI
Upgrade ash_admin to version 1.3.1 or later; this is the only confirmed fix, applied via patch commit 3c3e905d47f1155dcc1ca3fb347348b05a66065a (https://github.com/ash-project/ash_admin/commit/3c3e905d47f1155dcc1ca3fb347348b05a66065a). Update your mix.exs dependency to {:ash_admin, "~> 1.3.1"} and run mix deps.update ash_admin. If immediate upgrade is not possible, restrict access to the AshAdmin interface to a minimal, trusted user set at the network or application authentication layer - this raises the effective PR required and eliminates unauthenticated exposure. A secondary compensating control is to ensure sensitive resource attributes such as API tokens and reset tokens are not directly stored as plaintext Ash resource attributes visible to the query engine; storing only hashed representations limits the oracle's utility since matching a hash to a candidate requires the attacker to also know the hashing scheme. Neither compensating control eliminates the vulnerability and both introduce operational trade-offs; upgrade to 1.3.1 is the definitive remediation.
Affected VersionsENISA
Affected Packages
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
AshAdmin is the official admin interface for the Ash Framework, an Elixir resource/domain modeling library. The affected function, AshAdmin.Helpers.decode_primary_key/2, handles composite primary keys encoded as Base64-wrapped Erlang Term Format (ETF) binary data. ETF deserialization via :erlang.binary_to_term/2 with the :safe option restricts new atom creation and function terms but does not restrict which already-interned atom names appear as map keys. Because the decoded map is passed verbatim as a lookup filter to the Ash query engine, any Elixir atom that already exists in the BEAM VM runtime can be used as a filter key - including sensitive resource attributes. CWE-639 (Authorization Bypass Through User-Controlled Key) precisely describes the root cause: the application trusts a user-supplied key to identify a record without verifying the key belongs to an authorized identifier namespace (the primary key fields only). The commit diff confirms the fix adds check_primary_key_fields/2, which validates that all decoded map keys are members of the resource's declared pkey field list before allowing the lookup to proceed.
Know when Ash Admin 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
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable but AC:H for ETF payload crafting and oracle brute-force feasibility; PR:L per CVSS 4.0; confidentiality limited to oracle equality leakage only.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
Authorization Bypass Through User-Controlled Key vulnerability in ash-project ash_admin turns a record-lookup URL into an equality oracle over sensitive attributes.
AshAdmin.Helpers.decode_primary_key/2 decodes the composite-primary-key form (Base64 plus ETF) and returns the decoded map verbatim as the lookup filter, without checking that its keys are the resource's primary-key fields. The deserialization guards bound size, block new atoms and funs, and reject nested expressions, but none restricts which fields come back, and :safe still allows any already-interned attribute name. An attacker can therefore encode %{api_token: "guess"} and have it spliced into the lookup filter, brute-forcing a sensitive attribute value (API token, reset token) one equality guess at a time; Map.to_list/1 also accepts structs, yielding a bogus __struct__ key. The fix rejects any decoded key that is not a real primary-key field.
This issue affects ash_admin: from 0.1.0 before 1.3.1.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
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.
Stored XSS in ash_admin's relationship typeahead components allows an attacker with low-privilege record-creation access
Arbitrary file write via path traversal in AshAdmin's file upload handler affects versions 0.13.7 through 1.3.0, enablin
Cookie shadowing via unanchored regex in AshAdmin (versions 0.9.1-1.3.0) allows an attacker who controls a sibling subdo
Atom table exhaustion in ash_admin's Phoenix LiveView event handlers allows any authenticated user reaching the admin in
AshAdmin shipped a compile-time constant string ('ash_admin-Ed55GFnX') as the default CSP nonce for inline script and st
AshAdmin's Table, DataTable, and Show LiveView components constructed row-action URLs via raw Elixir string interpolatio
EUVD-2026-68330
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB