CVE-2026-47066
Infinite loop in Alt-Svc header parser in hackney
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.753% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 8.7 · published by EEFCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:58:40.071Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:58:40.071Z | CVE Program |
| epss | verified | 2026-11-19T16:04:50.912Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:53.275Z | OSV |
| affected | verified | 2026-11-19T12:58:40.071Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:40.071Z | CVE Program |
Affected versions and configuration
benoitc hackney; modules: hackney_altsvc; default status: unaffected: 2.0.0-beta.1 to < 4.0.1 [affected; scheme: semver] benoitc hackney; modules: hackney_altsvc; default status: unaffected: 408e5fe20302226ea8c74dde2bcbd452d712b5b2 to < e548aba1f97ffa3f4750da7b772998fb78c01894 [affected; scheme: git]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"cpes": [
"cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/benoitc/hackney",
"vendor": "benoitc",
"modules": [
"hackney_altsvc"
],
"product": "hackney",
"versions": [
{
"status": "affected",
"version": "2.0.0-beta.1",
"lessThan": "4.0.1",
"versionType": "semver"
}
],
"packageURL": "pkg:hex/hackney",
"packageName": "hackney",
"programFiles": [
"src/hackney_altsvc.erl"
],
"collectionURL": "https://repo.hex.pm",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "hackney_altsvc:parse_entries/2"
},
{
"name": "hackney_altsvc:parse_entry/1"
},
{
"name": "hackney_altsvc:parse_protocol/1"
},
{
"name": "hackney_altsvc:parse_token/2"
},
{
"name": "hackney_altsvc:skip_comma/1"
}
]
},
{
"cpes": [
"cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/benoitc/hackney",
"vendor": "benoitc",
"modules": [
"hackney_altsvc"
],
"product": "hackney",
"versions": [
{
"status": "affected",
"version": "408e5fe20302226ea8c74dde2bcbd452d712b5b2",
"lessThan": "e548aba1f97ffa3f4750da7b772998fb78c01894",
"versionType": "git"
}
],
"packageURL": "pkg:github/benoitc/hackney",
"packageName": "benoitc/hackney",
"programFiles": [
"src/hackney_altsvc.erl"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "hackney_altsvc:parse_entries/2"
},
{
"name": "hackney_altsvc:parse_entry/1"
},
{
"name": "hackney_altsvc:parse_protocol/1"
},
{
"name": "hackney_altsvc:parse_token/2"
},
{
"name": "hackney_altsvc:skip_comma/1"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-47066",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-05-26T15:50:47.725364Z"
}
}
}
],
"references": [
{
"url": "https://github.com/benoitc/hackney/security/advisories/GHSA-6cp8-v795-jr2j",
"tags": [
"exploit"
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-05-26T15:50:51.330Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "EEF-CVE-2026-47066",
"aliases": [
"CVE-2026-47066",
"GHSA-6cp8-v795-jr2j"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "2.0.0-beta.1"
},
{
"fixed": "4.0.1"
}
]
}
],
"package": {
"name": "hackney",
"purl": "pkg:hex/hackney",
"ecosystem": "Hex"
},
"versions": [
"2.0.0",
"2.0.0-beta.1",
"2.0.1",
"3.0.0",
"3.0.1",
"3.0.2",
"3.0.3",
"3.1.0",
"3.1.1",
"3.1.2",
"3.2.0",
"3.2.1",
"4.0.0"
],
"database_specific": {
"source": "https://cna.erlef.org/osv/EEF-CVE-2026-47066.json"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/benoitc/hackney/security/advisories/GHSA-6cp8-v795-jr2j",
"type": "ADVISORY"
},
{
"url": "https://cna.erlef.org/cves/CVE-2026-47066.html",
"type": "WEB"
},
{
"url": "https://github.com/benoitc/hackney/commit/e548aba1f97ffa3f4750da7b772998fb78c01894",
"type": "FIX"
},
{
"url": "https://hex.pm/packages/hackney",
"type": "PACKAGE"
}
],
"relatedGitRanges": [
{
"ranges": [
{
"repo": "https://github.com/benoitc/hackney",
"type": "GIT",
"events": [
{
"introduced": "408e5fe20302226ea8c74dde2bcbd452d712b5b2"
},
{
"fixed": "e548aba1f97ffa3f4750da7b772998fb78c01894"
}
]
}
],
"versions": [],
"database_specific": {
"source": "https://cna.erlef.org/osv/EEF-CVE-2026-47066.json"
}
}
],
"database_specific": {
"cpe_ids": [
"cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*"
],
"cwe_ids": [
"CWE-835"
],
"capec_ids": [
"CAPEC-130"
]
}
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-6cp8-v795-jr2j",
"aliases": [
"CVE-2026-47066",
"EEF-CVE-2026-47066"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "2.0.0"
},
{
"fixed": "4.0.1"
}
]
}
],
"package": {
"name": "hackney",
"purl": "pkg:hex/hackney",
"ecosystem": "Hex"
},
"versions": [
"2.0.0",
"2.0.1",
"3.0.0",
"3.0.1",
"3.0.2",
"3.0.3",
"3.1.0",
"3.1.1",
"3.1.2",
"3.2.0",
"3.2.1",
"4.0.0"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-6cp8-v795-jr2j/GHSA-6cp8-v795-jr2j.json"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/benoitc/hackney/security/advisories/GHSA-6cp8-v795-jr2j",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-47066",
"type": "ADVISORY"
},
{
"url": "https://github.com/benoitc/hackney/commit/e548aba1f97ffa3f4750da7b772998fb78c01894",
"type": "WEB"
},
{
"url": "https://cna.erlef.org/cves/CVE-2026-47066.html",
"type": "WEB"
},
{
"url": "https://github.com/benoitc/hackney",
"type": "PACKAGE"
},
{
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-47066",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-835"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2026-05-25T15:16:21Z",
"github_reviewed_at": "2026-06-26T21:53:07Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Hex / package | hackney | Not a distribution channel | 4.0.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:53.275ZArchived source JSON
Source publication: 2026-05-25T14:00:39.707Z
Source modification: 2026-07-30T18:22:08.064ZDocument fingerprint
d85b75b9740b08bb66f3cdb23c0e66c2204170fc5c224466d45fabf77c47aeab - OSVConsulted: 2026-11-19T12:52:53.275ZArchived source JSON
Source publication: 2026-06-26T21:53:07.000Z
Source modification: 2026-06-26T22:00:09.483ZDocument fingerprint
d85b75b9740b08bb66f3cdb23c0e66c2204170fc5c224466d45fabf77c47aeab - CVE ProgramConsulted: 2026-11-19T12:58:40.071ZArchived source JSON
Source publication: 2026-05-25T14:00:39.707Z
Source modification: 2026-05-27T15:40:41.946ZDocument fingerprint
e455ec740925b86a959909585bf894bfc29425f43eb90deac777b90d48d6d517 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:50.912ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
9bd0c1c251982e1be7b48f09282b2512834c1ea9f8039b38ef6e2e8d9f4b1338
Official status history
- UNKNOWN → PUBLISHED · · evidence