# CVE-2026-70395: Predicate injection in manage_relationship belongs_to lookup discloses secret lookup keys in Ash

- Severity: Low 2.1 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-08-09T18:17:07.321Z
- Modified: 2026-11-26T17:23:10.420Z
- Also known as: EEF-CVE-2026-70395, GHSA-vvp6-3wv6-833j
- Weaknesses: CWE-943
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

## 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.

(As written by CVE List.)

## Affected

- ash: from 1.52.0-rc.11 before 3.31.1
- ash-project/ash: from 571c138140e71cea24005189f45d7a63c8d2ed20 before 09f42593035bceb0f6153dd7ee45cc49d108300a
- ash (Hex): from 1.52.0-rc.11 before 3.31.1
- https://github.com/ash-project/ash: from 571c138140e71cea24005189f45d7a63c8d2ed20 before 09f42593035bceb0f6153dd7ee45cc49d108300a

## Every score

- EEF: CVSS:4.0 2.1 Low `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/ash-project/ash/security/advisories/GHSA-vvp6-3wv6-833j> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-70395.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-70395> (related)
- <https://github.com/ash-project/ash/commit/571c138140e71cea24005189f45d7a63c8d2ed20> (related, web)
- <https://github.com/ash-project/ash/commit/09f42593035bceb0f6153dd7ee45cc49d108300a> (fix, patch)
- <https://hex.pm/packages/ash> (package)

## Sources

- CVE List: [CVE-2026-70395](https://www.cve.org/CVERecord?id=CVE-2026-70395), CVE Terms of Use, modified 2026-11-19
- Erlang Ecosystem Foundation: [EEF-CVE-2026-70395](https://osv.dev/vulnerability/EEF-CVE-2026-70395), CC-BY-4.0, modified 2026-11-26
- NVD: [CVE-2026-70395](https://nvd.nist.gov/vuln/detail/CVE-2026-70395), Public domain, modified 2026-11-19

---

Page: https://cve.day/CVE-2026-70395 · Whole record: https://cve.day/CVE-2026-70395.json · Rebuilt by cve.day 2026-11-26T17:37:08.983Z
