{"id":"CVE-2026-77454","aliases":["CVE-2026-77454","EEF-CVE-2026-77454","GHSA-8v9m-8pxv-738c"],"related":[],"kind":"vulnerability","state":"published","title":"exists/2 predicate silently dropped on limited relationships with a parent() filter in AshSql","summary":"Incorrect Authorization vulnerability in ash-project ash_sql allows a caller to bypass a scoping or authorization filter expressed as exists/2 over a relationship that declares both a limit (or from_many?) and a parent(...)-referencing filter or sort.\n\nAshSql.Join.related_query/3 skips the caller-supplied exists predicate for such relationships and delegates it to limit_from_many/5. When the relationship's own filter or sort references parent(...), limit_from_many/5 takes a branch that drops both the limit and the predicate, emitting a bare correlated EXISTS with no predicate. The check then matches any record that has any related row. Most severely, when the expression backs a policy (for example authorize_if expr(exists(memberships, user_id == ^actor(:id)))), the actor-scoping condition disappears and the policy passes for any actor with any related row.\n\nThis issue affects ash_sql: from 0.4.1 before 0.7.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Incorrect Authorization vulnerability in ash-project ash_sql allows a caller to bypass a scoping or authorization filter expressed as exists/2 over a relationship that declares both a limit (or from_many?) and a parent(...)-referencing filter or sort.\n\nAshSql.Join.related_query/3 skips the caller-supplied exists predicate for such relationships and delegates it to limit_from_many/5. When the relationship's own filter or sort references parent(...), limit_from_many/5 takes a branch that drops both the limit and the predicate, emitting a bare correlated EXISTS with no predicate. The check then matches any record that has any related row. Most severely, when the expression backs a policy (for example authorize_if expr(exists(memberships, user_id == ^actor(:id)))), the actor-scoping condition disappears and the policy passes for any actor with any related row.\n\nThis issue affects ash_sql: from 0.4.1 before 0.7.1.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nIncorrect Authorization vulnerability in ash-project ash_sql allows a caller to bypass a scoping or authorization filter expressed as `exists/2` over a relationship that declares both a limit (or `from_many?`) and a `parent(...)`-referencing filter or sort.\n\n`AshSql.Join.related_query/3` skips the caller-supplied `exists` predicate for such relationships and delegates it to `limit_from_many/5`. When the relationship's own filter or sort references `parent(...)`, `limit_from_many/5` takes a branch that drops both the limit and the predicate, emitting a bare correlated `EXISTS` with no predicate. The check then matches any record that has any related row. Most severely, when the expression backs a policy (for example `authorize_if expr(exists(memberships, user_id == ^actor(:id)))`), the actor-scoping condition disappears and the policy passes for any actor with any related row.\n\nThis issue affects ash_sql: from 0.4.1 before 0.7.1.\n\n## Configurations\n\nAn application must use `exists/2` (in a filter or a policy) over a relationship that declares both a limit or `from_many?` and a filter or sort that references `parent(...)`. The predicate supplied to `exists/2` is the one that is dropped.","format":"markdown","source":"eef"}],"published":"2026-08-30T12:01:23.862Z","modified":"2026-11-25T06:31:02.443Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.9,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"type":"semver","introduced":"0.4.1","fixed":"0.7.1","status":"affected"}],"vendor":"ash-project","product":"ash_sql","package":"ash_sql","cpe":"cpe:2.3:a:ash-project:ash_sql:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_sql","source":"cvelist"},{"ranges":[{"type":"git","introduced":"e26a63b29bd7501505fafd726f14262cdc3b6629","fixed":"865fdd4e5e70724a23b19c048e6768c31d2209ab","status":"affected"}],"vendor":"ash-project","product":"ash_sql","package":"ash-project/ash_sql","cpe":"cpe:2.3:a:ash-project:ash_sql:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_sql","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.4.1","status":"affected","fixed":"0.7.1"}],"ecosystem":"Hex","package":"ash_sql","purl":"pkg:hex/ash_sql","source":"eef"},{"ranges":[{"type":"git","introduced":"e26a63b29bd7501505fafd726f14262cdc3b6629","status":"affected","fixed":"865fdd4e5e70724a23b19c048e6768c31d2209ab"}],"repo":"https://github.com/ash-project/ash_sql","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash_sql/security/advisories/GHSA-8v9m-8pxv-738c","tags":["advisory","exploit","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-77454.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-77454","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash_sql/commit/e26a63b29bd7501505fafd726f14262cdc3b6629","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash_sql/commit/865fdd4e5e70724a23b19c048e6768c31d2209ab","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash_sql","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Zach Daniel / Ash Project"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-31T14:59:41.075Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77454","url":"https://www.cve.org/CVERecord?id=CVE-2026-77454","licence":"CVE Terms of Use","modified":"2026-11-19T08:40:45.934Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-77454","url":"https://osv.dev/vulnerability/EEF-CVE-2026-77454","licence":"CC-BY-4.0","modified":"2026-11-25T06:31:02.443Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77454","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77454","licence":"Public domain","modified":"2026-11-19T09:17:58.437Z"}],"updatedAt":"2026-11-25T22:59:35.760Z","epss":{"score":0.0019,"percentile":0.09075,"date":"2026-12-01T12:00:22.000Z"}}