Vulnerability EEF-CVE-2026-140867

Unknown
UNKNOWN RISK
Vulnerabilities without an assigned CVSS score. Severity is not determinable from available data.
1 day ago
December 04, 2026 at 06:18 AM UTC
Aggregates in Ash skip the read policies of the records they read on several query paths, disclosing counts and values of hidden records
2.17.22 - 3.0.0-rc.0 and 3.0.0-rc.1 and 3.0.0-rc.3 and 3.0.0-rc.4 and 3.0.0-rc.5 and 3.0.0-rc.6 and 3.0.0-rc.7 and 3.0.0-rc.8 and 3.0.0-rc.9 and 3.0.0-rc.10 and 3.0.0-rc.11 and 3.0.0-rc.12 and 3.0.0-rc.13 and 3.0.0-rc.14 and 3.0.0-rc.15 and 3.0.0-rc.16 and 3.0.0-rc.17 and 3.0.0-rc.18 and 3.0.0-rc.19 and 3.0.0-rc.20 and 3.0.0-rc.21 and 3.0.0-rc.22 and 3.0.0-rc.23 and 3.0.0-rc.24 and 3.0.0-rc.25 and 3.0.0-rc.26 and 3.0.0-rc.27 and 3.0.0-rc.28 and 3.0.0-rc.29 and 3.0.0-rc.31 and 3.0.0-rc.32 and 3.0.0-rc.33 and 3.0.0-rc.34 and 3.0.0-rc.35 and 3.0.0-rc.36 and 3.0.0-rc.37 and 3.0.0-rc.38 and 3.0.0-rc.39 and 3.0.0-rc.40 and 3.0.0-rc.41 and 3.0.0-rc.42 and 3.0.0-rc.43 and 3.0.0-rc.44 and 3.0.0-rc.45 and 3.0.0-rc.46 and 3.0.0 - 3.39.0
2.17.22 - 3.0.0-rc.0 and 3.0.0-rc.1 and 3.0.0-rc.3 and 3.0.0-rc.4 and 3.0.0-rc.5 and 3.0.0-rc.6 and 3.0.0-rc.7 and 3.0.0-rc.8 and 3.0.0-rc.9 and 3.0.0-rc.10 and 3.0.0-rc.11 and 3.0.0-rc.12 and 3.0.0-rc.13 and 3.0.0-rc.14 and 3.0.0-rc.15 and 3.0.0-rc.16 and 3.0.0-rc.17 and 3.0.0-rc.18 and 3.0.0-rc.19 and 3.0.0-rc.20 and 3.0.0-rc.21 and 3.0.0-rc.22 and 3.0.0-rc.23 and 3.0.0-rc.24 and 3.0.0-rc.25 and 3.0.0-rc.26 and 3.0.0-rc.27 and 3.0.0-rc.28 and 3.0.0-rc.29 and 3.0.0-rc.31 and 3.0.0-rc.32 and 3.0.0-rc.33 and 3.0.0-rc.34 and 3.0.0-rc.35 and 3.0.0-rc.36 and 3.0.0-rc.37 and 3.0.0-rc.38 and 3.0.0-rc.39 and 3.0.0-rc.40 and 3.0.0-rc.41 and 3.0.0-rc.42 and 3.0.0-rc.43 and 3.0.0-rc.44 and 3.0.0-rc.45 and 3.0.0-rc.46 and 3.0.0 - 3.39.0

Summary

Aggregates in Ash skip the read policies of the records they read on several query paths, disclosing counts and values of hidden records

Details

Summary

Incorrect authorization vulnerability in Ash allows an actor to read counts, sums and attribute values of related records they cannot read via aggregates.

Ash.Actions.Read (lib/ash/actions/read/read.ex) authorized an aggregate in two passes. Ash.Filter.relationship_filters/7 built a policy filter for each relationship it found an aggregate reading, and authorize_aggregate/11 looked each filter up and applied none when it found none. An aggregate the first pass did not reach ran without its destination's read policy. That covered an aggregate or calculation given as the field: of Ash.aggregate/3, the aggregates inside a calculation used as an aggregate's field, an aggregate in another aggregate's filter, sort or join filter, and an aggregate in a combination or in the sort of an atomic bulk update or destroy. Ash.count/2, Ash.exists/2 and Ash.aggregate/3 also ignored a read policy that is decided against the records, and an aggregate reached on these paths over a multitenant resource required no tenant.

This issue affects ash: from 2.17.22 before 3.39.1.

Impact

An actor who may read a record asks for an aggregate over its related records, through Ash.aggregate/3, a stacked aggregate, or a filter or sort on one, and receives counts, sums or attribute values of related records that their read policy hides. Filtering an aggregate on a guessed value makes it a yes or no oracle for any attribute of a hidden record.

Configurations

Reachable when a resource has an aggregate over a relationship whose destination has a stricter read policy than the resource itself, and one of these holds: a caller can choose the field or the query: of an aggregate given to Ash.aggregate/3 (directly, through ash_lua read operations, or through the AshAi aggregate result type); the application defines an aggregate whose field is a calculation that uses an aggregate; or a caller can filter or sort on an aggregate that is the field, filter or sort of another aggregate. Ash.count/2, Ash.exists/2 and Ash.aggregate/3 over a resource whose own read policy is decided against the records are affected without further conditions.

Related Vulnerabilities

Other vulnerabilities affecting the same packages

Unknown
2 days ago
Atomic bulk update and destroy in Ash skip the read policies of related records in the filter, disclosing them through which rows change
2.17.20 - 3.0.0-rc.0 and 3.0.0-rc.1 and 3.0.0-rc.3 and 3.0.0-rc.4 and 3.0.0-rc.5 and 3.0.0-rc.6 and 3.0.0-rc.7 and 3.0.0-rc.8 and 3.0.0-rc.9 and 3.0.0-rc.10 and 3.0.0-rc.11 and 3.0.0-rc.12 and 3.0.0-rc.13 and 3.0.0-rc.14 and 3.0.0-rc.15 and 3.0.0-rc.16 and 3.0.0-rc.17 and 3.0.0-rc.18 and 3.0.0-rc.19 and 3.0.0-rc.20 and 3.0.0-rc.21 and 3.0.0-rc.22 and 3.0.0-rc.23 and 3.0.0-rc.24 and 3.0.0-rc.25 and 3.0.0-rc.26 and 3.0.0-rc.27 and 3.0.0-rc.28 and 3.0.0-rc.29 and 3.0.0-rc.31 and 3.0.0-rc.32 and 3.0.0-rc.33 and 3.0.0-rc.34 and 3.0.0-rc.35 and 3.0.0-rc.36 and 3.0.0-rc.37 and 3.0.0-rc.38 and 3.0.0-rc.39 and 3.0.0-rc.40 and 3.0.0-rc.41 and 3.0.0-rc.42 and 3.0.0-rc.43 and 3.0.0-rc.44 and 3.0.0-rc.45 and 3.0.0-rc.46 and 3.0.0 - 3.38.1 EEF-CVE-2026-137159
2.17.20 - 3.0.0-rc.0 and 3.0.0-rc.1 and 3.0.0-rc.3 and 3.0.0-rc.4 and 3.0.0-rc.5 and 3.0.0-rc.6 and 3.0.0-rc.7 and 3.0.0-rc.8 and 3.0.0-rc.9 and 3.0.0-rc.10 and 3.0.0-rc.11 and 3.0.0-rc.12 and 3.0.0-rc.13 and 3.0.0-rc.14 and 3.0.0-rc.15 and 3.0.0-rc.16 and 3.0.0-rc.17 and 3.0.0-rc.18 and 3.0.0-rc.19 and 3.0.0-rc.20 and 3.0.0-rc.21 and 3.0.0-rc.22 and 3.0.0-rc.23 and 3.0.0-rc.24 and 3.0.0-rc.25 and 3.0.0-rc.26 and 3.0.0-rc.27 and 3.0.0-rc.28 and 3.0.0-rc.29 and 3.0.0-rc.31 and 3.0.0-rc.32 and 3.0.0-rc.33 and 3.0.0-rc.34 and 3.0.0-rc.35 and 3.0.0-rc.36 and 3.0.0-rc.37 and 3.0.0-rc.38 and 3.0.0-rc.39 and 3.0.0-rc.40 and 3.0.0-rc.41 and 3.0.0-rc.42 and 3.0.0-rc.43 and 3.0.0-rc.44 and 3.0.0-rc.45 and 3.0.0-rc.46 and 3.0.0 - 3.38.1 EEF-CVE-2026-137159
Unknown
2 days ago
A runtime policy check in Ash decides on attributes it was not given, after a narrowed select or on an update or destroy
3.4.44 - 3.38.1 EEF-CVE-2026-135701
3.4.44 - 3.38.1 EEF-CVE-2026-135701
Unknown
2 days ago
forbid_if and authorize_unless in Ash allow exactly the records a runtime check should forbid
3.4.44 - 3.38.1 EEF-CVE-2026-126333
3.4.44 - 3.38.1 EEF-CVE-2026-126333
Unknown
11 days ago
Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types
3.24.0 - 3.38.0 EEF-CVE-2026-120299
3.24.0 - 3.38.0 EEF-CVE-2026-120299
Unknown
11 days ago
Code execution and SQL injection via struct-wrapped values in a forged keyset pagination cursor in Ash
3.31.3 - 3.37.7 EEF-CVE-2026-124283
3.31.3 - 3.37.7 EEF-CVE-2026-124283
View all vulnerabilities for these packages

Impacted packages

Timeline

Published
1 day ago
December 04, 2026 at 06:18 AM UTC
Fixed (3.39.1)
1 day ago
December 03, 2026 at 10:55 PM UTC
Last Modified
1 day ago
December 04, 2026 at 06:41 AM UTC