{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-77454","id":"CVE-2026-77454","title":"exists/2 predicate silently dropped on limited relationships with a parent() filter in AshSql","description":"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 relat","descriptionLong":"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.","published":"2026-08-30T12:01:23.862Z","updated":"2026-11-19T10:00:25.994614377Z","reserved":"2026-08-30T04:45:01.559Z","status":"Deferred","rejected":false,"assigner":"EEF","metric":{"version":"4.0","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","rating":"medium","source":"EEF"},"metrics":[{"version":"4.0","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","rating":"medium","source":"EEF"},{"version":"4.0","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","rating":"medium","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:H/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"unrated","source":"OSV"}],"rating":"medium","products":["ash-project ash_sql"],"affectedProducts":[{"vendor":"ash-project","product":"ash_sql","defaultStatus":"unaffected","versions":[{"lessThan":"0.7.1","status":"affected","version":"0.4.1","versionType":"semver"}],"platforms":[]},{"vendor":"ash-project","product":"ash_sql","defaultStatus":"unaffected","versions":[{"lessThan":"865fdd4e5e70724a23b19c048e6768c31d2209ab","status":"affected","version":"e26a63b29bd7501505fafd726f14262cdc3b6629","versionType":"git"}],"platforms":[]}],"packages":[],"cwes":["CWE-863"],"aliases":["EEF-CVE-2026-77454","GHSA-8v9m-8pxv-738c"],"references":[{"url":"https://github.com/ash-project/ash_sql/security/advisories/GHSA-8v9m-8pxv-738c","tags":["vendor-advisory","related","exploit","advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-77454.html","tags":["related","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-77454","tags":["related","web"]},{"url":"https://github.com/ash-project/ash_sql/commit/e26a63b29bd7501505fafd726f14262cdc3b6629","tags":["related","fix"]},{"url":"https://github.com/ash-project/ash_sql/commit/865fdd4e5e70724a23b19c048e6768c31d2209ab","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/77xxx/CVE-2026-77454.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77454","tags":["advisory"]},{"url":"https://github.com/ash-project/ash_sql","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.0019,"epssPercentile":0.08753,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-77454","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77454","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-77454","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-77454","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}