Erlang Ecosystem Foundation
EEF-CVE-2026-47067
Atom table exhaustion via unrecognized URL schemes in hackney
Details
Summary
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Hex | hackney | From 2.0.0 before 4.0.1 (fixed in 4.0.1) |
4.0.0, 3.2.1, 3.2.0, 3.1.2, 3.1.1, 3.1.0, 3.0.3, 3.0.2 and 3 more |
References
- https://github.com/benoitc/hackney/security/advisories/GHSA-9653-rcfr-5c62
- https://cna.erlef.org/cves/CVE-2026-47067.html
- https://github.com/benoitc/hackney/commit/d9713695c0d99855d12c73fd8a0b4be0543950c4
- https://github.com/benoitc/hackney/commit/31f6f0e27e096ad88743dfded4f030a3ee74972e
- https://hex.pm/packages/hackney