CVE-2026-47067

Atom table exhaustion via unrecognized URL schemes in hackney

Published May 25, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
Allocation of Resources Without Limits or Throttling vulnerability in benoitc hackney allows Flooding.

The URL parser in src/hackney_url.erl converts every unrecognized URL scheme to a permanent BEAM atom via binary_to_atom/2. BEAM atoms are never garbage-collected and the atom table defaults to a hard limit of 1,048,576 entries. An attacker who can supply URLs with attacker-chosen scheme prefixes — directly as request targets, as configured webhook URLs, or via Location headers followed during redirects — can exhaust the atom table and crash the entire BEAM VM with system_limit.

This issue affects hackney: from 2.0.0 before 4.0.1.

Analysis

AI-generated

Technical impact

Hackney’s URL parser converts every unrecognized URL scheme into a permanent BEAM atom using binary_to_atom/2. Because BEAM atoms are never garbage‑collected and the atom table is capped at 1,048,576 entries, an attacker who supplies URLs with arbitrary scheme prefixes—direct request targets, webhook URLs, or redirect Location headers—can exhaust the atom table. Once the limit is reached, the BEAM VM terminates with a system_limit error, causing a denial of service that crashes the entire application. This vulnerability remains an instance of Uncontrolled Resource Consumption (CWE‑770).

Affected Systems

The bug is present in the Hackney HTTP client library maintained by benoitc. It affects all releases from 2.0.0 up to but not including 4.0.1. Any Erlang or Elixir application that imports Hackney and accepts external URLs—as direct request targets, webhook callbacks, or redirect chains—could be impacted.

Risk and Exploitability

The CVSS score of 8.7 indicates critical severity. The EPSS score of 0.00753 (equivalent to <1%) reflects a very low but nonzero likelihood of exploitation, and the issue is not listed in CISA KEV. The attack path is straightforward: an attacker can inject a payload with many unique unknown schemes via direct URLs, webhooks, or redirect Location headers. Once the atom table limit is hit, the VM crashes, taking down the entire application. The risk is high for environments where Hackney handles untrusted input or relies on external redirects. Prompt remediation is recommended to prevent a production outage.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Hackney to version 4.0.1 or later.
  • If an upgrade is not possible, configure or patch the URL handling code to reject unknown schemes or to apply a whitelist before converting schemes to atoms, thereby preventing unlimited atom creation.
  • For redirects or webhook URLs, restrict accepted schemes to a known safe set (such as http and https) or sanitize the payload to eliminate custom schemes.

Generated by OpenCVE AI on November 22, 2026 at 23:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-9653-rcfr-5c62 Hackney vulnerable to atom-table exhaustion via unrecognized URL schemes
History
Type Values Removed Values Added
Description Allocation of Resources Without Limits or Throttling vulnerability in benoitc hackney allows Flooding. The URL parser in src/hackney_url.erl converts every unrecognized URL scheme to a permanent BEAM atom via binary_to_atom/2. BEAM atoms are never garbage-collected and the atom table defaults to a hard limit of 1,048,576 entries. An attacker who can supply URLs with attacker-chosen scheme prefixes — directly as request targets, as configured webhook URLs, or via Location headers followed during redirects — can exhaust the atom table and crash the entire BEAM VM with system_limit. This issue affects hackney: from 2.0.0 before 4.0.1. Allocation of Resources Without Limits or Throttling vulnerability in benoitc hackney allows Flooding. The URL parser in src/hackney_url.erl converts every unrecognized URL scheme to a permanent BEAM atom via binary_to_atom/2. BEAM atoms are never garbage-collected and the atom table defaults to a hard limit of 1,048,576 entries. An attacker who can supply URLs with attacker-chosen scheme prefixes — directly as request targets, as configured webhook URLs, or via Location headers followed during redirects — can exhaust the atom table and crash the entire BEAM VM with system_limit. This issue affects hackney: from 2.0.0 before 4.0.1.
References
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description Allocation of Resources Without Limits or Throttling vulnerability in benoitc hackney allows Flooding. The URL parser in src/hackney_url.erl converts every unrecognized URL scheme to a permanent BEAM atom via binary_to_atom/2. BEAM atoms are never garbage-collected and the atom table defaults to a hard limit of 1,048,576 entries. An attacker who can supply URLs with attacker-chosen scheme prefixes — directly as request targets, as configured webhook URLs, or via Location headers followed during redirects — can exhaust the atom table and crash the entire BEAM VM with system_limit. This issue affects hackney: from 2.0.0 before 4.0.1.
Title Atom table exhaustion via unrecognized URL schemes in hackney
First Time appeared Benoitc
Benoitc hackney
Weaknesses CWE-770
CPEs cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*
Vendors & Products Benoitc
Benoitc hackney
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 20, 2026, 7:51 AM
Reserved
May 18, 2026, 5:28 PM
Status
Modified
Published
May 25, 2026, 3:16 PM
Modified
Nov 20, 2026, 8:18 AM