7.1high
Before action hooks may execute in certain scenarios despite a request being forbidden
- Severity
- 7.1high CVSS:4.0 by EEF
- Exploit likelihood
- 0.38% (higher than 33% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- EEF
- Also known as
- GHSA-jj4j-x5ww-cwh9EEF-CVE-2025-48042
Description
Incorrect Authorization vulnerability in ash-project ash allows Exploiting Incorrectly Configured Access Control Security Levels. This issue affects ash: from 0.1.1 before 3.5.39.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ash | from 0.1.1 before 3.5.39 | CVE List |
| ash-project/ash | from 4c41344126b0aba09ec3085517000f8aefec299e before 5d1b6a5d00771fd468a509778637527b5218be9a | CVE List |
| ash (Hex) | before 3.5.39, from 0.1.1 before 3.5.39 | GitHub Advisory Database, Erlang Ecosystem Foundation |
| https://github.com/ash-project/ash | from 4c41344126b0aba09ec3085517000f8aefec299e before 5d1b6a5d00771fd468a509778637527b5218be9a | Erlang Ecosystem Foundation |
All scores
| EEF | 7.1high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N |
| GitHub | 5.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/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:N/VI:H/VA:L/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Incorrect Authorization vulnerability in ash-project ash allows Exploiting Incorrectly Configured Access Control Security Levels. This issue affects ash: from 0.1.1 before 3.5.39.
GitHub Advisory Database
Summary
Certain bulk action calls with a before_transaction hook and no after_transaction hook, will call the before_transaction hook before authorization is checked and a Forbidden error is returned, when called as a bulk action.
The impact is that a malicious user could cause a before_transaction to run even though they are not authorized to perform the whole action. The before_action could run a sensitive/expensive operation.
Impact
A malicious user could cause a before_action to run even though they are not authorized to perform the whole action.
You are affected if you have an create, update or destroy action that:
- has a before_transaction hook on it, and no after_transaction hook on it.
- is being used via an
Ash.bulk_*callback (which AshJsonApi and AshGraphql do for update/destroy actions)
Whether or not or how much it matters depends on the nature of those before_transaction callbacks. If those before_transaction callbacks are side-effectful, or just doing something like looking up some external data. If your API endpoints are behind authentication and what kind.
Severity
The severity for this was hard to gauge. before_transaction hooks are not that commonly used. Additionally, any attacker must know which of these things are available to them, be authenticated to make such a request (i.e you very rarely have policies preventing the running of anonymous queries), so privileges and inside knowledge are required. Additionally, the action will always return a forbidden error, so no information is revealed. We will evaluate and adjust the severity in the next few days as needed.
It is currently marked as High, given that we really don't know what logic folks are putting in their before_transaction hooks and it could theoretically be very bad.
Workarounds
You should update ASAP, but if for whatever reason you cannot update, you can add logic to those before_transaction hooks to prevent them from doing their logic before they should.
Erlang Ecosystem Foundation
Summary
Incorrect Authorization vulnerability in ash-project ash allows Exploiting Incorrectly Configured Access Control Security Levels.
This issue affects ash: from 0.1.1 before 3.5.39.
NVD (es)
Una vulnerabilidad de autorización incorrecta en ash-project ash permite la explotación de niveles de seguridad de control de acceso configurados incorrectamente. Esta vulnerabilidad está asociada con los archivos de programa lib/ash/actions/create/bulk.ex, lib/ash/actions/destroy/bulk.ex, lib/ash/actions/update/bulk.ex y las rutinas de programa 'Elixir.Ash.Actions.Create.Bulk':run/5, 'Elixir.Ash.Actions.Destroy.Bulk':run/6, 'Elixir.Ash.Actions.Update.Bulk:run'/6. Este problema afecta a ash: desde pkg:hex/ash antes de pkg:hex/ash@3.5.39, antes de 3.5.39, antes de 5d1b6a5d00771fd468a509778637527b5218be9a.
References
| https://github.com/ash-project/ash/security/advisories/GHSA-jj4j-x5ww-cwh9 | advisory, related, vendor-advisory, web | |
| https://cna.erlef.org/cves/CVE-2025-48042.html | related, web | |
| https://osv.dev/vulnerability/EEF-CVE-2025-48042 | related, web | |
| https://github.com/ash-project/ash/commit/4c41344126b0aba09ec3085517000f8aefec299e | related, web | |
| https://github.com/ash-project/ash/commit/5d1b6a5d00771fd468a509778637527b5218be9a | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-48042 | advisory | |
| https://github.com/ash-project/ash | package | |
| https://hex.pm/packages/ash | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-48042 changed 2026-11-19 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jj4j-x5ww-cwh9 changed 2026-04-06 | CC-BY-4.0 |
| Erlang Ecosystem Foundation | EEF-CVE-2025-48042 changed 2026-11-25 | CC-BY-4.0 |
| NVD | CVE-2025-48042 changed 2026-10-19 | Public domain |