CVE-2026-70395

Predicate injection in manage_relationship belongs_to lookup discloses secret lookup keys in Ash

2.1 low EPSS 0.14%

Published 9 Aug 2026 Updated 19 Nov 2026 CNA: EEF

Check your servers for CVE-2026-70395

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-70395 affects ash, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

2.1 low CVSS 4.0 from EEF (CNA)
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
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Attack requirements
present: an attack works only when the target is in a certain state or configuration
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Impact on the vulnerable system
confidentiality low, integrity low, availability none: what an attacker can read, change or stop in the vulnerable component
Impact on other systems
confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it

Exploitation

EPSS 0.14%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.44% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Aug 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-943 Improper Neutralization of Special Elements in Data Query Logic

Affected products

As the CNA lists them.

ProductVersions
ash
package ash
affected from 1.52.0-rc.11, before 3.31.1
Other versions: unaffected
ash
package ash-project/ash
affected from 571c138140e71cea24005189f45d7a63c8d2ed20, before 09f42593035bceb0f6153dd7ee45cc49d108300a
Other versions: unaffected

Is my server affected?

Find the installed version of ash and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i ash
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-70395 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-70395

RHEL, Rocky, Alma, Fedora

rpm -q ash
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-70395

Alpine

apk list --installed | grep -i ash

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-70395
trivy image --scanners vuln IMAGE | grep CVE-2026-70395

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Patches and release notes

Other references

Source: the record CVE-2026-70395 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.