{"id":"CVE-2026-59980","aliases":["CVE-2026-59980","GHSA-8v8h-hg4w-mvq2","PYSEC-2026-4053"],"related":[],"kind":"vulnerability","state":"published","title":"hpack: Unbounded variable integer decoding can cause run-away computation on malformed input","summary":"hpack is an HTTP/2 Header Encoding for Python. Prior to version 4.2.0, unbounded variable integer decoding can cause run-away computation on malformed input leading to O(n^2) runtime, effectively blocking further processing with large enough unsanitized input. A fix is available in python-hyper/hpack v4.2.0 to restricted variable integer decoding to uint32 to prevent run-away computation. As a workaround, sanitize input to hpack decoder for long sequences of `0xFF` values to prevent malicious use.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"hpack is an HTTP/2 Header Encoding for Python. Prior to version 4.2.0, unbounded variable integer decoding can cause run-away computation on malformed input leading to O(n^2) runtime, effectively blocking further processing with large enough unsanitized input. A fix is available in python-hyper/hpack v4.2.0 to restricted variable integer decoding to uint32 to prevent run-away computation. As a workaround, sanitize input to hpack decoder for long sequences of `0xFF` values to prevent malicious use.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nUsers of the python-hyper/hpack library, most commonly used as downstream dependency of the python-hyper/h2 library (an HTTP/2 client and server implementation). Unbounded variable integer decoding can cause run-away computation on malformed input leading to O(n^2) runtime, effectively blocking further processing with large enough unsanitized input.\n\n### Patches\nA fix is available in python-hyper/hpack v4.2.0 to restricted variable integer decoding to uint32 to prevent run-away computation.\n\n### Workarounds\nSanitize input to hpack decoder for long sequences of `0xFF` values to prevent malicious use.","format":"markdown","source":"ghsa"}],"published":"2026-09-23T22:07:35.095Z","modified":"2026-10-01T17:55:38.238Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":"< 4.2.0","status":"affected"}],"vendor":"python-hyper","product":"hpack","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.2.0"}],"ecosystem":"PyPI","package":"hpack","purl":"pkg:pypi/hpack","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.2.0"}],"ecosystem":"PyPI","package":"hpack","purl":"pkg:pypi/hpack","source":"pysec"}],"references":[{"url":"https://github.com/python-hyper/hpack/security/advisories/GHSA-8v8h-hg4w-mvq2","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/python-hyper/hpack/commit/8cfb02c547740e16dbfe7aba77bad84b297cec2c","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://cs.opensource.google/go/x/net/+/master:http2/hpack/hpack.go;l=468;drc=8e2b117aee74f6b86c207a808b0255de45c0a18a","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://docs.rs/http2/0.5.19/src/http2/hpack/decoder.rs.html#403","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59980","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/python-hyper/hpack","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/python-hyper/hpack/releases/tag/v4.2.0","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/hpack","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-8v8h-hg4w-mvq2","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-24T13:24:31.887Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-59980","url":"https://www.cve.org/CVERecord?id=CVE-2026-59980","licence":"CVE Terms of Use","modified":"2026-09-24T13:25:08.900Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8v8h-hg4w-mvq2","url":"https://github.com/advisories/GHSA-8v8h-hg4w-mvq2","licence":"CC-BY-4.0","modified":"2026-10-01T17:55:38.238Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-59980","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59980","licence":"Public domain","modified":"2026-09-30T17:32:07.107Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4053","url":"https://osv.dev/vulnerability/PYSEC-2026-4053","licence":"CC-BY-4.0","modified":"2026-10-01T17:45:03.832Z"}],"updatedAt":"2026-11-25T22:59:40.724Z","epss":{"score":0.00302,"percentile":0.24656,"date":"2026-12-01T12:00:22.000Z"}}