{"id":"CVE-2026-70395","aliases":["CVE-2026-70395","EEF-CVE-2026-70395","GHSA-vvp6-3wv6-833j"],"related":[],"kind":"vulnerability","state":"published","title":"Predicate injection in manage_relationship belongs_to lookup discloses secret lookup keys in Ash","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper 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.\n\n## Configurations\n\nA `belongs_to` relationship must be managed with `manage_relationship` using `on_lookup: :relate`, and the lookup value must come from client input.","format":"markdown","source":"eef"},{"lang":"es","text":"vulnerabilidad de neutralización incorrecta de elementos especiales en la lógica de consulta de datos en ash-project ash permite a un atacante forjar una relación con un registro que no pueden nombrar, y recuperar el valor secreto utilizado para buscarlo.\n\nCuando manage_relationship se utiliza con on_lookup: :relate en una relación belongs_to, el valor de búsqueda proporcionado por el cliente se pasa a Ash.Query.filter/2 sin ser convertido al tipo de atributo. Un mapa anidado enviado donde se espera un escalar se interpreta, por lo tanto, como un predicado de filtro en lugar de un literal, por lo que una búsqueda de un registro específico se convierte en una consulta para cualquier registro que coincida con una condición. La misma ruta omite Ash.Query.limit(1), dejando a Ash.read_one/2 capaz de distinguir ninguna coincidencia de una coincidencia de varias, lo que convierte los predicados de comparación en un oráculo para el valor de búsqueda. La autorización no se ve afectada; la política de lectura de destino sigue aplicándose.\n\nEste problema afecta a ash: desde 1.52.0-rc.11 antes de 3.31.1.","source":"nvd"}],"published":"2026-08-09T18:17:07.321Z","modified":"2026-11-26T17:23:10.420Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","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","score":2.1,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","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","score":2.1,"rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","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"}],"cwes":["CWE-943"],"affected":[{"ranges":[{"type":"semver","introduced":"1.52.0-rc.11","fixed":"3.31.1","status":"affected"}],"vendor":"ash-project","product":"ash","package":"ash","cpe":"cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash","source":"cvelist"},{"ranges":[{"type":"git","introduced":"571c138140e71cea24005189f45d7a63c8d2ed20","fixed":"09f42593035bceb0f6153dd7ee45cc49d108300a","status":"affected"}],"vendor":"ash-project","product":"ash","package":"ash-project/ash","cpe":"cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.52.0-rc.11","status":"affected","fixed":"3.31.1"}],"ecosystem":"Hex","package":"ash","purl":"pkg:hex/ash","source":"eef"},{"ranges":[{"type":"git","introduced":"571c138140e71cea24005189f45d7a63c8d2ed20","status":"affected","fixed":"09f42593035bceb0f6153dd7ee45cc49d108300a"}],"repo":"https://github.com/ash-project/ash","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash/security/advisories/GHSA-vvp6-3wv6-833j","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-70395.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-70395","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash/commit/571c138140e71cea24005189f45d7a63c8d2ed20","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash/commit/09f42593035bceb0f6153dd7ee45cc49d108300a","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash","tags":["package"],"sources":["eef"]}],"credits":["Jisung Chae","Jonatan Männchen / EEF","Zach Daniel"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-10T15:56:57.175Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-70395","url":"https://www.cve.org/CVERecord?id=CVE-2026-70395","licence":"CVE Terms of Use","modified":"2026-11-19T08:44:33.893Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-70395","url":"https://osv.dev/vulnerability/EEF-CVE-2026-70395","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:10.420Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-70395","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70395","licence":"Public domain","modified":"2026-11-19T09:17:53.800Z"}],"updatedAt":"2026-11-26T17:37:08.983Z","epss":{"score":0.00139,"percentile":0.03445,"date":"2026-12-01T12:00:22.000Z"}}