{"id":"CVE-2026-101028","state":"PUBLISHED","title":"Ash.count, Ash.exists and Ash.aggregate skip related resources' read policies in filters and sorts","description":"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.","publishedAt":"2026-10-09T07:01:06.470Z","updatedAt":"2026-10-09T18:04:24.729Z","severity":{"score":6,"label":"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","source":"EEF"},"assigner":"EEF","products":["ash-project ash"],"affected":[{"vendor":"ash-project","product":"ash","packageName":"ash","packageURL":"pkg:hex/ash","defaultStatus":"unaffected","versions":[{"version":"2.6.0","status":"affected","lessThan":"3.34.6","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"],"modules":["'Elixir.Ash.Actions.Aggregate'","'Elixir.Ash'"],"programFiles":["lib/ash/actions/aggregate.ex","lib/ash.ex"],"programRoutines":[{"name":"'Elixir.Ash.Actions.Aggregate':run/4"},{"name":"'Elixir.Ash':count/2"},{"name":"'Elixir.Ash':exists/2"},{"name":"'Elixir.Ash':aggregate/3"}],"repo":"https://github.com/ash-project/ash"},{"vendor":"ash-project","product":"ash","packageName":"ash-project/ash","packageURL":"pkg:github/ash-project/ash","defaultStatus":"unaffected","versions":[{"version":"30eaf1c6e8524527b703e3c4bfeff7967ee0b37c","status":"affected","lessThan":"80936187b27ee94f15cd875affd3141b5cb23185","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"],"modules":["'Elixir.Ash.Actions.Aggregate'","'Elixir.Ash'"],"programFiles":["lib/ash/actions/aggregate.ex","lib/ash.ex"],"programRoutines":[{"name":"'Elixir.Ash.Actions.Aggregate':run/4"},{"name":"'Elixir.Ash':count/2"},{"name":"'Elixir.Ash':exists/2"},{"name":"'Elixir.Ash':aggregate/3"}],"repo":"https://github.com/ash-project/ash"}],"references":["https://github.com/ash-project/ash/security/advisories/GHSA-xj24-8f5c-pp5p","https://cna.erlef.org/cves/CVE-2026-101028.html","https://osv.dev/vulnerability/EEF-CVE-2026-101028","https://github.com/ash-project/ash/commit/30eaf1c6e8524527b703e3c4bfeff7967ee0b37c","https://github.com/ash-project/ash/commit/80936187b27ee94f15cd875affd3141b5cb23185"],"weaknesses":["CWE-863"],"ingestedAt":"2026-10-29T20:10:13.529Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/101xxx/CVE-2026-101028.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-101028","state":"PUBLISHED","datePublished":"2026-10-09T07:01:06.470Z","dateUpdated":"2026-10-09T18:04:24.729Z","assignerShortName":"EEF","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateReserved":"2026-10-08T15:45:02.376Z"},"containers":{"cna":{"title":"Ash.count, Ash.exists and Ash.aggregate skip related resources' read policies in filters and sorts","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"ash-project","product":"ash","packageName":"ash","packageURL":"pkg:hex/ash","defaultStatus":"unaffected","versions":[{"version":"2.6.0","status":"affected","lessThan":"3.34.6","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"],"modules":["'Elixir.Ash.Actions.Aggregate'","'Elixir.Ash'"],"programFiles":["lib/ash/actions/aggregate.ex","lib/ash.ex"],"programRoutines":[{"name":"'Elixir.Ash.Actions.Aggregate':run/4"},{"name":"'Elixir.Ash':count/2"},{"name":"'Elixir.Ash':exists/2"},{"name":"'Elixir.Ash':aggregate/3"}],"repo":"https://github.com/ash-project/ash"},{"vendor":"ash-project","product":"ash","packageName":"ash-project/ash","packageURL":"pkg:github/ash-project/ash","defaultStatus":"unaffected","versions":[{"version":"30eaf1c6e8524527b703e3c4bfeff7967ee0b37c","status":"affected","lessThan":"80936187b27ee94f15cd875affd3141b5cb23185","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"],"modules":["'Elixir.Ash.Actions.Aggregate'","'Elixir.Ash'"],"programFiles":["lib/ash/actions/aggregate.ex","lib/ash.ex"],"programRoutines":[{"name":"'Elixir.Ash.Actions.Aggregate':run/4"},{"name":"'Elixir.Ash':count/2"},{"name":"'Elixir.Ash':exists/2"},{"name":"'Elixir.Ash':aggregate/3"}],"repo":"https://github.com/ash-project/ash"}],"references":[{"url":"https://github.com/ash-project/ash/security/advisories/GHSA-xj24-8f5c-pp5p","name":"GHSA-xj24-8f5c-pp5p","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-101028.html","name":"EEF CNA record for CVE-2026-101028","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-101028","name":"OSV record EEF-CVE-2026-101028","tags":["related"]},{"url":"https://github.com/ash-project/ash/commit/30eaf1c6e8524527b703e3c4bfeff7967ee0b37c","name":"Introducing commit 30eaf1c in ash-project/ash","tags":["related"]},{"url":"https://github.com/ash-project/ash/commit/80936187b27ee94f15cd875affd3141b5cb23185","name":"Fix commit 8093618 in ash-project/ash","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6,"baseSeverity":"MEDIUM","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-863","description":"CWE-863 Incorrect Authorization","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"EEF","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateUpdated":"2026-10-09T07:01:06.470Z"},"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Reachable only when an application passes caller-supplied filters or sorts that cross a relationship into <code>Ash.count/2</code>, <code>Ash.exists/2</code> or <code>Ash.aggregate/3</code> (directly, through ash_lua read operations, or through AshAi count, exists or aggregate result types), and a related resource's read policy is stricter than the root resource's.</p>"},{"base64":false,"type":"text/markdown","value":"Reachable only when an application passes caller-supplied filters or sorts that cross a relationship into `Ash.count/2`, `Ash.exists/2` or `Ash.aggregate/3` (directly, through ash_lua read operations, or through AshAi count, exists or aggregate result types), and a related resource's read policy is stricter than the root resource's."}],"value":"Reachable only when an application passes caller-supplied filters or sorts that cross a relationship into Ash.count/2, Ash.exists/2 or Ash.aggregate/3 (directly, through ash_lua read operations, or through AshAi count, exists or aggregate result types), and a related resource's read policy is stricter than the root resource's."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*","versionEndExcluding":"3.34.6","versionStartIncluding":"2.6.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"reporter","value":"Glenn Rempe"},{"lang":"en","type":"finder","value":"Glenn Rempe"},{"lang":"en","type":"remediation developer","value":"Zach Daniel / Ash Project"}],"dateAssigned":"2026-10-09T00:19:31.000Z","impacts":[{"capecId":"CAPEC-1","descriptions":[{"lang":"en","value":"CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs"}]}],"source":{"discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/ash-project/ash/security/advisories/GHSA-xj24-8f5c-pp5p","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-09T18:03:54.666261Z","id":"CVE-2026-101028","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-09T18:04:24.729Z"}}]}}}