CVE-2025-25202 Details
Description
Ash Authentication is an authentication framework for Elixir applications. Applications which have been bootstrapped by the igniter installer present since AshAuthentication v4.1.0 and who have used the magic link strategy _or_ are manually revoking tokens are affected by revoked tokens being allowed to verify as valid. Unless one hase implemented any kind of custom token revocation feature in your application, then one will not be affected. The impact here for users using builtin functionality is that magic link tokens are reusable until they expire. With that said, magic link tokens are only valid for 10 minutes, so the surface area for abuse is extremely low here. The flaw is patched in version 4.4.9. Additionally a compile time warning is shown to users with remediation instructions if they upgrade. 4.4.9 ships with an upgrader, so those who use `mix igniter.upgrade ash_authentication` will have the necessary patch applied. Otherwise, one may run the upgrader manually as described in the error message. As a workaround, delete the generated `:revoked?` generic action in the token resource. This will cause it to use the one internal to Ash Authentication which has always been correct. Alternatively, manually make the changes that are included in the patch.
A vulnerability exists in the Ash Authentication framework for Elixir applications, specifically in versions 4.1.0 and later. The issue arises in applications that have been set up with the igniter installer and use the magic link strategy, password resets, or the confirmation add-on. Revoked tokens are incorrectly allowed to verify as valid, leading to potential misuse. By default, magic link tokens are valid for 10 minutes, while password reset and confirmation tokens are valid for 3 days. The vulnerability is not present in applications that did not use the new installer or those that have implemented a custom token revocation feature.
Users can upgrade to Ash Authentication version 4.4.9, which includes the necessary patch. After upgrading, run the command 'mix ash_authentication.upgrade' to apply the patch. Alternatively, users can manually adjust the 'revoked?' action in their token resource to use the internal version that has always been correct.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 11, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/team-alembic/ash_authentication/commit/2dee55252df26fe3d990ff1199397cdcf1bfea8a | [email protected] | Patch |
| https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-qrm9-f75w-hg4c | [email protected] | ExploitPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-269 | Improper Privilege Management | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| alembic ash authentication | >= 4.1.0, < 4.4.9 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 27, 2025 | Initial Analysis | [email protected] |
| Feb 11, 2025 | New CVE Received | [email protected] |