Every CVESearch/Get API key

CVE-2026-126333

forbid_if and authorize_unless in Ash allow exactly the records a runtime check should forbid (Hex)

Explain with AI
ChatGPTClaudeGoogle AI
Severity
7.4High
Local attack, no privileges, no user interactionCVSS 4.0, CVE List
Exploitation
Unknown
No source reports exploitation yet.
Exploit chance
0.18% in 30 days
Percentile8th
EPSS, scored
Listed fix
3.39.0 for ash
From 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:N

Exploit chance over time

Unchanged since Dec 3, 2026
EPSS score 0.18% every day from Dec 3, 2026 to Dec 4, 2026.

Affected

Packages 1

Affected packages
PackageAffectedFixed
ash
Hex
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 less
3.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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Changes recorded by Every CVE
DayChangedSources
ReferencesOSV
ReferencesOSV
Other IDs, published dateEUVD, OSV
SeverityNVD
Affected packages, other IDs, key facts, referencesOSV
First indexedCVE List

Upstream dates may differ.

References

MoveEnter Open