Hex
CVE-2026-126333
forbid_if and authorize_unless in Ash allow exactly the records a runtime check should forbid
- Severity
- High 7.4
- Published
- 3 Dec 2026
- Last changed
- 3 Dec 2026
- Added to UpHeron
- 3 Dec 2026
- Fixed in
- 3.39.0
- Attack
- Needs local access · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read data · Change data
- CVSS vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N- Sources
- CVE Program
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.
Affected software
| Software | Affected versions |
|---|---|
ashHex · osv:Hex:ash |
|
About ash
Vulnerabilities in ash
- In our list
- 8
- Published in the last 12 months
- 8
- Critical, last 12 months
- 0
- High, last 12 months
- 4
- Known exploited
- 0
- CVE-2026-137159Atomic bulk update and destroy in Ash skip the read policies of related records in the filter, disclosing them through which rows changeMedium 5.9 3 Dec 2026
- CVE-2026-135701A runtime policy check in Ash decides on attributes it was not given, after a narrowed select or on an update or destroyHigh 7.4 3 Dec 2026
- CVE-2026-120299Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field typesLow 2.1 24 Nov 2026
- CVE-2026-124283Code execution and SQL injection via struct-wrapped values in a forged keyset pagination cursor in AshHigh 8.9 24 Nov 2026
- CVE-2026-96581An upsert on the primary key in Ash ignores attribute multitenancy, so one tenant can read, overwrite and take over another tenant's recordsHigh 7.6 26 Oct 2026
- CVE-2026-114214Loading a through relationship with a limit of 1 in Ash ignores the through path and returns unrelated destination recordsMedium 6.0 25 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-126333