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.
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.
Metrics
Affected Vendors & Products
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Fri, 04 Dec 2026 06:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | Aggregates in Ash skip the read policies of the records they read on several query paths, disclosing counts and values of hidden records | |
| First Time appeared |
Ash-project
Ash-project ash |
|
| Weaknesses | CWE-863 | |
| CPEs | cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Ash-project
Ash-project ash |
|
| References |
|
|
| Metrics |
cvssV4_0
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: EEF
Published:
Updated: 2026-12-04T06:18:11.171Z
Reserved: 2026-12-03T01:31:03.629Z
Link: CVE-2026-140867
No data.
No data.
No data.
OpenCVE Enrichment
No data.
Weaknesses