{"id":"CVE-2025-25202","published":"2025-02-11T18:28:19Z","modified":"2025-02-12T20:12:08Z","title":"Ash Authentication has flawed token revocation checking logic in actions generated by `mix ash_authentication.install`","vendor":"team-alembic","product":"ash_authentication","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00321,"percentile":0.25285,"provenance":"source"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"}],"references":[{"url":"https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-qrm9-f75w-hg4c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/team-alembic/ash_authentication/commit/2dee55252df26fe3d990ff1199397cdcf1bfea8a","tags":["x_refsource_MISC"]}],"priority":{"score":9.5,"factors":[{"name":"EPSS percentile","points":5.06},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"team-alembic","affectedVersions":[{"vendor":"team-alembic","product":"ash_authentication","versions":[">= 4.1.0, < 4.4.9"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-11T19:23:49.743379Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"ash_authentication","vulnerableRanges":[">=4.1.0, <4.4.9"],"patched":["4.4.9"],"from":["GHSA-qrm9-f75w-hg4c"],"provenance":"source"}],"summary":{"text":"Ash Authentication's installer-generated token resource, produced by mix ash_authentication.install in applications bootstrapped since v4.1.0, contains flawed revocation-checking logic that can let revoked tokens verify as valid. An attacker with network access, no authentication, and no user interaction could reuse a magic link token until it expires, but only in applications using the magic link strategy or manually revoking tokens, and only where no custom revocation feature has been implemented.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:04Z"},"euvd":{"id":"EUVD-2025-4088","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-team-alembic-ash-authentication-cve-2025-25202","children":[{"from":"CVE-2025-25202","to":"CVE-2025-32782","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Hex:ash_authentication","fromFixed":"4.4.9","toFixed":"4.7.0","daysApart":63},{"kind":"same-code","provenance":"machine","files":["lib/ash_authentication/add_ons/confirmation/transformer.ex"],"commits":["https://github.com/team-alembic/ash_authentication/commit/2dee55252df26fe3d990ff1199397cdcf1bfea8a","https://github.com/team-alembic/ash_authentication/commit/99ea38977fd4f421d2aaae0c2fb29f8e5f8f707d"],"basis":"rarely changed file"}]},{"from":"CVE-2025-25202","to":"CVE-2026-110826","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/ash_authentication/token_resource.ex","lib/mix/tasks/ash_authentication.install.ex"],"commits":["https://github.com/team-alembic/ash_authentication/commit/2dee55252df26fe3d990ff1199397cdcf1bfea8a","https://github.com/team-alembic/ash_authentication/commit/0993f944fbd8d668f941d2ca818da4a1d5917641","https://github.com/team-alembic/ash_authentication/commit/2baef4eddeb604569d3564273d03eeef438e002c"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-25202","published":"2025-02-11","fixed":"4.4.9","kev":false},{"cve":"CVE-2025-32782","published":"2025-04-15","fixed":"4.7.0","kev":false},{"cve":"CVE-2026-49757","published":"2026-06-15","fixed":"5.0.0-rc.10","kev":false}],"package":"Hex:ash_authentication"}}