Security mailing lists by PureSourceCode

CVE-2026-140867

MEDIUM 5.9CVSS 4.0

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.

Published
4 Dec 2026
Last modified
4 Dec 2026
Assigned by
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
NVD status
Received
Weakness
CWE-863
Also known as
EEF-CVE-2026-140867GHSA-x7q7-6hpv-55jq
Sources
NVDJSONCVE ListJSONOSV EEF-CVE-2026-140867JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 6b3ad84c-e1a6-4bf7-a703-f496b71e49db (Secondary) CVSS 4.0 MEDIUM 5.9 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
CVE List EEF CVSS 4.0 MEDIUM 5.9 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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List https://repo.hex.pm ash
cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*
>= 2.17.22, < 3.39.1 3.39.1
CVE List https://github.com ash-project/ash
cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*
>= a12131cf70872e33d881c2c7c5d65cf9d2b5fb34, < 42ee4418dfc968c1c5779dd928c878822f88a866 42ee4418dfc968c1c5779dd928c878822f88a866
OSV Hex ash >= 2.17.22, < 3.39.1 3.39.1

References

History

  • 4 Dec 2026 09:09 UTC · NVD: first stored (published 4 Dec 2026)
  • 4 Dec 2026 07:09 UTC · OSV: first stored (published 4 Dec 2026)
  • 4 Dec 2026 06:56 UTC · CVE List: first stored (published 4 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.