CVE-2025-25202 Ash Authentication has flawed token revocation checking logic in actions generated by `mix ash_authentication.install`
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alembic ash authentication | >= 4.1.0, < 4.4.9 | 4.4.9 | Fixed |
| hex ash_authentication(Hex) | >= 4.1.0, < 4.4.9 | 4.4.9 | Fixed |
| team-alembic ash authentication | = >= 4.1.0, < 4.4.9 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| hex ash_authentication(Hex) | >= 4.1.0, < 4.4.9 | 4.4.9 |
| team-alembic ash authentication | = >= 4.1.0, < 4.4.9 | No fix listed |
| alembic ash authentication | >= 4.1.0, < 4.4.9 | 4.4.9 |
References
- https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-qrm9-f75w-hg4c exploit patch third-party-advisory vendor-advisory
- https://github.com/team-alembic/ash_authentication/commit/2dee55252df26fe3d990ff1199397cdcf1bfea8a patch
- nvd.nist.gov third-party-advisory
- github.com