8.6high
Bypass and runtime policies that can never pass may be incorrectly applied in filter authorization
- Severity
- 8.6high CVSS:4.0 by EEF
- Exploit likelihood
- 0.46% (higher than 41% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- EEF
- Also known as
- GHSA-7r7f-9xpj-jmr7EEF-CVE-2025-48043
Description
Incorrect Authorization vulnerability in ash-project ash allows Authentication Bypass. This issue affects ash: from 0.1.1 before 3.6.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ash | from 0.1.1 before 3.6.2 | CVE List |
| ash-project/ash | from 4c41344126b0aba09ec3085517000f8aefec299e before 66d81300065b970da0d2f4528354835d2418c7ae | CVE List |
| ash (Hex) | before 3.6.2, from 0.1.1 before 3.6.2 | GitHub Advisory Database, Erlang Ecosystem Foundation |
| https://github.com/ash-project/ash | from 4c41344126b0aba09ec3085517000f8aefec299e before 66d81300065b970da0d2f4528354835d2418c7ae | Erlang Ecosystem Foundation |
All scores
| EEF | 8.6high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| Erlang Ecosystem Foundation | Not scored CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Incorrect Authorization vulnerability in ash-project ash allows Authentication Bypass. This issue affects ash: from 0.1.1 before 3.6.2.
GitHub Advisory Database
Summary
When using filter authorization, two edge cases could cause the policy compiler/authorizer to generate a permissive filter:
-
Bypass policies whose condition can never pass at runtime were compiled as
OR(AND(condition, compiled_policies), NOT(condition)). If the condition could never be true at runtime, theNOT(condition)branch evaluated truthy and the overall expression became permissive. -
Runtime policy scenarios that reduce to “no checks are applicable” (an empty SAT scenario) were treated as an empty clause and dropped instead of being treated as
false, which could again produce an overly broad (permissive) filter.
These bugs could allow reads to return records that should have been excluded by policy.
Impact
Projects that rely on filter-based authorization and define:
bypass ... do ... endblocks whose condition(s) are only resolvable at runtime and can never pass in a given request context, or- runtime checks that simplify to an empty scenario for a clause
may unintentionally generate a permissive query filter, potentially returning unauthorized data.
Actions primarily affected: reads guarded by filter policies. Non-filter (e.g., hard forbid) policies are not impacted.
Technical details
This patch corrects two behaviors:
-
Ash.Policy.Policy.compile_policy_expression/1now treats bypass blocks asAND(condition_expression, compiled_policies)instead ofOR(AND(...), NOT(condition_expression)). This removes the permissiveNOT(condition)escape hatch when a bypass condition never passes. -
Ash.Policy.Authorizernow treats empty SAT scenarios (scenario == %{}) asfalse, ensuring impossible scenarios do not collapse into a no-op and inadvertently widen the filter. The reducer also normalizesnil→falseconsistently when buildingauto_filterfragments.
Relevant changes are in:
lib/ash/policy/policy.ex(bypass compilation)lib/ash/policy/authorizer/authorizer.ex(scenario handling / auto_filter normalization)- Tests added:
test/policy/filter_condition_test.exs(RuntimeFalsyCheck,RuntimeBypassResource) validate the corrected behavior.
Workarounds
- Avoid
bypasspolicies whose conditions are only decidable at runtime and may be perpetually false in some contexts; prefer explicitauthorize_if/forbid_ifblocks withoutbypassfor those cases. - Add an explicit final
forbid_if always()guard for sensitive reads as a belt-and-suspenders fallback until user can upgrade. - Where feasible, replace runtime-unknown checks with strict/compile-time checks or restructure to avoid empty SAT scenarios.
How to tell if user is affected
User is likely affected if ALL of the following are true:
- Uses filter authorization; and
- Defines
bypassblock withaccess_type :runtimewithout any policies after it; or - Defines
bypassblocks whose conditions are evaluated at runtime (e.g., checks withstrict_check/3returning:unknownand a runtimecheck/4that may never succeed in some contexts) without any policies after it
A quick sanity test is to issue a read expected to return no rows under such a bypass or runtime-falsy condition and verify it indeed returns []. The included test bypass works with filter policies demonstrates the corrected, non-permissive behavior.
Erlang Ecosystem Foundation
Summary
Incorrect Authorization vulnerability in ash-project ash allows Authentication Bypass.
This issue affects ash: from 0.1.1 before 3.6.2.
NVD (es)
Vulnerabilidad de autorización incorrecta en ash-project ash permite la omisión de autenticación. Esta vulnerabilidad está asociada con los archivos de programa lib/ash/policy/authorizer/authorizer.ex y las rutinas de programa 'Elixir.Ash.Policy.Authorizer':strict_filters/2. Este problema afecta a ash: desde pkg:hex/ash@0 antes de pkg:hex/ash@3.6.2, antes de 3.6.2, antes de 66d81300065b970da0d2f4528354835d2418c7ae.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-48043 changed 2026-11-19 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7r7f-9xpj-jmr7 changed 2026-04-06 | CC-BY-4.0 |
| Erlang Ecosystem Foundation | EEF-CVE-2025-48043 changed 2026-11-25 | CC-BY-4.0 |
| NVD | CVE-2025-48043 changed 2026-10-19 | Public domain |