A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-47066

CVE-2026-47066: Benoitc Hackney DOS Vulnerability

CVE-2026-47066 is a denial of service vulnerability in Benoitc Hackney caused by an infinite loop in the Alt-Svc header parser. This article covers the technical details, affected versions, impact, and mitigation steps.

Published: May 28, 2026

CVE-2026-47066 Overview

CVE-2026-47066 is an infinite loop vulnerability in the benoitc/hackney Erlang HTTP client library. The flaw resides in the Alt-Svc response header parser at src/hackney_altsvc.erl. When parse_token/2 encounters a non-token, non-whitespace, non-comma byte such as !, @, =, or ;, it returns the input unchanged. The skip_comma/1 function exhibits the same behavior, causing parse_entries/2 to recurse with identical data. This creates a tight tail-recursive loop that pins a scheduler at 100% CPU. A single malformed Alt-Svc: ! response header from any HTTP origin triggers the hang [CWE-835].

Critical Impact

A single-byte malicious response header from any HTTP server the client connects to causes the calling process to hang indefinitely, exhausting an Erlang scheduler.

Affected Products

  • benoitc hackney 2.0.0-beta.1 through versions prior to 4.0.1
  • Erlang/Elixir applications using hackney as an HTTP client
  • Downstream libraries depending on hackney (such as HTTPoison)

Discovery Timeline

  • 2026-05-25 - CVE-2026-47066 published to NVD
  • 2026-05-27 - Last updated in NVD database

Technical Details for CVE-2026-47066

Vulnerability Analysis

The vulnerability stems from a loop with an unreachable exit condition in the Alt-Svc header parser. The parse_and_cache/3 entry point is invoked synchronously in the connection process for every HTTP response received. When the parser encounters an unrecognized byte, none of the helper functions advance the input buffer position. The recursive call to parse_entries/2 then operates on identical data, producing infinite recursion.

Because Erlang uses tail-call optimization, the loop does not exhaust the stack. Instead, it consumes one scheduler thread at 100% CPU indefinitely. The calling process never returns control to the application, effectively wedging the HTTP client.

Root Cause

The parse_token/2 function fails to guarantee forward progress when it receives bytes outside the expected token, whitespace, or comma classes. The companion skip_comma/1 function only advances when the leading byte is a comma. When both return the buffer unchanged, the parser enters a non-terminating state. The fix introduces a seek_next_entry/1 helper that scans forward to the next comma, ensuring at most one malformed entry is dropped while preserving forward progress.

Attack Vector

Any remote HTTP origin the hackney client connects to can deliver the malicious response header. The attack requires no authentication and no user interaction. An attacker controlling an upstream server, performing a man-in-the-middle attack on cleartext HTTP, or injecting headers via an open redirect chain can trigger the hang. Repeated requests can exhaust all schedulers, producing a full denial of service on the BEAM virtual machine.

erlang
 parse_entries(<<>>, Acc) ->
     lists:reverse(Acc);
 parse_entries(Data, Acc) ->
-    {Entry, Rest} = parse_entry(skip_ws(Data)),
+    Stripped = skip_ws(Data),
+    {Entry, Rest} = parse_entry(Stripped),
+    %% GHSA-6cp8: ensure forward progress. A leading non-token byte
+    %% (`!`, `@`, `=`, `;`, `.`, ...) makes parse_entry return
+    %% {undefined, Rest=Stripped}, which would otherwise loop forever.
+    %% Skip to the next ',' so at most one malformed entry is dropped.
+    Rest1 = case Entry of
+                undefined when Rest =:= Stripped -> seek_next_entry(Stripped);
+                _ -> Rest
+            end,
     case Entry of
-        undefined -> parse_entries(skip_comma(Rest), Acc);
-        _ -> parse_entries(skip_comma(Rest), [Entry | Acc])
+        undefined -> parse_entries(skip_comma(Rest1), Acc);
+        _ -> parse_entries(skip_comma(Rest1), [Entry | Acc])
     end.

+seek_next_entry(<<>>) -> <<>>;
+seek_next_entry(<<$,, _/binary>> = Data) -> Data;
+seek_next_entry(<<_, Rest/binary>>) -> seek_next_entry(Rest).

Source: GitHub Commit e548aba. This patch ensures the parser advances past malformed entries to the next comma delimiter.

Detection Methods for CVE-2026-47066

Indicators of Compromise

  • Erlang scheduler threads pinned at 100% CPU with no corresponding workload
  • Hung HTTP request processes that never return from hackney:request/5 calls
  • Outbound HTTP responses containing malformed Alt-Svc headers with leading non-token bytes such as !, @, =, or ;
  • Increasing process queue lengths in BEAM telemetry for connection processes

Detection Strategies

  • Inventory application dependencies for hackney versions between 2.0.0-beta.1 and 4.0.1 using mix deps or rebar3 tree
  • Inspect HTTP response captures for Alt-Svc headers that begin with non-token characters
  • Monitor BEAM scheduler utilization and identify long-running processes stuck in hackney_altsvc:parse_entries/2

Monitoring Recommendations

  • Enable Erlang process tracing on connection processes to detect non-returning calls into the Alt-Svc parser
  • Configure alerting on sustained 100% CPU on individual schedulers using observer or recon tooling
  • Log and review outbound HTTP response headers at proxy boundaries for anomalous Alt-Svc values

How to Mitigate CVE-2026-47066

Immediate Actions Required

  • Upgrade hackney to version 4.0.1 or later across all affected applications
  • Audit transitive dependencies including HTTPoison and other libraries that bundle hackney
  • Restrict outbound HTTP connections to trusted origins where feasible until patches are deployed
  • Restart any long-running BEAM nodes after upgrade to clear potentially wedged processes

Patch Information

The upstream fix is available in commit e548aba1f97ffa3f4750da7b772998fb78c01894 and released in hackney 4.0.1. Details are published in GitHub Security Advisory GHSA-6cp8-v795-jr2j and the Erlang Ecosystem Foundation CNA advisory. The OSV record is available at OSV EEF-CVE-2026-47066.

Workarounds

  • Route outbound HTTP traffic through a forward proxy that strips or sanitizes the Alt-Svc response header
  • Set process timeouts on hackney calls using Task.async plus Task.yield patterns in Elixir or supervisor-enforced kill timers in Erlang to bound hung requests
  • Disable connections to untrusted upstream services until the upgrade is complete
bash
# Update hackney in a Rebar3 project
rebar3 upgrade hackney

# Update hackney in a Mix (Elixir) project
mix deps.update hackney
mix deps.get

# Verify installed version is 4.0.1 or later
mix deps | grep hackney

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechHackney

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-835
  • Vendor Resources
  • CNA CVE-2026-47066

  • GitHub Commit Hackney

  • GitHub Security Advisory GHSA-6cp8-v795-jr2j

  • OSV Vulnerability EEF-CVE-2026-47066
  • Related CVEs
  • CVE-2026-47077: Benoitc Hackney DoS Vulnerability

  • CVE-2026-47070: Benoitc Hackney Information Disclosure Bug

  • CVE-2026-47069: Benoitc Hackney CRLF Injection Vulnerability

  • CVE-2026-47072: Hackney CRLF Injection Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English