{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-70395","id":"CVE-2026-70395","title":"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.\n\nWhen 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","descriptionLong":"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.\n\nWhen 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.\n\nThis issue affects ash: from 1.52.0-rc.11 before 3.31.1.","published":"2026-08-09T18:17:07.321Z","updated":"2026-11-19T10:00:24.152589116Z","reserved":"2026-08-04T14:30:01.369Z","status":"Awaiting Analysis","rejected":false,"assigner":"EEF","metric":{"version":"4.0","score":2.1,"vector":"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","rating":"low","source":"EEF"},"metrics":[{"version":"4.0","score":2.1,"vector":"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","rating":"low","source":"EEF"},{"version":"4.0","score":2.1,"vector":"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/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","rating":"low","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"}],"rating":"low","products":["ash-project ash"],"affectedProducts":[{"vendor":"ash-project","product":"ash","defaultStatus":"unaffected","versions":[{"lessThan":"3.31.1","status":"affected","version":"1.52.0-rc.11","versionType":"semver"}],"platforms":[]},{"vendor":"ash-project","product":"ash","defaultStatus":"unaffected","versions":[{"lessThan":"09f42593035bceb0f6153dd7ee45cc49d108300a","status":"affected","version":"571c138140e71cea24005189f45d7a63c8d2ed20","versionType":"git"}],"platforms":[]}],"packages":[],"cwes":["CWE-943"],"aliases":["EEF-CVE-2026-70395","GHSA-vvp6-3wv6-833j"],"references":[{"url":"https://github.com/ash-project/ash/security/advisories/GHSA-vvp6-3wv6-833j","tags":["related","vendor-advisory","advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-70395.html","tags":["related","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-70395","tags":["related","web"]},{"url":"https://github.com/ash-project/ash/commit/571c138140e71cea24005189f45d7a63c8d2ed20","tags":["related","fix"]},{"url":"https://github.com/ash-project/ash/commit/09f42593035bceb0f6153dd7ee45cc49d108300a","tags":["patch","fix"]},{"url":"https://github.com","tags":["web"]},{"url":"https://repo.hex.pm","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70395.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70395","tags":["advisory"]},{"url":"https://github.com/ash-project/ash","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00197,"epssPercentile":0.09485,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-70395","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70395","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-70395","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-70395","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}