# CVE-2026-59886: pyasn1: Uncontrolled resource consumption when converting decoded REAL values

- 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.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-07-14T16:38:29.691Z
- Modified: 2026-09-10T03:50:12.333Z
- Also known as: GHSA-hm4w-wwcw-mr6r, PYSEC-2026-3457
- Weaknesses: CWE-400, CWE-770
- 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.4, the univ.Real type converted its mantissa, base, and exponent value to a Python float using exact big-integer exponentiation. A BER, CER, or DER encoded REAL value only a few bytes long can carry a very large exponent, causing float conversion through prettyPrint(), str(), comparison, arithmetic, int(), or an explicit float() call to consume excessive CPU and memory and hang applications that decode untrusted ASN.1 data and then print, log, or compare decoded objects. This issue is fixed in version 0.6.4.

(As written by CVE List.)

## Affected

- pyasn1 pyasn1: < 0.6.4; before 0.6.4
- pyasn1 (PyPI): before 0.6.4

## 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`
- PyPA Advisory Database: 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-hm4w-wwcw-mr6r> (advisory, third-party-advisory, web)
- <https://github.com/pyasn1/pyasn1/commit/e60c691cb91addb8fcefa2f537e85ede6fb1e886> (fix, patch, web)
- <https://github.com/pyasn1/pyasn1/releases/tag/v0.6.4> (advisory, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59886> (advisory)
- <https://github.com/pyasn1/pyasn1> (package)

## Sources

- CVE List: [CVE-2026-59886](https://www.cve.org/CVERecord?id=CVE-2026-59886), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-hm4w-wwcw-mr6r](https://github.com/advisories/GHSA-hm4w-wwcw-mr6r), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59886](https://nvd.nist.gov/vuln/detail/CVE-2026-59886), Public domain, modified 2026-07-21
- PyPA Advisory Database: [PYSEC-2026-3457](https://osv.dev/vulnerability/PYSEC-2026-3457), CC-BY-4.0, modified 2026-07-22

---

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