CVE-2026-77454
published medium CVSS 4.0 · 5.9exists/2 predicate silently dropped on limited relationships with a parent() filter in AshSql
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ash-project | — | ash_sql0.4.1 to < 0.7.1 · Other versions: unaffected | Affected | Not stated | EEF |
| ash-project | — | ash-project/ash_sqlash_sql · e26a63b29bd7501505fafd726f14262cdc3b6629 to < 865fdd4e5e70724a23b19c048e6768c31d2209ab · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ash-project | ash_sql | 0.4.1 to < 0.7.1 (affected · semver)Default: unaffected | EEF · cna |
| ash-project | ash_sql | e26a63b29bd7501505fafd726f14262cdc3b6629 to < 865fdd4e5e70724a23b19c048e6768c31d2209ab (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-863 CWE-863 Incorrect Authorization
References
5- EEF CNA record for CVE-2026-77454 https://cna.erlef.org/cves/CVE-2026-77454.html
- Fix commit 865fdd4 in ash-project/ash_sql https://github.com/ash-project/ash_sql/commit/865fdd4e5e70724a23b19c048e6768c31d2209ab
- Introducing commit e26a63b in ash-project/ash_sql https://github.com/ash-project/ash_sql/commit/e26a63b29bd7501505fafd726f14262cdc3b6629
- https://github.com/ash-project/ash_sql/security/advisories/GHSA-8v9m-8pxv-738c
- OSV record EEF-CVE-2026-77454 https://osv.dev/vulnerability/EEF-CVE-2026-77454
Provider assertions
2EEF · cna
exists/2 predicate silently dropped on limited relationships with a parent() filter in AshSql
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9ca93b73a6e5b25e64088ba032cf9fd051f05d8f14303e8f41ab96a6db8428f3
- Ingested
- 19 Nov 2026, 08:43:53 UTC
- Source record
- Official CVE record