CVE-2026-140867
Aggregates in Ash skip the read policies of the records they read on several query paths, disclosing counts and values of hidden records (Hex)
- Severity
- 5.9MediumLocal attack, no privileges, no user interactionCVSS 4.0, CVE List
- Exploitation
- UnknownNo source reports exploitation yet.
- Exploit chance
- 0.24% in 30 daysPercentile15thEPSS, scored
- Listed fix
3.39.1for ashFrom OSV
Overview
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.
CVSS 4.0 vector
Exploitability
- Attack vector
- Local
- Complexity
- Low
- Attack requirements
- Present
- Privileges needed
- None
- User interaction
- None
Impact on the vulnerable system
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Impact on subsequent systems
- Confidentiality
- None
- Integrity
- None
- Availability
- None
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NExploit chance over time
Scored once so far, on . The trend appears after a second daily score.
Affected
Packages 1
| Package | Affected | Fixed |
|---|---|---|
ashHex | 2.17.22 up to 3.39.1, plus listed versions 2.17.232.17.242.18.02.18.12.18.2 Show 45 more versionsShow less2.19.02.19.12.19.102.19.112.19.122.19.132.19.142.19.22.19.32.19.42.19.52.19.62.19.72.19.82.19.92.20.02.20.12.20.22.20.32.21.02.21.12.21.102.21.112.21.122.21.132.21.142.21.152.21.22.21.32.21.42.21.52.21.62.21.72.21.82.21.93.0.03.0.0-rc.03.0.0-rc.13.0.0-rc.103.0.0-rc.113.0.0-rc.123.0.0-rc.133.0.0-rc.143.0.0-rc.153.0.0-rc.16 | 3.39.1 |
The JSON record also has 304 more versions.
Products 1
Sources
CVE List Score usedCVSS 4.05.9
Aggregates in Ash skip the read policies of the records they read on several query paths, disclosing counts and values of hidden records
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.
- Record
CVE-2026-140867- CVSS 4.0
- 5.9 Medium
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-863
- Updated
- 2026-12-04
EUVDEUVD-2026-144041CVSS 4.05.9
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.
- Record
EUVD-2026-144041- CVSS 4.0
- 5.9 Medium
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - Updated
- 2026-12-04
NVDCVSS 4.05.9
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.
- Record
CVE-2026-140867- CVSS 4.0
- 5.9 Medium
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/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 - Weakness
- CWE-863
- Updated
- 2026-12-04
OSVCVSS 4.05.9
Aggregates in Ash skip the read policies of the records they read on several query paths, disclosing counts and values of hidden records
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.
- Record
CVE-2026-140867- CVSS 4.0
- 5.9 Medium
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-863
- Updated
- 2026-12-04
OSVEEF-CVE-2026-140867CVSS 4.05.9
Aggregates in Ash skip the read policies of the records they read on several query paths, disclosing counts and values of hidden records
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.
- Record
EEF-CVE-2026-140867- CVSS 4.0
- 5.9 Medium
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-863
- Updated
- 2026-12-04
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| References | OSV | |
| References | OSV | |
| Other IDs, published date | EUVD | |
| Severity | NVD | |
| Affected packages, other IDs, key facts, references | OSV | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/ash-project/ash/security/advisories/GHSA-x7q7-6hpv-55jq
cna.erlef.org/cves/CVE-2026-140867.html
osv.dev/vulnerability/EEF-CVE-2026-140867
github.com/ash-project/ash/commit/a12131cf70872e33d881c2c7c5d65cf9d2b5fb34
github.com/ash-project/ash/commit/42ee4418dfc968c1c5779dd928c878822f88a866
github.com
repo.hex.pm
github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140867.json
nvd.nist.gov/vuln/detail/CVE-2026-140867
github.com/ash-project/ash
hex.pm/packages/ash