Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach public API-key sign-in endpoint
-
DeliverySubmit oversized base62 key segment
-
ExploitTrigger cubic decode62/quadratic bindecode62 computation
-
ExecutionExhaust CPU and memory pre-auth
-
ImpactDeny service to legitimate users
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
|
| Exploitation Conditions | The target application must use AshAuthentication with the ApiKey strategy enabled (AshAuthentication.Strategy.ApiKey.SignInPreparation exposed via a sign-in action), and run an affected version (4.8.0 up to but not including 4.15.0, or 5.0.0-rc.0 up to but not including 5.0.0-rc.14). No authentication, credentials, user interaction, or valid API key is required (PR:N/UI:N) - the oversized base62 segment is processed by decode62/1 and bindecode62/1 before any key lookup. The only real prerequisite is the ability to reach the sign-in endpoint and submit an input long enough that the cubic/quadratic cost becomes significant (reflected as AT:P). Applications not configured with the ApiKey strategy are not exposed. |
| Impact | This is a genuine, network-reachable denial-of-service (CWE-407, algorithmic complexity) that a defender should prioritize if they run AshAuthentication's ApiKey strategy. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N, VA:H only) is internally consistent with the description: a remote, unauthenticated attacker with only 'attack requirements present' (an oversized crafted segment) can drive CPU/memory exhaustion, and impact is purely to availability - confidentiality and integrity are correctly N. The 8.2 score is high largely because PR:N/UI:N make it trivially reachable; the AT:P is the only mitigating metric. Signals are consistent, not conflicting: patch is confirmed available and the flaw is well-substantiated by vendor source code (decode62/1 cubic via repeated Integer.pow, bindecode62/1 quadratic, no byte_size cap, invoked pre-authentication in SignInPreparation). No EPSS score and no KEV entry are provided, and the references are advisories/patch commits rather than exploit code - so there is no evidence of active exploitation or a public PoC. Net: a real, easily-triggered DoS priority for the specific population running this Elixir library, but the small deployment footprint (see prevalence) bounds real-world blast radius. Note the input 'Information Disclosure' tag conflicts with the actual impact (availability-only) and appears mislabeled. |
| Exploit ScenarioDerived | An unauthenticated attacker sends API-key sign-in requests whose underscore-separated key contains a very long base62 segment. Because SignInPreparation feeds the segment into decode62/1 (cost grows ~cubically) and bindecode62/1 (quadratic) before any key lookup or authentication, each request consumes disproportionate CPU and memory; a handful of concurrent requests can exhaust the server. No public exploit code is identified at time of analysis, though the vulnerable code path is fully documented in the vendor advisory and patch commits. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Denial of service in the AshAuthentication API-key sign-in strategy lets an unauthenticated, remote attacker exhaust server CPU and memory by submitting an API key containing an oversized base62 segment. Affected are ash_authentication releases from 4.8.0 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14 that enable the ApiKey strategy; the malicious input is decoded before any key lookup, so no credentials, valid key, or user interaction is required (CVSS 4.0 base 8.2; assessed CVSS 3.1 AV:N/AC:L/PR:N/UI:N/A:H). No public exploit code or active exploitation was identified at time of analysis, and vendor fixes are available in 4.15.0 and 5.0.0-rc.14.
RemediationAI
Vendor-released patch: upgrade ash_authentication to 4.15.0 or later on the 4.x line, or to 5.0.0-rc.14 or later on the 5.0 release-candidate line, following the advisory at https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-q876-xr24-2mcx; the fixes are contained in the referenced upstream commits f3a53f480088419788d5c3934af3131fa9066773, d5a5d4cb5cc17fbd6e2a120a6111b47accad4b8e, and dfb19c897853686ab481c5e773f7a1a0c74dea04, so a deployment pinned to a git dependency can also pull one of those revisions directly. If upgrading is not immediately possible, apply compensating controls at the edge rather than inside the application, because the vulnerable work happens before any key lookup and raises no exception the library can rescue: cap the maximum length of the submitted API key (legitimate keys are short, so rejecting keys whose sampled prefix or individual underscore-separated segment exceeds a few hundred bytes is low risk, though it can reject malformed or custom-length clients), reject or truncate oversized request bodies and headers at the reverse proxy or load balancer, and rate-limit or temporarily disable the API-key sign-in endpoint for unauthenticated traffic. Restricting the sign-in route to trusted networks or API gateways with per-client quotas is an effective stopgap but breaks public client access, and simply adding retries or increasing server capacity does not mitigate exponential memory growth.
Affected VersionsENISA
Affected Packages
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 root cause is CWE-407, inefficient algorithmic complexity, in the Base62 helper module of the Elixir library AshAuthentication (lib/ash_authentication/base.ex). decode62/1 converts its input by splitting the binary into one single-character binary per position and folding those through charval62/2, which recomputes Integer.pow(62, index) from scratch at every position rather than accumulating Horner-style; this makes decoding cost grow roughly cubically with input length. The inverse helper bindecode62/1 is quadratic because it relies on Integer.digits/2 and Integer.undigits/2 over the whole integer. Neither function enforces a byte_size/1 cap, and AshAuthentication.Strategy.ApiKey.SignInPreparation feeds the underscore-separated segments of the submitted key into both functions before any API key lookup and without prior authentication. The surrounding rescue clauses in the library trap raised exceptions only; CPU cycles and memory growth during pure computation are not exceptions, so they do not bound the work. The affected package is identified by CPE cpe:2.3:a:team-alembic:ash_authentication and is part of the Ash framework authentication layer; the vulnerability was reported in the Erlang/Elixir ecosystem and assigned by the EEF CNA. Note the provided tag 'Information Disclosure' does not match the assessed impact, which is availability loss through resource exhaustion.
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
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Remote unauthenticated request to the pre-auth sign-in path (AV:N/PR:N/UI:N/AC:L) causes availability-only resource exhaustion (A:H), with no confidentiality or integrity impact and no scope change.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
Inefficient Algorithmic Complexity vulnerability in team-alembic AshAuthentication allows an unauthenticated attacker to exhaust CPU and memory via an oversized base62 segment in a submitted API key.
AshAuthentication.Base.decode62/1 in lib/ash_authentication/base.ex splits its argument into one binary per character and folds it with charval62/2, which recomputes Integer.pow(62, index) at every position instead of accumulating by Horner's method, so cost grows roughly cubically in the input length. bindecode62/1 in the same module is quadratic through Integer.undigits/2 and Integer.digits/2. Neither function caps byte_size/1, and AshAuthentication.Strategy.ApiKey.SignInPreparation passes the underscore-separated segments of the submitted key straight into both, before any key lookup and without prior authentication. The surrounding rescue clauses catch exceptions, not CPU or memory exhaustion.
This issue affects ash_authentication: from 4.8.0 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.
Technical POC Analysis
CWE-407 (Inefficient Algorithmic Complexity), with CWE-1284 (Improper Validation of Specified Quantity in Input) as the secondary weakness.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
AshAuthentication, an Elixir authentication library used by applications built on the Ash framework, contains a remotely triggerable denial-of-service flaw in its API-key sign-in strategy that can exhaust server CPU and memory. Any unauthenticated request reaching an affected login endpoint is sufficient to trigger the condition - no account, valid key, or user interaction is required - so internet-facing applications that enable the ApiKey strategy face a realistic risk of authentication outages and follow-on application downtime. Leadership should care because the impacted component is the front door to these applications, and sustained resource exhaustion there can disrupt access for all users, not just those using API keys.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Ash Authentication
View allAccount 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
Ash Authentication is an authentication framework for Elixir applications. Rated medium severity (CVSS 6.3), this vulner
Revoked sessions continue to be treated as fully authenticated on affected AshAuthentication and AshAuthentication Phoen
Unconfirmed accounts can obtain an authenticated session in the AshAuthentication Elixir library, defeating the mandator
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
Authentication bypass in the Elixir library ash_authentication lets an attacker who operates one federated identity-prov
Reusing a leaked single-use magic-link token is possible in the Elixir library ash_authentication because its validity c
An authenticated account-takeover primitive exists in the Elixir library AshAuthentication (ash_authentication) versions
JWT token replay in AshAuthentication exposes any application using the stateless bearer-token path to full account take
An authenticated account holder can bind a TOTP authenticator secret they control onto another user's account in AshAuth
Authentication bypass in the AshAuthentication library for Elixir/Ash lets an authenticated attacker who holds a valid s
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
EUVD-2026-81478
NVD
CVE.org
EPSS
GitHub
Exploit-DB