# CVE-2026-119197: pyasn1: Quadratic-complexity denial of service in binary REAL 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)
- Published: 2026-10-29T19:48:52.470Z
- Modified: 2026-10-30T23:15:06.620Z
- Also known as: GHSA-mm57-4v3p-rchx
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, binary REAL decoding builds a large mantissa one octet at a time by shifting a growing integer and slicing the remaining byte string. Attacker-controlled ASN.1 includes a binary-encoded REAL with a large mantissa and reaches BER, CER, or DER decode(), with or without a schema containing REAL. RealPayloadDecoder.valueDecoder repeatedly performs a left shift, OR, and suffix copy for every mantissa octet, making decode time quadratic in mantissa length. A comparatively small REAL value can hold a decoding worker on one CPU core for seconds or longer and cause availability loss. 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-mm57-4v3p-rchx> (web)
- <https://github.com/pyasn1/pyasn1/pull/132> (web)
- <https://github.com/pyasn1/pyasn1/commit/ce3ec3390784780a530047e0e77be5ff457636a4> (web)
- <https://github.com/pyasn1/pyasn1/releases/tag/v0.6.5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-119197> (advisory)
- <https://github.com/pyasn1/pyasn1> (package)

## Sources

- CVE List: [CVE-2026-119197](https://www.cve.org/CVERecord?id=CVE-2026-119197), CVE Terms of Use, modified 2026-10-30
- GitHub Advisory Database: [GHSA-mm57-4v3p-rchx](https://github.com/advisories/GHSA-mm57-4v3p-rchx), CC-BY-4.0, modified 2026-10-30
- NVD: [CVE-2026-119197](https://nvd.nist.gov/vuln/detail/CVE-2026-119197), Public domain, modified 2026-10-30

---

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