# CVE-2026-119196: pyasn1: Quadratic CPU consumption in constructed BIT STRING decoding

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.55%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-29T19:44:46.031Z
- Modified: 2026-11-04T02:17:18.177Z
- Also known as: GHSA-2qm8-x737-gmw5
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, constructed BIT STRING decoding repeatedly shifts and copies the complete bit value accumulated from earlier fragments. Attacker-controlled BER or CER input contains many constructed BIT STRING fragments; schema-driven DER also accepts a definite-length constructed BIT STRING. BitStringPayloadDecoder repeatedly calls BitString.fromOctetString with the prior bitString as prepend, shifting an ever-growing SizedInteger for each fragment and causing quadratic work. Large fragmented values can exhaust CPU during decode() without requiring later conversion or formatting. This issue is fixed in version 0.6.5.

(As written by CVE List.)

## Affected

- pyasn1 pyasn1: < 0.6.5
- pyasn1 (PyPI): before 0.6.5

## Every score

- GitHub_M: 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`
- GitHub: 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/pyasn1/pyasn1/security/advisories/GHSA-2qm8-x737-gmw5> (exploit, web)
- <https://github.com/pyasn1/pyasn1/pull/132> (web)
- <https://github.com/pyasn1/pyasn1/commit/73ba7b043cc7e92cb37f16f2c955bff93b0e6f6c> (web)
- <https://github.com/pyasn1/pyasn1/releases/tag/v0.6.5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-119196> (advisory)
- <https://github.com/pyasn1/pyasn1> (package)

## Sources

- CVE List: [CVE-2026-119196](https://www.cve.org/CVERecord?id=CVE-2026-119196), CVE Terms of Use, modified 2026-11-04
- GitHub Advisory Database: [GHSA-2qm8-x737-gmw5](https://github.com/advisories/GHSA-2qm8-x737-gmw5), CC-BY-4.0, modified 2026-10-30
- NVD: [CVE-2026-119196](https://nvd.nist.gov/vuln/detail/CVE-2026-119196), Public domain, modified 2026-11-04

---

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