{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.Ash.Policy.Authorizer'"],"packageName":"ash","packageURL":"pkg:hex/ash","product":"ash","programFiles":["lib/ash/policy/authorizer/authorizer.ex"],"programRoutines":[{"name":"'Elixir.Ash.Policy.Authorizer':scenario_applies_to_record?/3"},{"name":"'Elixir.Ash.Policy.Authorizer':scenario_impossible_by_data?/3"}],"repo":"https://github.com/ash-project/ash","vendor":"ash-project","versions":[{"lessThan":"3.39.0","status":"affected","version":"3.4.44","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.Ash.Policy.Authorizer'"],"packageName":"ash-project/ash","packageURL":"pkg:github/ash-project/ash","product":"ash","programFiles":["lib/ash/policy/authorizer/authorizer.ex"],"programRoutines":[{"name":"'Elixir.Ash.Policy.Authorizer':scenario_applies_to_record?/3"},{"name":"'Elixir.Ash.Policy.Authorizer':scenario_impossible_by_data?/3"}],"repo":"https://github.com/ash-project/ash","vendor":"ash-project","versions":[{"lessThan":"dd175966a12551997b4c091f59a00312b2b0562b","status":"affected","version":"f4a8ff53fd3b974468d73685cd3fc842ef893de3","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Reachable when a policy needs a check to be false for a record to be allowed (<code>forbid_if</code>, <code>authorize_unless</code>, or a policy condition) and that check is decided against the records: a custom check whose <code>strict_check/3</code> returns <code>:unknown</code> under <code>access_type :runtime</code>, a filter check whose <code>auto_filter/3</code> returns <code>:unknown</code>, or an <code>expr(...)</code> check that a runtime policy leaves to the records.</p>"},{"base64":false,"type":"text/markdown","value":"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."}],"value":"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."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*","versionEndExcluding":"3.39.0","versionStartIncluding":"3.4.44","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Glenn Rempe"},{"lang":"en","type":"reporter","value":"Glenn Rempe"},{"lang":"en","type":"remediation developer","value":"Glenn Rempe"},{"lang":"en","type":"remediation reviewer","value":"Zach Daniel / Ash Project"}],"dateAssigned":"2026-12-03T01:31:03.000Z","datePublic":"2026-12-03T05:56:19.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Incorrect Authorization vulnerability in ash-project ash allows an actor to read, update and destroy records that a policy forbids.</p>\n<p>When a policy check cannot be decided up front or as a filter, <code>Ash.Policy.Authorizer</code> (<code>lib/ash/policy/authorizer/authorizer.ex</code>) runs its <code>check/4</code> callback, which returns the records the check is true for. <code>scenario_applies_to_record?/3</code> and <code>scenario_impossible_by_data?/3</code> 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 <code>forbid_if</code> and <code>authorize_unless</code> 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.</p>\n<p>This issue affects ash: from 3.4.44 before 3.39.0.</p>"},{"base64":false,"type":"text/markdown","value":"Incorrect Authorization vulnerability in ash-project ash allows an actor to read, update and destroy records that a policy forbids.\n\nWhen 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.\n\nThis issue affects ash: from 3.4.44 before 3.39.0."}],"value":"Incorrect Authorization vulnerability in ash-project ash allows an actor to read, update and destroy records that a policy forbids.\n\nWhen 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.\n\nThis issue affects ash: from 3.4.44 before 3.39.0."}],"impacts":[{"capecId":"CAPEC-1","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>An actor reads, updates or destroys records that a <code>forbid_if</code> or <code>authorize_unless</code> policy should keep from them, while the records the policy allows are refused.</p>"},{"base64":false,"type":"text/markdown","value":"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."}],"value":"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."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"LOCAL","baseScore":7.4,"baseSeverity":"HIGH","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-863","description":"CWE-863 Incorrect Authorization","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-12-03T05:56:23.965Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"name":"`forbid_if` and `authorize_unless` in Ash allow exactly the records a runtime check should forbid","tags":["vendor-advisory","related"],"url":"https://github.com/ash-project/ash/security/advisories/GHSA-82c8-2w33-xggc"},{"name":"EEF CNA record for CVE-2026-126333","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-126333.html"},{"name":"OSV record EEF-CVE-2026-126333","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-126333"},{"name":"Introducing commit f4a8ff5 in ash-project/ash","tags":["related"],"url":"https://github.com/ash-project/ash/commit/f4a8ff53fd3b974468d73685cd3fc842ef893de3"},{"name":"Fix commit dd17596 in ash-project/ash","tags":["patch"],"url":"https://github.com/ash-project/ash/commit/dd175966a12551997b4c091f59a00312b2b0562b"}],"source":{"discovery":"EXTERNAL"},"title":"forbid_if and authorize_unless in Ash allow exactly the records a runtime check should forbid","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Write the check for the opposite condition and use it with <code>authorize_if</code> or <code>forbid_unless</code>, which are decided correctly.</p>"},{"base64":false,"type":"text/markdown","value":"Write the check for the opposite condition and use it with `authorize_if` or `forbid_unless`, which are decided correctly."}],"value":"Write the check for the opposite condition and use it with authorize_if or forbid_unless, which are decided correctly."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-126333","datePublished":"2026-12-03T05:56:23.965Z","dateReserved":"2026-12-03T01:30:37.703Z","dateUpdated":"2026-12-03T05:56:23.965Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}