# CVE-2026-47066: Infinite loop in Alt-Svc header parser in hackney

- Severity: High 8.7 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-25T14:00:39.707Z
- Modified: 2026-11-25T17:23:07.622Z
- Also known as: GHSA-6cp8-v795-jr2j, EEF-CVE-2026-47066
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: EEF

## Description

Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in benoitc hackney allows Excessive Allocation.

The Alt-Svc response header parser in src/hackney_altsvc.erl does not guarantee forward progress. When parse_token/2 receives a non-token, non-whitespace, non-comma byte (e.g. !, @, =, ;), it returns the input unchanged. skip_comma/1 also returns the buffer unchanged when the first byte is not a comma. parse_entries/2 then recurses with identical data, creating a tight infinite tail-recursive loop that pins a scheduler at 100% CPU. The calling process never returns.

The entry point parse_and_cache/3 is called synchronously in the connection process on every HTTP response. A single-byte Alt-Svc: ! response header is sufficient to trigger the hang; the header is fully controlled by any HTTP origin the client connects to.

This issue affects hackney: from 2.0.0-beta.1 before 4.0.1.

(As written by CVE List.)

## Affected

- hackney: from 2.0.0-beta.1 before 4.0.1
- benoitc/hackney: from 408e5fe20302226ea8c74dde2bcbd452d712b5b2 before e548aba1f97ffa3f4750da7b772998fb78c01894
- hackney (Hex): from 2.0.0 before 4.0.1; from 2.0.0-beta.1 before 4.0.1
- https://github.com/benoitc/hackney: from 408e5fe20302226ea8c74dde2bcbd452d712b5b2 before e548aba1f97ffa3f4750da7b772998fb78c01894
- benoitc hackney: from 2.0.0 before 4.0.1

## Every score

- EEF: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/benoitc/hackney/security/advisories/GHSA-6cp8-v795-jr2j> (exploit, advisory, patch, related, vendor-advisory, web)
- <https://cna.erlef.org/cves/CVE-2026-47066.html> (patch, related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-47066> (patch, related, third-party-advisory, web)
- <https://github.com/benoitc/hackney/commit/408e5fe20302226ea8c74dde2bcbd452d712b5b2> (related, web)
- <https://github.com/benoitc/hackney/commit/e548aba1f97ffa3f4750da7b772998fb78c01894> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-47066> (advisory)
- <https://github.com/benoitc/hackney> (package)
- <https://hex.pm/packages/hackney> (package)

## Sources

- CVE List: [CVE-2026-47066](https://www.cve.org/CVERecord?id=CVE-2026-47066), CVE Terms of Use, modified 2026-11-20
- GitHub Advisory Database: [GHSA-6cp8-v795-jr2j](https://github.com/advisories/GHSA-6cp8-v795-jr2j), CC-BY-4.0, modified 2026-06-26
- Erlang Ecosystem Foundation: [EEF-CVE-2026-47066](https://osv.dev/vulnerability/EEF-CVE-2026-47066), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-47066](https://nvd.nist.gov/vuln/detail/CVE-2026-47066), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-47066 · Whole record: https://cve.day/CVE-2026-47066.json · Rebuilt by cve.day 2026-11-25T22:59:22.272Z
