CVE-2026-77454

MEDIUM CVSS 4.0: 5.9 EPSS 0.19%
Updated Nov 19, 2026
Ash-Project
Parameter Value
CVSS 5.9 (MEDIUM)
Affected Versions 0.4.1 — 0.7.1
Fixed In 0.7.1
Type CWE-863 (Incorrect Authorization)
Vendor Ash-Project
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Attack Requirements
Present
Additional conditions required
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
Low
Partial data modification
Availability
None
No disruption

CVSS Vector v4.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Ash-Project Ash_Sql
cpe:2.3:a:ash-project:ash_sql:*:*:*:*:*:*:*:*
0.4.1 0.7.1