Skip to main content

AshAuthentication EUVDEUVD-2026-81480

| CVE-2026-82761 CRITICAL
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-09-17 EEF
9.1
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain leaked single-use magic-link token
  2. Delivery
    Fire concurrent sign-in requests with same token
  3. Exploit
    Race verify-before-revoke window
  4. Execution
    Multiple redemptions each pass JWT check
  5. Persist
    Receive full user token as target
  6. Impact
    Authenticated account takeover

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
Exploitation Conditions

Exploitation requires all of the following: (1) the magic-link strategy is in use with single_use_token? enabled - which the description states is the DEFAULT configuration; (2) the attacker possesses a valid, unexpired, not-yet-consumed magic-link JWT for the target subject (token leakage is the essential precondition, not modeled in PR); and (3) the attacker must win a timing race by submitting concurrent sign-in redemptions inside the window between Jwt.verify/4 and the after_action/after_transaction revocation, which is written as an idempotent upsert and therefore never forces a conflict. Limiting factors: the race is non-deterministic (reflected as AT:P / my AC:H), the token must be obtained out-of-band and used before natural expiry, and only Ash applications using magic-link auth on the affected versions are exposed. No end-user interaction beyond the attacker's own requests is needed once a token is held.

Impact

This is a genuine but conditional vulnerability whose real-world risk is materially lower than its headline 9.1 (CVSS 4.0) suggests. The vendor vector CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N encodes the key nuance itself: the AT:P (Attack Requirements: Present) metric reflects that success depends on winning a non-deterministic race condition (CWE-367), and exploitation is impossible without first obtaining a valid, unexpired, unredeemed magic-link token - a precondition the base vector does NOT model as PR/UI but which sharply limits practical attack windows. There is NO EPSS score, NO CISA KEV listing, and NO public exploit code identified at time of analysis, so all signals point to no-public-exploit-identified rather than active exploitation. The attacker must already hold a leaked single-use token AND fire concurrent redemptions to beat the verify-before-revoke window; this is opportunistic, not scalable, and not internet-wide sprayable. Contrast: the vendor treats confidentiality and integrity as High (full account takeover / user token issuance), which is defensible for a successful exploit, but the compound preconditions (token leakage + race win) mean I assess AC:H and real-world severity closer to ~7 than 9.1. This is a fix-in-normal-patch-cycle item for Elixir/Ash shops using magic-link auth, not a drop-everything emergency, absent evidence of targeting.

Exploit ScenarioDerived

An attacker intercepts or otherwise obtains a target's single-use magic-link token (e.g., via email forwarding, shared inbox, proxy logs, or referrer leakage) and, before or as the legitimate user redeems it, fires many concurrent sign-in requests carrying that same token. Because Jwt.verify/4 runs before revocation and TokenResource revocation is an idempotent upsert, multiple concurrent redemptions all pass verification and each returns a full user token, giving the attacker an authenticated session as the target. No public exploit code exists, and success requires winning a timing race against the revocation write.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 17, 2026

Reusing a leaked single-use magic-link token is possible in the Elixir library ash_authentication because its validity check and its revocation are not serialised: concurrent sign-in redemptions of the same token can all succeed, each returning a full user JWT and authenticating the attacker as the target subject. Affected are ash_authentication versions from 3.9.0 before 4.15.0 and 5.0.0-rc.0 before 5.0.0-rc.14, with single_use_token? enabled (the default) - unauthenticated remote requests (PR:N) qualify, but the attacker must already possess a valid, unexpired magic link obtained out-of-band and must win a non-deterministic timing race, so real-world risk is materially lower than the headline CVSS 4.0 score of 9.1 suggests. There is no indication of confirmed active exploitation (no CISA KEV entry) and no public exploit identified at time of analysis; vendor patches are available.

RemediationAI

Vendor-released patch: upgrade ash_authentication to 4.15.0 on the 4.x line, or to 5.0.0-rc.14 on the 5.0 release-candidate line; the associated upstream changes are the commits cf3d227ef25912cf1b0c5fa80f20001f5c46a102, 18dfdb36c14aa6a61df8572bce2d5ec36b1d9840 and 9ef6864b8833d3b795427a7b8dc518a4997d41ab, with details in advisory GHSA-23gr-vcp4-r27q. Where an immediate upgrade is not possible, compensating controls are to disable the magic-link strategy entirely (removes that login path, forcing users onto password or OAuth flows) or, if it must stay enabled, to shorten magic-link token lifetimes and add upstream rate limiting or serialisation so that concurrent sign-in requests bearing the same token are rejected or queued - the trade-off being added latency for legitimate single requests and no cryptographic guarantee, since the race window between Jwt.verify/4 and the after_action/after_transaction revocation remains open until the fix is applied. Because the essential precondition is token leakage, also treat any exposed magic-link URL (email logs, proxies, referrer headers) as compromised and invalidate outstanding tokens where the implementation allows it.

Affected VersionsENISA

ash_authentication 3.9.0 <4.15.0
ash_authentication 5.0.0-rc.0 <5.0.0-rc.14
ash_authentication cf3d227ef25912cf1b0c5fa80f20001f5c46a102 <*

Affected Packages

euvd ash_authentication fix: 4.15.0, 5.0.0-rc.14

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The issue is a classic time-of-check/time-of-use (TOCTOU) race, CWE-367, in the magic-link strategy of the Ash framework's authentication library. Sign-in with a magic link first verifies the submitted JWT via AshAuthentication.Jwt.verify/4, and only afterwards revokes it: AshAuthentication.Strategy.MagicLink.SignInPreparation performs the revocation inside a Query.after_action callback, while AshAuthentication.Strategy.MagicLink.SignInChange does it in an after_transaction hook that runs after the sign-in has already committed. Because AshAuthentication.TokenResource.Actions.revoke/3 writes the revocation as an idempotent upsert, a duplicate concurrent revocation silently succeeds rather than raising a conflict, so no request ever loses the check-versus-consume race. Nothing in the flow atomically marks the token consumed before issuing the user token, meaning N simultaneous redemptions of one single-use token can each mint a valid session token for the same subject. Relevant supporting code lives in AshAuthentication.Jwt (token purpose handling), the magic-link strategy module, and the token resource actions; the upstream advisory is GHSA-23gr-vcp4-r27q, published via Erlef (EEF) as EEF-CVE-2026-82761 and mirrored on OSV.

Know when Ash Authentication gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (EEF) PRIMARY 9.1 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.4 HIGH

Network-exploitable with no auth (PR:N) and no victim interaction, but AC:H because success requires holding a leaked token and winning a non-deterministic revocation race; account takeover yields C:H/I:H, no availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in team-alembic AshAuthentication allows an attacker holding a leaked magic link to replay its single-use token and authenticate as the target subject. A magic link configured with single_use_token?, which is the default, is meant to be redeemable exactly once, but nothing serialises the token's validity check against its consumption, so concurrent redemptions of one token all succeed and each yields a full user token.

Sign-in verifies the JWT with Jwt.verify/4 and revokes it only afterwards: AshAuthentication.Strategy.MagicLink.SignInPreparation revokes in a Query.after_action callback, and AshAuthentication.Strategy.MagicLink.SignInChange in an after_transaction hook that runs once the sign-in has already committed. AshAuthentication.TokenResource.Actions.revoke/3 writes the revocation as an upsert, so a concurrent duplicate revocation silently succeeds instead of conflicting and no request ever loses the race.

This issue affects ash_authentication: from 3.9.0 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.

Technical POC Analysis

CWE-367 TOCTOU.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A critical race condition in the Elixir ash_authentication library can let an attacker who already possesses a valid magic-link token redeem it concurrently and obtain the target user's session, undermining the intended single-use protection in affected applications. The practical risk is limited because exploitation requires out-of-band token possession and a non-deterministic timing race, and there is no CISA KEV entry or public exploit identified at time of analysis. Leadership should still prioritize remediation because affected authentication flows can lead to account takeover and unauthorized access to user or administrative data.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Low
niche Elixir/Ash authentication library, small ecosystem footprint
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-49757 CRITICAL POC
9.2 Jun 15

Account takeover in team-alembic AshAuthentication (0.1.0 to <4.14.0 and 5.0.0-rc.0 to <5.0.0-rc.10) lets an unauthentic

CVE-2025-25202 MEDIUM POC
6.3 Feb 11

Ash Authentication is an authentication framework for Elixir applications. Rated medium severity (CVSS 6.3), this vulner

CVE-2026-86533 CRITICAL
9.1 Sep 17

Revoked sessions continue to be treated as fully authenticated on affected AshAuthentication and AshAuthentication Phoen

CVE-2026-85500 CRITICAL
9.1 Sep 17

Unconfirmed accounts can obtain an authenticated session in the AshAuthentication Elixir library, defeating the mandator

CVE-2026-88952 CRITICAL
9.1 Sep 17

Account takeover in AshAuthentication (Elixir/Ash) 4.14.0 through 4.14.x and 5.0.0-rc.10 through 5.0.0-rc.13 lets unauth

CVE-2026-91039 CRITICAL
9.1 Sep 17

Authentication bypass in the Elixir library ash_authentication lets an attacker who operates one federated identity-prov

CVE-2026-82760 HIGH
8.2 Sep 17

Denial of service in the AshAuthentication API-key sign-in strategy lets an unauthenticated, remote attacker exhaust ser

CVE-2026-82685 HIGH
7.6 Sep 17

An authenticated account-takeover primitive exists in the Elixir library AshAuthentication (ash_authentication) versions

CVE-2026-65633 HIGH
7.6 Aug 25

JWT token replay in AshAuthentication exposes any application using the stateless bearer-token path to full account take

CVE-2026-119215 HIGH
7.6 Nov 03

An authenticated account holder can bind a TOTP authenticator secret they control onto another user's account in AshAuth

CVE-2026-80218 HIGH
7.6 Sep 17

Authentication bypass in the AshAuthentication library for Elixir/Ash lets an authenticated attacker who holds a valid s

CVE-2026-81632 HIGH
7.2 Sep 17

Password sign-in in AshAuthentication Phoenix (ash_authentication_phoenix 1.7.0 to <2.17.4 and 3.0.0-rc.0 to <3.0.0-rc.1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy