Read the docs

Ash aggregates skip read policies and disclose hidden record data

Priority MEDIUM 42CWE-863Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Security bypass
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-863.

Summary

The ash package from 2.17.22 before 3.39.1 has incorrect authorization (CWE-863) in which aggregates skip the read policies of the records they read on several query paths. An actor with local access can read counts, sums and attribute values of related records they cannot read. Ash.count/2, Ash.exists/2 and Ash.aggregate/3 also ignore read policies that are decided against the records.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

Description from the CNA

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.

Why it matters now

Fix Fixed ash (ash-project): 3.39.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
ash-projectash2.17.22 to before 3.39.13.39.1Patch availableCNA
  • ash Vendorash-project Affected 2.17.22 to before 3.39.1 Fixed in 3.39.1 Patch available CNA

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*———
  • cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:* Versions — — ·—

Remediation

Upgrade ash to version 3.39.1.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

  • Fix · CNA ash (ash-project) Fixed in 3.39.1

Timeline

  1. 2026-12-04 Threatist record created from CVE-2026-140867

References

  • TI-2026-56298 Query-complexity limit bypass via first/last pagination arguments in AshGraphql enables denial of service CVSS 4.0HIGH 8.7
  • TI-2026-52572 Unbounded atom creation from client-supplied RPC field names in AshTypescript field formatter CVSS 4.0HIGH 8.7
  • TI-2026-57010 Path traversal in AshAdmin file uploads via unsanitized client filename CVSS 4.0HIGH 8.3
  • TI-2026-26840 Ash Framework: Ash.Type.Module.cast_input/2 atom exhaustion via unchecked Module.concat allows BEAM VM crash CVSS 4.0HIGH 8.2
  • TI-2026-97077 Code execution and SQL injection via forged Ash keyset cursor CVSS 4.0HIGH 8.9
  • TI-2026-54252 EEx template evaluation of prompt content in AshAi enables remote code execution CVSS 4.0HIGH 8.9
See all 98 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences