Description
Allocation of Resources Without Limits or Throttling in ueberauth guardian allows denial of service via unbounded atom creation from attacker-controlled binary input.

Guardian.Permissions.AtomEncoding encodes permission scopes by passing arbitrary binaries to String.to_atom/1. When encode/3 in lib/guardian/permissions/atom_encoding.ex is called with a list, each binary entry is handled by the encode_value/3 binary clause, which calls String.to_atom(value) with no allow-list check. The perm_set argument (the application's small, finite set of legitimate permission names) is discarded, so any external string flows straight into atom creation. This encoder is selected with use Guardian.Permissions, encoding: Guardian.Permissions.AtomEncoding and reached through the imported encode/3 entry point.

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 funnels attacker-influenced permission scopes (from a request body, a JWT claim, or other external input) into encode/3 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 with system_limit, taking down every application running on it.

The default encoder is Guardian.Permissions.BitwiseEncoding, which is not affected.

This issue affects guardian: from 2.0.0 before 2.4.1.
Published: 2026-08-01
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises from Guardian.Permissions.AtomEncoding, which turns arbitrary binary data into atoms without any whitelisting. This creates a new atom for each unique string, exhausting the Erlang atom table and ultimately forcing the BEAM node to crash with a system limit. The impact is a denial of service that brings down every application running on the affected node. The weakness corresponds to CWE‑770, Allocation of Resources Without Limits or Throttling.

Affected Systems

UEberAuth Guardian instances from version 2.0.0 up to, but excluding, 2.4.1 are vulnerable when using the AtomEncoding permission encoder. The vulnerability does not affect the default BitwiseEncoding or TextEncoding encoders.

Risk and Exploitability

The CVSS score of 6.9 classifies this as a medium‑severity flaw, while the EPSS score of less than 1% indicates a low probability of current exploitation. The vulnerability is not listed in CISA's KEV catalog. An attacker must supply malicious permission data—via a request body, a JWT claim, or other external input—to trigger the encoder and cause atom table exhaustion. The required conditions are readily satisfiable in a typical Guardian deployment, making the threat realistic even though the exploitability likelihood remains modest.

Generated by OpenCVE AI on August 3, 2026 at 09:32 UTC.

Remediation

Vendor Workaround

Switch the permission encoder to the default Guardian.Permissions.BitwiseEncoding or to Guardian.Permissions.TextEncoding, neither of which creates atoms. Alternatively, validate every permission value against the configured perm_set allowlist (rejecting unknown values) before passing it to encode/3.


OpenCVE Recommended Actions

  • Upgrade ueberauth guardian to version 2.4.1 or later, which replaces the vulnerable encoder with a safe default implementation.
  • If upgrading is not immediately possible, reconfigure Guardian to use Guardian.Permissions.BitwiseEncoding or Guardian.Permissions.TextEncoding instead of AtomEncoding.
  • Implement stricter validation by rejecting any permission values that are not present in the configured perm_set allowlist before they are passed to the encoder.

Generated by OpenCVE AI on August 3, 2026 at 09:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 03:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 01 Aug 2026 19:00:00 +0000

Type Values Removed Values Added
Description Allocation of Resources Without Limits or Throttling in ueberauth guardian allows denial of service via unbounded atom creation from attacker-controlled binary input. Guardian.Permissions.AtomEncoding encodes permission scopes by passing arbitrary binaries to String.to_atom/1. When encode/3 in lib/guardian/permissions/atom_encoding.ex is called with a list, each binary entry is handled by the encode_value/3 binary clause, which calls String.to_atom(value) with no allow-list check. The perm_set argument (the application's small, finite set of legitimate permission names) is discarded, so any external string flows straight into atom creation. This encoder is selected with use Guardian.Permissions, encoding: Guardian.Permissions.AtomEncoding and reached through the imported encode/3 entry point. 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 funnels attacker-influenced permission scopes (from a request body, a JWT claim, or other external input) into encode/3 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 with system_limit, taking down every application running on it. The default encoder is Guardian.Permissions.BitwiseEncoding, which is not affected. This issue affects guardian: from 2.0.0 before 2.4.1.
Title Atom-table exhaustion denial of service in Guardian permissions AtomEncoding via unbounded atom creation
First Time appeared Ueberauth
Ueberauth guardian
Weaknesses CWE-770
CPEs cpe:2.3:a:ueberauth:guardian:*:*:*:*:*:*:*:*
Vendors & Products Ueberauth
Ueberauth guardian
References
Metrics cvssV4_0

{'score': 6.9, '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'}


Subscriptions

Ueberauth Guardian
cve-icon MITRE

Status: PUBLISHED

Assigner: EEF

Published:

Updated: 2026-08-03T16:50:53.942Z

Reserved: 2026-06-17T10:44:34.365Z

Link: CVE-2026-55733

cve-icon Vulnrichment

Updated: 2026-08-03T16:50:48.537Z

cve-icon NVD

Status : Analyzed

Published: 2026-08-01T19:16:42.157

Modified: 2026-08-06T14:31:46.110

Link: CVE-2026-55733

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T09:45:04Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling