All vulnerabilities
CVE-2026-101028GHSA-xj24-8f5c-pp5p

Ash.count, Ash.exists and Ash.aggregate skip related resources' read policies in filters and sorts

ash-project ash
CVSS
6.0Medium
ExploitationPublic exploit codeCISA's assessment says proof of concept code is public, assessed 9 Oct 2026. Not in the KEV catalogCISA via CVE List
Exploit odds (EPSS)0.27%Chance of exploitation activity in the next 30 days, higher than 18% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in3.34.6Also 80936187b27ee94f15cd875affd3141b5cb23185CVE List
Published9 Oct 2026Updated 9 Oct 2026CVE List

What fixes it

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

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.

Ash.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.

This issue affects ash: from 2.6.0 before 3.34.6.

Text from GitHub Advisory Database

Affected versions 3

  • ashaffected: 2.6.0 before 3.34.6CVE List
  • ashaffected: 30eaf1c6e8524527b703e3c4bfeff7967ee0b37c before 80936187b27ee94f15cd875affd3141b5cb23185CVE List
  • ash, erlang>= 2.6.0, < 3.34.6GitHub

References 5