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.
Github GHSA