{"id":"EEF-CVE-2026-77454","aliases":["CVE-2026-77454","GHSA-8v9m-8pxv-738c"],"title":"exists/2 predicate silently dropped on limited relationships with a parent() filter in AshSql","titleSource":"EEF","descriptionSource":"OSV","description":"## 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.","severity":"medium","score":5.9,"published":"2026-08-30T12:01:23.862Z","modified":"2026-11-25T06:31:02.443Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Hex","name":"ash_sql","sources":[{"name":"OSV · EEF-CVE-2026-77454","url":"https://osv.dev/vulnerability/EEF-CVE-2026-77454"}],"ranges":[{"events":[{"introduced":"0.4.1"},{"fixed":"0.7.1"}],"type":"SEMVER"}],"versions":["0.4.1","0.4.2","0.4.3","0.4.4","0.4.5","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.6.5","0.6.6","0.6.7","0.6.8","0.6.9","0.7.0"],"fixed":["0.7.1"]}],"sourceAffected":[{"ranges":[{"events":[{"introduced":"e26a63b29bd7501505fafd726f14262cdc3b6629"},{"fixed":"865fdd4e5e70724a23b19c048e6768c31d2209ab"}],"type":"GIT","repo":"https://github.com/ash-project/ash_sql"}],"versions":["v0.7.0","v0.6.9","v0.6.8","v0.6.7","v0.6.6","v0.6.5","v0.6.4","v0.6.3","v0.6.2","v0.6.1","v0.6.0","v0.5.5","v0.5.4","v0.5.3","v0.5.2","v0.5.1","v0.5.0","v0.4.5","v0.4.4","v0.4.3","v0.4.2","v0.4.1"]}],"references":["https://github.com/ash-project/ash_sql/security/advisories/GHSA-8v9m-8pxv-738c","https://cna.erlef.org/cves/CVE-2026-77454.html","https://osv.dev/vulnerability/EEF-CVE-2026-77454","https://github.com/ash-project/ash_sql/commit/e26a63b29bd7501505fafd726f14262cdc3b6629","https://github.com/ash-project/ash_sql/commit/865fdd4e5e70724a23b19c048e6768c31d2209ab","https://hex.pm/packages/ash_sql"],"sources":[{"name":"CVE","id":"CVE-2026-77454","modified":"2026-11-19T08:40:45.934Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-77454"},{"name":"OSV","id":"EEF-CVE-2026-77454","modified":"2026-11-25T06:31:02.443384256Z","url":"https://osv.dev/vulnerability/EEF-CVE-2026-77454"}],"assessments":[{"source":"EEF","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},{"source":"OSV","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}],"cve":{"records":[{"id":"CVE-2026-77454","source":"EEF","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-08-30T04:45:01.559Z","published":"2026-08-30T12:01:23.862Z","modified":"2026-11-19T08:40:45.934Z"}],"publishers":[{"name":"EEF","role":"CNA","organizationId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","modified":"2026-11-19T08:40:45.934Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-08-31T15:00:02.165Z"}],"references":[{"url":"https://github.com/ash-project/ash_sql/security/advisories/GHSA-8v9m-8pxv-738c","tags":["vendor-advisory","related"],"source":"EEF"},{"url":"https://cna.erlef.org/cves/CVE-2026-77454.html","tags":["related"],"source":"EEF"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-77454","tags":["related"],"source":"EEF"},{"url":"https://github.com/ash-project/ash_sql/commit/e26a63b29bd7501505fafd726f14262cdc3b6629","tags":["related"],"source":"EEF"},{"url":"https://github.com/ash-project/ash_sql/commit/865fdd4e5e70724a23b19c048e6768c31d2209ab","tags":["patch"],"source":"EEF"},{"url":"https://github.com/ash-project/ash_sql/security/advisories/GHSA-8v9m-8pxv-738c","tags":["exploit"],"source":"CISA-ADP"}],"weaknesses":[{"id":"CWE-863","description":"CWE-863 Incorrect Authorization","source":"EEF"}],"applicability":[{"source":"EEF","statements":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ash-project:ash_sql:*:*:*:*:*:*:*:*","versionEndExcluding":"0.7.1","versionStartIncluding":"0.4.1","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}]}],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-08-31T14:59:41.075810Z","decisions":[{"name":"Exploitation","value":"poc"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"partial"}]}]},"products":[{"vendor":"ash-project","name":"ash_sql","platforms":[],"versions":[{"version":"0.4.1","status":"affected","lessThan":"0.7.1","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:hex/ash_sql","packageIdentity":{"ecosystem":"Hex","name":"ash_sql"},"cpes":["cpe:2.3:a:ash-project:ash_sql:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-77454"},{"vendor":"ash-project","name":"ash_sql","platforms":[],"versions":[{"version":"e26a63b29bd7501505fafd726f14262cdc3b6629","status":"affected","lessThan":"865fdd4e5e70724a23b19c048e6768c31d2209ab","versionType":"git"}],"defaultStatus":"unaffected","packageURL":"pkg:github/ash-project/ash_sql","cpes":["cpe:2.3:a:ash-project:ash_sql:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-77454"}],"remediation":[],"observedAt":"2026-11-25T07:18:52.223Z","kev":{"status":"not-listed","checkedAt":"2026-11-29T00:25:32.008Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-21T05:10:32.274Z","attemptedAt":"2026-11-21T05:10:32.274Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-21T05:00:32.570Z","attemptedAt":"2026-11-21T05:00:32.570Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-21T04:45:34.034Z","attemptedAt":"2026-11-21T04:45:34.034Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-21T04:25:33.579Z","attemptedAt":"2026-11-21T04:25:33.579Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-77454","url":"https://www.first.org/epss/","probability":0.0019,"percentile":0.0882,"date":"2026-11-20","checkedAt":"2026-11-21T04:25:33.579Z"},{"source":"ENISA EUVD","id":"EUVD-2026-68198","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-68198","modified":"Nov 19, 2026, 8:40:45 AM","score":5.9,"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","checkedAt":"2026-11-21T04:45:34.034Z"},{"source":"NVD","id":"CVE-2026-77454","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77454","modified":"2026-11-19T09:17:58.437","score":5.9,"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/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","checkedAt":"2026-11-21T05:10:32.274Z"}],"aiSummary":null}