CVE-2026-126333
forbid_ if and authorize_ unless in Ash allow exactly the records a runtime check should forbid (Hex)
- Severity
- 7.4HighLocal attack, no privileges, no user interactionCVSS 4.0, CVE List
- Exploitation
- UnknownNo source reports exploitation yet.
- Exploit chance
- 0.18% in 30 daysPercentile8thEPSS, scored
- Listed fix
3.39.0for ashFrom OSV
Overview
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.
CVSS 4.0 vector
Exploitability
- Attack vector
- Local
- Complexity
- Low
- Attack requirements
- Present
- Privileges needed
- None
- User interaction
- None
Impact on the vulnerable system
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Impact on subsequent systems
- Confidentiality
- None
- Integrity
- None
- Availability
- None
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NExploit chance over time
Affected
Packages 1
| Package | Affected | Fixed |
|---|---|---|
ashHex | 3.4.44 up to 3.39.0, plus listed versions 3.10.03.10.13.11.03.11.13.11.2 Show 45 more versionsShow less3.11.33.12.03.13.03.13.13.13.23.14.03.14.13.15.03.16.03.17.03.17.13.18.03.19.03.19.13.19.23.19.33.20.03.21.03.21.13.21.23.21.33.22.03.22.13.22.23.23.03.23.13.24.03.24.13.24.23.24.33.24.43.24.53.24.63.24.73.25.03.25.13.25.23.26.03.27.03.27.13.27.23.27.33.27.43.27.53.27.6 | 3.39.0 |
The JSON record also has 136 more versions.
Products 1
Sources
CVE List Score usedCVSS 4.07.4
forbid_if and authorize_unless in Ash allow exactly the records a runtime check should forbid
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.
- Record
CVE-2026-126333- CVSS 4.0
- 7.4 High
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 - Weakness
- CWE-863
- Updated
- 2026-12-04
EUVDEUVD-2026-142383CVSS 4.07.4
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.
- Record
EUVD-2026-142383- CVSS 4.0
- 7.4 High
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 - Updated
- 2026-12-03
NVDCVSS 4.07.4
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.
- Record
CVE-2026-126333- CVSS 4.0
- 7.4 High
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Weakness
- CWE-863
- Updated
- 2026-12-04
OSVCVSS 4.07.4
forbid_if and authorize_unless in Ash allow exactly the records a runtime check should forbid
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.
- Record
CVE-2026-126333- CVSS 4.0
- 7.4 High
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 - Weakness
- CWE-863
- Updated
- 2026-12-03
OSVEEF-CVE-2026-126333CVSS 4.07.4
forbid_if and authorize_unless in Ash allow exactly the records a runtime check should forbid
Summary
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.
Impact
An actor reads, updates or destroys records that a forbid_if or authorize_unless policy should keep from them, while the records the policy allows are refused.
Workarounds
Write the check for the opposite condition and use it with authorize_if or forbid_unless, which are decided correctly.
Configurations
Reachable when a policy needs a check to be false for a record to be allowed (forbid_if, authorize_unless, or a policy condition) and that check is decided against the records: a custom check whose strict_check/3 returns :unknown under access_type :runtime, a filter check whose auto_filter/3 returns :unknown, or an expr(...) check that a runtime policy leaves to the records.
- Record
EEF-CVE-2026-126333- CVSS 4.0
- 7.4 High
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 - Weakness
- CWE-863
- Updated
- 2026-12-03
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| References | OSV | |
| References | OSV | |
| Other IDs, published date | EUVD, OSV | |
| Severity | NVD | |
| Affected packages, other IDs, key facts, references | OSV | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/ash-project/ash/security/advisories/GHSA-82c8-2w33-xggc
cna.erlef.org/cves/CVE-2026-126333.html
osv.dev/vulnerability/EEF-CVE-2026-126333
github.com/ash-project/ash/commit/f4a8ff53fd3b974468d73685cd3fc842ef893de3
github.com/ash-project/ash/commit/dd175966a12551997b4c091f59a00312b2b0562b
github.com
repo.hex.pm
github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126333.json
nvd.nist.gov/vuln/detail/CVE-2026-126333
github.com/ash-project/ash
hex.pm/packages/ash