ZeroHour

CVE-2026-54894

PoC moderate

Unbounded atom creation DoS in ueberauth guardian (Elixir)

CVSS 4.0
6.9 medium
EPSS
<1%p25
Published
()
Modified
AI analysis

Guardian.Plug.Keys in the ueberauth Guardian authentication library (Elixir/BEAM) allocates BEAM atoms without limits: base_key/1, the derived claims_key/resource_key/token_key helpers, and key_from_other/1 all pass caller-supplied binaries to String.to_atom/1, and the library's public specs explicitly document strings as valid input. Any application that threads attacker-influenced data — such as a tenant identifier or request header — into Guardian key options (e.g., Guardian.Plug.current_token(conn, key: key)) mints a new, permanently retained atom for every distinct value. Because atoms are never garbage collected and the BEAM atom table caps out at roughly 1,048,576 entries by default, a modest stream of varied unauthenticated input exhausts the table and crashes the BEAM node, taking down every application running on it (CVSS 4.0: 6.9 medium, with high availability impact on the vulnerable and subsequent systems). All guardian versions from 0.1.0 before 2.4.1 are affected, while applications that only use fixed, built-in default keys are largely unaffected. No in-the-wild exploitation is currently reported (EPSS 0.3%, not in CISA KEV), but a public advisory with technical detail exists at GHSA-xqch-c77q-rgh5.

What to do: Upgrade to guardian 2.4.1 or later, since every version from 0.1.0 before 2.4.1 is affected. Audit your application for code paths where attacker-controlled values (tenant identifiers, request headers, other input) reach Guardian key options such as current_token(conn, key: key), and as an interim mitigation restrict those key values to a fixed, validated set. Operators can also monitor the BEAM atom table (e.g., :erlang.system_info(:atom_count)) against the ~1,048,576-entry default limit to catch exhaustion before a node crash.

Affected
ueberauth guardian>= 0.1.0, < 2.4.1
Estimated exposure
moderate≈1,000–10,000 Elixir/Phoenix application deployments using guardian with attacker-controlled key input (subset of guardian's large ecosystem footprint) — No install telemetry is included in the data; the estimate comes from deployment patterns — guardian is the most widely used JWT authentication library in the Elixir ecosystem (tens of millions of lifetime Hex downloads imply thousands to…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Allocation of Resources Without Limits or Throttling in ueberauth guardian allows denial of service via unbounded atom creation from attacker-influenced binary input. Guardian.Plug.Keys derives connection and session namespace keys by passing arbitrary binaries to String.to_atom/1. base_key/1 in lib/guardian/plug/keys.ex converts any binary into the atom :"guardian_ ", and the derived helpers claims_key/1, resource_key/1, and token_key/1 create a second atom on top of that. key_from_other/1 likewise converts a regex-captured binary through String.to_atom/1. The public specs advertise String.t() as a valid argument, so passing a string is documented usage, and higher-level entry points such as Guardian.Plug.current_token(conn, key: key) thread the caller-supplied key straight into these functions. String.to_atom/1 creates a brand-new atom for every previously unseen binary, atoms are never garbage collected, and the BEAM atom table is fixed at roughly 1,048,576 entries by default. An application that routes attacker-influenced data (a tenant identifier, header, or other request input) into a Guardian key therefore mints one permanent atom per distinct value. A modest stream of varied, unauthenticated input permanently consumes the atom table and crashes the BEAM node, taking down every application running on it. This issue affects guardian: from 0.1.0 before 2.4.1.

Vendors
ueberauth
Products
guardian
Weakness
CWE-770
Vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.