CVE-2025-48043

CVE-2025-48043 is a high-severity incorrect authorization vulnerability in ash (erlang), affecting versions < 3.6.2. It is fixed in 3.6.2.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

Ash Framework: Filter authorization misapplies impossible bypass/runtime policies

When using filter authorization, two edge cases could cause the policy compiler/authorizer to generate a permissive filter:

  1. 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, the NOT(condition) branch evaluated truthy and the overall expression became permissive.

  2. 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.

Technical details

This patch corrects two behaviors:

  • Ash.Policy.Policy.compile_policy_expression/1 now treats bypass blocks as
    AND(condition_expression, compiled_policies)
    instead of OR(AND(...), NOT(condition_expression)). This removes the permissive NOT(condition) escape hatch when a bypass condition never passes.

  • Ash.Policy.Authorizer now treats empty SAT scenarios (scenario == %{}) as false, ensuring impossible scenarios do not collapse into a no-op and inadvertently widen the filter. The reducer also normalizes nilfalse consistently when building auto_filter fragments.

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 bypass policies whose conditions are only decidable at runtime and may be perpetually false in some contexts; prefer explicit authorize_if/forbid_if blocks without bypass for 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 bypass block with access_type :runtime without any policies after it; or
  • Defines bypass blocks whose conditions are evaluated at runtime (e.g., checks with strict_check/3 returning :unknown and a runtime check/4 that 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.

Impact

Projects that rely on filter-based authorization and define:

  • bypass ... do ... end blocks 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.

The application does not correctly enforce access controls, allowing a principal to access resources or operations beyond their granted permissions. Typical impact: unauthorized data access or execution of privileged operations.

Affected versions

ash (< 3.6.2)

Security releases

ash → 3.6.2 (erlang)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

Upgrade ash to 3.6.2 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is CVE-2025-48043? CVE-2025-48043 is a high-severity incorrect authorization vulnerability in ash (erlang), affecting versions < 3.6.2. It is fixed in 3.6.2. The application does not correctly enforce access controls, allowing a principal to access resources or operations beyond their granted permissions.
  2. Which versions of ash are affected by CVE-2025-48043? ash (erlang) versions < 3.6.2 is affected.
  3. Is there a fix for CVE-2025-48043? Yes. CVE-2025-48043 is fixed in 3.6.2. Upgrade to this version or later.
  4. Is CVE-2025-48043 exploitable, and should I be worried? Whether CVE-2025-48043 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether CVE-2025-48043 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix CVE-2025-48043? Upgrade ash to 3.6.2 or later.

Other vulnerabilities in ash

Stop the waste.
Protect your environment with Kodem.