{"id":"CVE-2026-101028","published":"2026-10-09T07:01:06Z","modified":"2026-11-19T08:22:04Z","title":"Ash.count, Ash.exists and Ash.aggregate skip related resources' read policies in filters and sorts","vendor":"ash-project","product":"ash","tier":"tail","description":{"text":"Incorrect Authorization vulnerability in ash-project ash allows an actor to infer data in related records they cannot read via Ash.count/2, Ash.exists/2 and Ash.aggregate/3.\n\nAsh.Actions.Aggregate.run/4 (lib/ash/actions/aggregate.ex) applied only the root resource's read policy before running the aggregate query. The read path also applies each related resource's read policy to filter and sort references that cross a relationship, directly (for example comments.body) or through an aggregate over one, but the aggregate path skipped that step. A caller whose filter or sort reaches these functions, for example through Ash.Query.filter_input/2, an ash_lua script, or an AshAi tool offering count or exists results, can test conditions against related rows hidden from them and recover their existence and attribute values one query at a time. Ash.read/2 and its page counts are not affected.\n\nThis issue affects ash: from 2.6.0 before 3.34.6.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00341,"percentile":0.28334,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/ash-project/ash/security/advisories/GHSA-xj24-8f5c-pp5p","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-101028.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-101028","tags":["related"]},{"url":"https://github.com/ash-project/ash/commit/30eaf1c6e8524527b703e3c4bfeff7967ee0b37c","tags":["related"]},{"url":"https://github.com/ash-project/ash/commit/80936187b27ee94f15cd875affd3141b5cb23185","tags":["patch"]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":5.67},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"ash-project","affectedVersions":[{"vendor":"ash-project","product":"ash","versions":[">= 2.6.0, < 3.34.6"]},{"vendor":"ash-project","product":"ash","versions":[">= 30eaf1c6e8524527b703e3c4bfeff7967ee0b37c, < 80936187b27ee94f15cd875affd3141b5cb23185"]}],"capec":[{"id":"CAPEC-1","name":"Accessing Functionality Not Properly Constrained by ACLs"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-09T18:03:54.666261Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-95511","exploited":false,"provenance":"source"}}