# GHSA-HG4M-9GG5-R5HJ: Atomic bulk update and destroy in Ash skip the read policies of related records in the filter, disclosing them through which rows change

- Database: GitHub
- Severity: CVSS 5.9 (Medium)
- Published: 2026-12-03
- Modified: 2026-12-03

## Tracked as

- [CVE-2026-137159](https://cve.now/CVE-2026-137159.md): Atomic bulk update and destroy in Ash skip the read policies of related records in the filter, disclosing them through which rows change

## Affected versions

- ash (Hex): from 2.17.20, fixed in 3.39.0

## Description

Incorrect Authorization vulnerability in ash-project ash allows an actor to learn about related records they cannot read from which rows an atomic bulk update or destroy changes.

`Ash.Actions.Update.Bulk` (`lib/ash/actions/update/bulk.ex`) and `Ash.Actions.Destroy.Bulk` (`lib/ash/actions/destroy/bulk.ex`) authorized the query of an atomic bulk update or destroy with the resource's own read policy, but did not add the read policies of the related records its filter references. A read of the same query adds them, for relationship references from `Ash.Query.filter_input/2` and for aggregates. A caller who controls the filter could therefore match rows on related data they cannot read, one condition at a time. The rows changed are rows the caller may change anyway.

### Configurations

Reachable when a caller controls the filter of a query given to `Ash.bulk_update/4` or `Ash.bulk_destroy/4`, or to a code interface, through `Ash.Query.filter_input/2` or a filter on an aggregate, and the call allows the `:atomic` strategy, which is the default for a query.

### Workarounds

On 3.5.0 and later, pass `strategy: :stream`, which reads the records with the related read policies applied.

### Patches

Fixed in ash 3.39.0.

## References

- https://github.com/ash-project/ash/security/advisories/GHSA-hg4m-9gg5-r5hj

Page: https://cve.now/GHSA-HG4M-9GG5-R5HJ

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
