# CVE-2026-77454: exists/2 predicate silently dropped on limited relationships with a parent() filter in AshSql

- Severity: Medium 5.9 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-30T12:01:23.862Z
- Modified: 2026-11-25T06:31:02.443Z
- Also known as: EEF-CVE-2026-77454, GHSA-8v9m-8pxv-738c
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: EEF

## 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.

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.

This issue affects ash_sql: from 0.4.1 before 0.7.1.

(As written by CVE List.)

## Affected

- ash_sql: from 0.4.1 before 0.7.1
- ash-project/ash_sql: from e26a63b29bd7501505fafd726f14262cdc3b6629 before 865fdd4e5e70724a23b19c048e6768c31d2209ab
- ash_sql (Hex): from 0.4.1 before 0.7.1
- https://github.com/ash-project/ash_sql: from e26a63b29bd7501505fafd726f14262cdc3b6629 before 865fdd4e5e70724a23b19c048e6768c31d2209ab

## Every score

- EEF: CVSS:4.0 5.9 Medium `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/ash-project/ash_sql/security/advisories/GHSA-8v9m-8pxv-738c> (exploit, advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-77454.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-77454> (related)
- <https://github.com/ash-project/ash_sql/commit/e26a63b29bd7501505fafd726f14262cdc3b6629> (related, web)
- <https://github.com/ash-project/ash_sql/commit/865fdd4e5e70724a23b19c048e6768c31d2209ab> (fix, patch)
- <https://hex.pm/packages/ash_sql> (package)

## Sources

- CVE List: [CVE-2026-77454](https://www.cve.org/CVERecord?id=CVE-2026-77454), CVE Terms of Use, modified 2026-11-19
- Erlang Ecosystem Foundation: [EEF-CVE-2026-77454](https://osv.dev/vulnerability/EEF-CVE-2026-77454), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-77454](https://nvd.nist.gov/vuln/detail/CVE-2026-77454), Public domain, modified 2026-11-19

---

Page: https://cve.day/CVE-2026-77454 · Whole record: https://cve.day/CVE-2026-77454.json · Rebuilt by cve.day 2026-11-25T22:59:35.760Z
