2.1
LOW CVSS 4.0
CVE-2026-70395
Predicate injection in manage_relationship belongs_to lookup discloses secret lookup keys in Ash
Description

Improper Neutralization of Special Elements in Data Query Logic vulnerability in ash-project ash allows an attacker to forge a relationship to a record they cannot name, and to recover the secret value used to look it up. When manage_relationship is used with on_lookup: :relate on a belongs_to relationship, the client-supplied lookup value is passed to Ash.Query.filter/2 without being cast to the attribute type. A nested map submitted where a scalar is expected is therefore interpreted as a filter predicate rather than a literal, so a lookup for a specific record becomes a query for any record matching a condition. The same path omits Ash.Query.limit(1), leaving Ash.read_one/2 able to distinguish no match from one match from several, which turns comparison predicates into an oracle for the lookup value. Authorization is unaffected; the destination read policy still applies. This issue affects ash: from 1.52.0-rc.11 before 3.31.1.

INFO

Published Date :

Aug. 9, 2026, 7:17 p.m.

Last Modified :

Aug. 9, 2026, 7:17 p.m.

Remotely Exploit :

No

Source :

6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Affected Products

The following products are affected by CVE-2026-70395 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Ash-project ash
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 4.0 LOW 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
CVSS 4.0 LOW 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Solution
Update ash to version 3.31.1 or later to fix query logic vulnerabilities.
  • Update ash to 3.31.1 or later.
  • Ensure all lookups are properly cast.
  • Validate filter predicates carefully.
References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-70395 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-70395 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-70395 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-70395 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

    Aug. 09, 2026

    Action Type Old Value New Value
    Added Affected [{'cpes': ['cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/ash-project/ash', 'vendor': 'ash-project', 'modules': ["'Elixir.Ash.Actions.ManagedRelationships'", "'Elixir.Ash.Changeset'"], 'product': 'ash', 'versions': [{'status': 'affected', 'version': '1.52.0-rc.11', 'lessThan': '3.31.1', 'versionType': 'semver'}], 'packageURL': 'pkg:hex/ash', 'packageName': 'ash', 'programFiles': ['lib/ash/actions/managed_relationships.ex', 'lib/ash/changeset/changeset.ex'], 'collectionURL': 'https://repo.hex.pm', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Ash.Actions.ManagedRelationships':setup_managed_belongs_to_relationships/3"}, {'name': "'Elixir.Ash.Changeset':manage_relationship/4"}]}, {'cpes': ['cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/ash-project/ash', 'vendor': 'ash-project', 'modules': ["'Elixir.Ash.Actions.ManagedRelationships'", "'Elixir.Ash.Changeset'"], 'product': 'ash', 'versions': [{'status': 'affected', 'version': '571c138140e71cea24005189f45d7a63c8d2ed20', 'lessThan': '09f42593035bceb0f6153dd7ee45cc49d108300a', 'versionType': 'git'}], 'packageURL': 'pkg:github/ash-project/ash', 'packageName': 'ash-project/ash', 'programFiles': ['lib/ash/actions/managed_relationships.ex', 'lib/ash/changeset/changeset.ex'], 'collectionURL': 'https://github.com', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Ash.Actions.ManagedRelationships':setup_managed_belongs_to_relationships/3"}, {'name': "'Elixir.Ash.Changeset':manage_relationship/4"}]}]
    Added Description Improper Neutralization of Special Elements in Data Query Logic vulnerability in ash-project ash allows an attacker to forge a relationship to a record they cannot name, and to recover the secret value used to look it up. When manage_relationship is used with on_lookup: :relate on a belongs_to relationship, the client-supplied lookup value is passed to Ash.Query.filter/2 without being cast to the attribute type. A nested map submitted where a scalar is expected is therefore interpreted as a filter predicate rather than a literal, so a lookup for a specific record becomes a query for any record matching a condition. The same path omits Ash.Query.limit(1), leaving Ash.read_one/2 able to distinguish no match from one match from several, which turns comparison predicates into an oracle for the lookup value. Authorization is unaffected; the destination read policy still applies. This issue affects ash: from 1.52.0-rc.11 before 3.31.1.
    Added CVSS V4.0 AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CWE CWE-943
    Added Reference https://cna.erlef.org/cves/CVE-2026-70395.html
    Added Reference https://github.com/ash-project/ash/commit/09f42593035bceb0f6153dd7ee45cc49d108300a
    Added Reference https://github.com/ash-project/ash/security/advisories/GHSA-vvp6-3wv6-833j
    Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-70395
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.