CVE-2025-48042: Before action hooks may execute in certain scenarios despite a request being forbidden
Incorrect Authorization vulnerability in ash-project ash allows Exploiting Incorrectly Configured Access Control Security Levels. This vulnerability is associated with program files lib/ash/actions/create/bulk.ex, lib/ash/actions/destroy/bulk.ex, lib/ash/actions/update/bulk.ex and program routines 'Elixir.Ash.Actions.Create.Bulk':run/5, 'Elixir.Ash.Actions.Destroy.Bulk':run/6, 'Elixir.Ash.Actions.Update.Bulk:run'/6.
This issue affects ash: from pkg:hex/ash before pkg:hex/ash@3.5.39, before 3.5.39, before 5d1b6a5d00771fd468a509778637527b5218be9a.
Security readout for executives and security teams
Plain-English summary
CVE-2025-48042 affects the Elixir Ash framework. In vulnerable versions, application logic registered as before-action hooks may still run even when a bulk create, update, or destroy request is forbidden. That can cause unauthorized side effects in applications that rely on those hooks for data changes or operational workflows.
Executive priority
Treat as high priority for teams running Ash-based applications with authorization-sensitive workflows. The main business risk is unauthorized state change or operational side effects, not broad infrastructure compromise. Prioritize dependency upgrade and regression testing before deployment.
Technical view
The issue is an incorrect authorization flaw in ash before 3.5.39, tied to bulk create, update, and destroy action paths. CVSS 4.0 is 7.1 high: network reachable, low privileges, no user interaction, with high integrity impact and low availability impact. The cited patch is commit 5d1b6a5d00771fd468a509778637527b5218be9a.
Likely exposure
Exposure is most likely in Elixir applications using ash versions before 3.5.39 and bulk create, update, or destroy actions with before-action hooks that perform meaningful side effects. The sources do not identify specific downstream products or hosted services.
Exploitation context
The bundle does not show CISA KEV listing or confirmed active exploitation. The CVSS vector indicates a low-privileged remote actor may trigger the vulnerable path without user interaction, but exploitation depends on application-specific Ash authorization rules and hook behavior.
Researcher notes
Focus review on lib/ash/actions/create/bulk.ex, destroy/bulk.ex, and update/bulk.ex behavior before 3.5.39. The issue maps to CWE-863. Evidence in the bundle is sufficient for affected package and patch version, but not for real-world exploit prevalence.
Mitigation direction
Upgrade ash to version 3.5.39 or later.
Review the vendor advisory and patch commit for upgrade guidance.
Inventory applications using ash bulk create, update, or destroy actions.
Review before-action hooks for side effects on forbidden requests.
Add regression tests for denied bulk action paths.
Validation and detection
Check dependency manifests and lockfiles for ash versions before 3.5.39.
Identify resources using bulk create, update, or destroy actions.
Verify forbidden bulk requests do not execute before-action side effects.
Review logs for unexpected side effects from denied bulk operations.
Confirm patched version is deployed in each runtime environment.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-863: Authorization and privilege behavior lookup
Authorization weaknesses can support privilege escalation and valid-account review, depending on exploit path. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-863 · source CWE mapping
Incorrect Authorization
Incorrect Authorization represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.