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.
This issue affects ash: from 2.17.20 before 3.39.0.
A caller who controls the filter of an atomic bulk update or destroy tests conditions against related records hidden from them and recovers their existence and attribute values from which rows change.
On 3.5.0 and later, pass strategy: :stream, which reads the records with the related read policies applied.
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.
{
"$schema": "https://cna.erlef.org/schemas/osv/record-0.1.0.json",
"capec_ids": [
"CAPEC-1"
],
"cpe_ids": [
"cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"
],
"cwe_ids": [
"CWE-863"
]
}{
"$schema": "https://cna.erlef.org/schemas/osv/affected-0.1.0.json",
"modules": [
"'Elixir.Ash.Actions.Update.Bulk'",
"'Elixir.Ash.Actions.Destroy.Bulk'"
],
"program_files": [
"lib/ash/actions/update/bulk.ex",
"lib/ash/actions/destroy/bulk.ex"
],
"program_routines": [
"'Elixir.Ash.Actions.Update.Bulk':do_atomic_update/5",
"'Elixir.Ash.Actions.Destroy.Bulk':do_atomic_destroy/5"
]
}
"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"
[
"'Elixir.Ash.Actions.Update.Bulk'",
"'Elixir.Ash.Actions.Destroy.Bulk'"
]
[
"lib/ash/actions/update/bulk.ex",
"lib/ash/actions/destroy/bulk.ex"
]
[
"'Elixir.Ash.Actions.Update.Bulk':do_atomic_update/5",
"'Elixir.Ash.Actions.Destroy.Bulk':do_atomic_destroy/5"
]
"https://cna.erlef.org/osv/EEF-CVE-2026-137159.json"
"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"
[
"'Elixir.Ash.Actions.Update.Bulk'",
"'Elixir.Ash.Actions.Destroy.Bulk'"
]
[
"lib/ash/actions/update/bulk.ex",
"lib/ash/actions/destroy/bulk.ex"
]
[
"'Elixir.Ash.Actions.Update.Bulk':do_atomic_update/5",
"'Elixir.Ash.Actions.Destroy.Bulk':do_atomic_destroy/5"
]
"https://cna.erlef.org/osv/EEF-CVE-2026-137159.json"