# EEF-CVE-2026-135701: A runtime policy check in Ash decides on attributes it was not given, after a narrowed select or on an update or destroy

- Database: EEF
- Published: 2026-12-03
- Modified: 2026-12-03

## Tracked as

- [CVE-2026-135701](https://cve.now/CVE-2026-135701.md): A runtime policy check in Ash decides on attributes it was not given, after a narrowed select or on an update or destroy

## Also published as

- [GHSA-85XV-49QM-66HH](https://cve.now/GHSA-85XV-49QM-66HH.md) (GitHub)

## Affected versions

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

## Description

## Summary

Incorrect Authorization vulnerability in ash-project ash allows an actor to read, update and destroy records that a runtime policy check forbids.

A policy check decided against the records (`check/4`) reads their attributes, but Ash did not always give it them. On a read that selected fewer attributes, `Ash.Policy.Authorizer` (`lib/ash/policy/authorizer/authorizer.ex`) passed the records with the other attributes as `%Ash.NotLoaded{}`, which is truthy. On an update or destroy, `Ash.Can` (`lib/ash/can.ex`) read the record again with an empty select, so on a data layer that honors `select` the check saw only the primary key and attribute defaults. A check that reads such an attribute decided on the placeholder or the default.

This issue affects ash: from 3.4.44 before 3.39.0.

## Impact

A client that can narrow the attributes a read selects, such as through a GraphQL query, reads records a runtime policy check should hide; on a SQL data layer, an actor updates or destroys records the check should protect.

## Workarounds

Write the check as an `expr(...)` filter check, which reads the rows again itself and is not affected.

## Configurations

Reachable when a policy uses a custom check whose `check/4` reads a record attribute (under `access_type :runtime`, or with a `strict_check/3` that returns `:unknown`), and either the caller can narrow the select of the read, as a GraphQL selection in AshGraphql, a sparse fieldset in AshJsonApi or `Ash.Query.select/2` does, or the check guards an update or destroy on a data layer that honors `select`, such as AshPostgres, from 3.33.0.

## References

- https://github.com/ash-project/ash/security/advisories/GHSA-85xv-49qm-66hh
- https://cna.erlef.org/cves/CVE-2026-135701.html
- https://github.com/ash-project/ash/commit/f4a8ff53fd3b974468d73685cd3fc842ef893de3
- https://github.com/ash-project/ash/commit/58e4243ad474272a6ebb11be3bf8956dcda439ba
- https://hex.pm/packages/ash

Page: https://cve.now/EEF-CVE-2026-135701

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