When a policy check cannot be decided up front or as a filter, Ash.Policy.Authorizer (lib/ash/policy/authorizer/authorizer.ex) runs its check/4 callback, which returns the records the check is true for. scenario_applies_to_record?/3 and scenario_impossible_by_data?/3 only asked whether a record was among them and ignored the value the policy needed. A policy that needs the check to be false, as forbid_if and authorize_unless do, therefore allowed exactly the records the check is true for and forbade the rest. Reads returned the records they should hide, and from 3.33.0 an update or destroy of a forbidden record succeeded.
This issue affects ash: from 3.4.44 before 3.39.0.
Analysis and contextual insights are available on OpenCVE Cloud.
Vendor Workaround
Write the check for the opposite condition and use it with authorize_if or forbid_unless, which are decided correctly.
Tracking
Sign in to view the affected projects.
No advisories yet.
Thu, 03 Dec 2026 06:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Incorrect Authorization vulnerability in ash-project ash allows an actor to read, update and destroy records that a policy forbids. When a policy check cannot be decided up front or as a filter, Ash.Policy.Authorizer (lib/ash/policy/authorizer/authorizer.ex) runs its check/4 callback, which returns the records the check is true for. scenario_applies_to_record?/3 and scenario_impossible_by_data?/3 only asked whether a record was among them and ignored the value the policy needed. A policy that needs the check to be false, as forbid_if and authorize_unless do, therefore allowed exactly the records the check is true for and forbade the rest. Reads returned the records they should hide, and from 3.33.0 an update or destroy of a forbidden record succeeded. This issue affects ash: from 3.4.44 before 3.39.0. | |
| Title | forbid_if and authorize_unless in Ash allow exactly the records a runtime check should forbid | |
| First Time appeared |
Ash-project
Ash-project ash |
|
| Weaknesses | CWE-863 | |
| CPEs | cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Ash-project
Ash-project ash |
|
| References |
|
|
| Metrics |
cvssV4_0
|
Status: PUBLISHED
Assigner: EEF
Published:
Updated: 2026-12-03T05:56:23.965Z
Reserved: 2026-12-03T01:30:37.703Z
Link: CVE-2026-126333
No data.
Status : Received
Published: 2026-12-03T06:17:57.193
Modified: 2026-12-03T06:17:57.193
Link: CVE-2026-126333
No data.
OpenCVE Enrichment
No data.
-
CWE-863
Incorrect Authorization