CVE-2026-54894: Atom-table exhaustion denial of service in Guardian via unbounded atom creation from binary keys

Published Aug 1, 2026
·
Updated

Summary

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.toatom/1. basekey/1 in lib/guardian/plug/keys.ex converts any binary into the atom :"guardian<input>", and the derived helpers claimskey/1, resourcekey/1, and tokenkey/1 create a second atom on top of that. keyfromother/1 likewise converts a regex-captured binary through String.toatom/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.currenttoken(conn, key: key) thread the caller-supplied key straight into these functions.

String.toatom/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.

Workarounds

Do not derive Guardian keys from untrusted input. Use a fixed, hardcoded set of namespace keys, or validate the value against a bounded allowlist of known keys, before passing it as the :key option.

Configurations

Only applications that derive a Guardian key (the conn/session namespace) from attacker-influenced data are exploitable. This is the case when a caller-supplied value such as a tenant identifier, request header, or other request input is passed as the :key option to entry points like Guardian.Plug.currenttoken/2. Applications that use a static namespace (the default :default key or hardcoded atoms) are not affected.

Other sources

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.toatom/1. basekey/1 in lib/guardian/plug/keys.ex converts any binary into the atom :"guardian<input>", and the derived helpers claimskey/1, resourcekey/1, and tokenkey/1 create a second atom on top of that. keyfromother/1 likewise converts a regex-captured binary through String.toatom/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.currenttoken(conn, key: key) thread the caller-supplied key straight into these functions.

String.toatom/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.

— NVD

Affected Software

3 affected componentsFixes available
ueberauth guardian>0.1.0<2.4.1
ueberauth guardian<2.4.1
erlang/guardian>=0.1.0<2.4.1
2.4.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade erlang/guardian to a version that resolves this vulnerability.

    Fixed in 2.4.1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.4.1
  3. Compensating control

    Use a fixed, hardcoded set of Guardian namespace keys, or validate the value against a bounded allowlist before passing it as the :key option; do not derive Guardian keys from untrusted input.

Event History

Aug 1, 2026
CVE Published
via MITRE·06:46 PM
Data Sourced
via MITRE·06:46 PM
DescriptionWeakness
Data Sourced
via OSV·06:46 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeakness
Aug 3, 2026
Exploit Published
via CISA·05:49 PM
Aug 6, 2026
Data Sourced
via NVD·02:33 PM
RemedyAffected Software
Updated
via NVD·02:33 PM
Severity
Nov 24, 2026
Updated
via OSV·04:30 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2026-54894?

CVE-2026-54894 has a risk rating of 76, indicating a medium to high severity level.

2

How do I fix CVE-2026-54894?

To mitigate CVE-2026-54894, implement limiting on the input or throttle the creation of atoms to prevent unbounded atom creation from binary keys.

3

What is the impact of CVE-2026-54894?

CVE-2026-54894 allows an attacker to cause a denial of service by exhausting system resources through unbounded atom creation.

4

Which software is affected by CVE-2026-54894?

CVE-2026-54894 affects the ueberauth guardian software.

5

How does CVE-2026-54894 work?

CVE-2026-54894 exploits the conversion of arbitrary binaries to atoms in ueberauth guardian, leading to resource exhaustion.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203