CVE-2026-70395: CWE-943 Improper Neutralization of Special Elements in Data Query Logic in ash-project ash
CVE-2026-70395 is a low severity vulnerability in ash-project ash that allows an attacker to manipulate data query logic by submitting specially crafted lookup values. This improper neutralization of special elements in data query logic can enable an attacker to forge relationships to records they cannot name and recover secret lookup values. The issue arises when the manage_relationship function uses on_lookup: :relate on a belongs_to relationship, passing client-supplied lookup values to Ash.Query.filter/2 without proper type casting. Authorization policies remain enforced, limiting unauthorized data access.
AI Analysis
Technical Summary
The vulnerability in ash-project ash (versions from 1.52.0-rc.11 before 3.31.1) involves improper neutralization of special elements in data query logic (CWE-943). Specifically, when manage_relationship is used with on_lookup: :relate on a belongs_to relationship, client-supplied lookup values are passed directly to Ash.Query.filter/2 without casting to the attribute type. This allows a nested map, where a scalar is expected, to be interpreted as a filter predicate rather than a literal value. Consequently, a lookup intended for a specific record becomes a query for any record matching a condition. Additionally, the query omits Ash.Query.limit(1), enabling Ash.read_one/2 to distinguish between no match, one match, or multiple matches. This behavior effectively turns comparison predicates into an oracle for the lookup value. Despite this, authorization is unaffected as the destination read policy still applies.
Potential Impact
An attacker can forge relationships to records they cannot explicitly name and recover secret values used for lookups by exploiting the query logic flaw. However, authorization policies remain in place, preventing unauthorized data access beyond what the policy allows. The vulnerability has a low CVSS score (2.1) indicating limited impact and attack complexity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided at this time. Users should monitor vendor communications for updates. Authorization policies remain effective, so no immediate action is required to prevent unauthorized data access beyond existing controls.
CVE-2026-70395: CWE-943 Improper Neutralization of Special Elements in Data Query Logic in ash-project ash
Description
CVE-2026-70395 is a low severity vulnerability in ash-project ash that allows an attacker to manipulate data query logic by submitting specially crafted lookup values. This improper neutralization of special elements in data query logic can enable an attacker to forge relationships to records they cannot name and recover secret lookup values. The issue arises when the manage_relationship function uses on_lookup: :relate on a belongs_to relationship, passing client-supplied lookup values to Ash.Query.filter/2 without proper type casting. Authorization policies remain enforced, limiting unauthorized data access.
CVSS v4.0
Score 2.1low
Affected software
ash-project
ash
ash-project
ash
cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in ash-project ash (versions from 1.52.0-rc.11 before 3.31.1) involves improper neutralization of special elements in data query logic (CWE-943). Specifically, when manage_relationship is used with on_lookup: :relate on a belongs_to relationship, client-supplied lookup values are passed directly to Ash.Query.filter/2 without casting to the attribute type. This allows a nested map, where a scalar is expected, to be interpreted as a filter predicate rather than a literal value. Consequently, a lookup intended for a specific record becomes a query for any record matching a condition. Additionally, the query omits Ash.Query.limit(1), enabling Ash.read_one/2 to distinguish between no match, one match, or multiple matches. This behavior effectively turns comparison predicates into an oracle for the lookup value. Despite this, authorization is unaffected as the destination read policy still applies.
Potential Impact
An attacker can forge relationships to records they cannot explicitly name and recover secret values used for lookups by exploiting the query logic flaw. However, authorization policies remain in place, preventing unauthorized data access beyond what the policy allows. The vulnerability has a low CVSS score (2.1) indicating limited impact and attack complexity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided at this time. Users should monitor vendor communications for updates. Authorization policies remain effective, so no immediate action is required to prevent unauthorized data access beyond existing controls.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-08-04T14:30:01.369Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a78c9e7bf8831d539149282
Added to database: 08/09/2026, 18:41:43 UTC
Last enriched: 08/17/2026, 15:30:42 UTC
Last updated: 09/23/2026, 13:47:47 UTC
Views: 80
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.