CVEMETERBack to radar
OFFICIAL RECORD · Erlang/Elixir packages

CVE-2026-47066

PUBLISHEDOfficial status check: verifiedCVSS 4.0: 8.7 · high

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 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
Assessment source · checked 2026-11-19T12:58:40.071Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T12:58:40.071ZCVE Program
epssverified2026-11-19T16:04:50.912ZFIRST EPSS
patchesverified2026-11-19T12:52:53.275ZOSV
affectedverified2026-11-19T12:58:40.071ZCVE Program
lifecycleverified2026-11-19T12:58:40.071ZCVE 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 JSON
OSV · 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 JSON
OSV · 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 JSON

Correction 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 typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryHex / packagehackneyNot a distribution channel4.0.1Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history