CVE-2026-77454
MEDIUM 5.9CVSS 4.0exists/2 predicate silently dropped on limited relationships with a parent() filter in AshSql
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.
- Published
- 30 Aug 2026
- Last modified
- 25 Nov 2026
- Assigned by
- 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
- NVD status
- Deferred
- Weakness
- CWE-863
- Also known as
- EEF-CVE-2026-77454GHSA-8v9m-8pxv-738c
- Sources
- NVDJSONCVE ListJSONOSV EEF-CVE-2026-77454JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db (Secondary) | CVSS 4.0 | MEDIUM 5.9 | 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 |
| CVE List | EEF | CVSS 4.0 | MEDIUM 5.9 | 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 |
| CVE List | CISA-ADP | SSVC | Exploitation: poc; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | https://repo.hex.pm | ash_sqlcpe:2.3:a:ash-project:ash_sql:*:*:*:*:*:*:*:* |
>= 0.4.1, < 0.7.1 | 0.7.1 |
| CVE List | https://github.com | ash-project/ash_sqlcpe:2.3:a:ash-project:ash_sql:*:*:*:*:*:*:*:* |
>= e26a63b29bd7501505fafd726f14262cdc3b6629, < 865fdd4e5e70724a23b19c048e6768c31d2209ab | 865fdd4e5e70724a23b19c048e6768c31d2209ab |
| OSV | Hex | ash_sql | >= 0.4.1, < 0.7.1 | 0.7.1 |
References
- https://cna.erlef.org/cves/CVE-2026-77454.html · related, WEB
- https://github.com/ash-project/ash_sql/commit/865fdd4e5e70724a23b19c048e6768c31d2209ab · patch, FIX
- https://github.com/ash-project/ash_sql/commit/e26a63b29bd7501505fafd726f14262cdc3b6629 · related, WEB
- https://github.com/ash-project/ash_sql/security/advisories/GHSA-8v9m-8pxv-738c · vendor-advisory, related, ADVISORY
- https://osv.dev/vulnerability/EEF-CVE-2026-77454 · related
- https://hex.pm/packages/ash_sql · PACKAGE
History
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 30 Aug 2026)
- 25 Nov 2026 20:11 UTC · CVE List: first stored (published 30 Aug 2026)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 30 Aug 2026)