Skip to main content
EPSS 0.1%top 96%

CVE-2026-70395: CWE-943 Improper Neutralization of Special Elements in Data Query Logic in ash-project ash

0
Low
VulnerabilityCVE-2026-70395cvecve-2026-70395cwe-943
Published: 08/09/2026 (08/09/2026, 18:17:07 UTC)
Source: CVE Database V5
Vendor/Project: ash-project
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Affected software

ash-project

ash

Affected versions
>=1.52.0-rc.11 <3.31.1

ash-project

ash

ash
pkg:hex/ash
Affected versions
>=1.52.0-rc.11 <3.31.1
GitHub Actionsmore threats →cve
ash-project/ash
pkg:github/ash-project/ash
CPE configurations
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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/17/2026, 15:30:42 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses