# CVE-2026-59886: pyasn1 resource consumption in univ.Real float conversion

Source: https://junglewise.ai/threats/cve-2026-59886-pyasn1-resource-consumption-in-univ-real-float-conversion  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-14. Updated: 2026-07-21  
License: CC BY 4.0 with a link back

CVE-2026-59886 · Severity: high · CVSS 7.5 · Published 2026-07-14

A vulnerability in the pyasn1 library, which is used to handle data encoded in the ASN.1 format, can allow an attacker to crash an application. By sending a specially crafted data value, an attacker can force the application to consume excessive CPU and memory resources, leading to a denial-of-service. This affects any system that processes and then logs, prints, or compares untrusted ASN.1 data.

Technologies: [Pyasn1](https://junglewise.ai/threats/technologies/pyasn1), [pyasn1 (PyPI)](https://junglewise.ai/threats/technologies/pypi-pyasn1). Vendors: [Pyasn1](https://junglewise.ai/threats/vendors/pyasn1), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-59886 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-59886 being exploited in the wild.

**How severe is CVE-2026-59886?** High severity, with a CVSS score of 7.5, published 14 July 2026.

**Which products and versions are affected?** Pyasn1 < 0.6.4, <= 0.6.3; pyasn1 (PyPI) ECOSYSTEM:introduced=0,fixed=0.6.4.

**Is there a fix for CVE-2026-59886?** Yes. pyasn1 (PyPI): upgrade to 0.6.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-59886 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-59886?** Check whether you run Pyasn1 or pyasn1 (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- pyasn1 (PyPI): upgrade to 0.6.4 or later

  ```sh
  pip install "pyasn1>=0.6.4"
  ```


## Technical details

The pyasn1 library's univ.Real type is vulnerable to uncontrolled resource consumption (CWE-400) during float conversion. The root cause is the use of exact big-integer exponentiation when converting (mantissa, base, exponent) values to Python floats. An attacker can provide a BER/CER/DER-encoded REAL value with a very large exponent, causing the process to hang while attempting to materialize an astronomically large integer. This is triggered by operations such as prettyPrint(), str(), comparisons, or explicit float() calls on decoded objects. The issue is fixed in version 0.6.4 by using math.ldexp() for binary values and implementing overflow checks for decimal values.

## Affected products

- pyasn1 pyasn1 <= 0.6.3

## Identifiers

- CVE-2026-59886
- GHSA-hm4w-wwcw-mr6r
- PYSEC-2026-3457

## Timeline

- 2026-07-09: disclosed: Initial report to GitHub Advisory Database
- 2026-07-14: advisory: NVD publication date
- 2026-07-21: patched: GitHub Advisory reviewed and updated with patch information

## References

- [https://api.github.com/users/gvozdila](https://api.github.com/users/gvozdila)
- [https://github.com/gvozdila](https://github.com/gvozdila)
- [https://api.github.com/users/gvozdila/gists%7B/gist_id%7D](https://api.github.com/users/gvozdila/gists%7B/gist_id%7D)
- [https://api.github.com/users/gvozdila/repos](https://api.github.com/users/gvozdila/repos)
- [https://avatars.githubusercontent.com/u/63854500?v=4](https://avatars.githubusercontent.com/u/63854500?v=4)
- [https://api.github.com/users/gvozdila/events%7B/privacy%7D](https://api.github.com/users/gvozdila/events%7B/privacy%7D)

## Related threats

- [pyasn1 quadratic binary REAL mantissa decoding DoS](https://junglewise.ai/threats/cve-2026-119197-pyasn1-is-a-generic-asn-1-library-for-python-prior-to-0-6-5)
- [pyasn1 quadratic CPU exhaustion in BIT STRING decoding](https://junglewise.ai/threats/cve-2026-119196-pyasn1-is-a-generic-asn-1-library-for-python-prior-to-0-6-5)
- [pyasn1 quadratic algorithm denial of service in ASN.1 decoding](https://junglewise.ai/threats/cve-2026-119195-pyasn1-is-a-generic-asn-1-library-for-python-prior-to-0-6-5)
- [pyasn1 quadratic CPU use in schemaless container decoding](https://junglewise.ai/threats/cve-2026-119194-pyasn1-is-a-generic-asn-1-library-for-python-from-0-3-3-until-0)
- [pyasn1 algorithmic complexity denial of service in OID processing](https://junglewise.ai/threats/cve-2026-59885-pyasn1-algorithmic-complexity-denial-of-service-in-oid-processing)
