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

> Attackers can cause denial of service in applications using pyasn1 by sending crafted ASN.1 REAL values that trigger excessive resource consumption during conversion.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 14 Jul 2026
- **Updated:** 15 Jul 2026
- **Also known as:** ALSA-2026:53363, ALSA-2026:53364, ALSA-2026:53365, ALSA-2026:59241, ALSA-2026:59242, ALSA-2026:59243, AZL-92436, BELL-CVE-2026-59886, CLEANSTART-2026-ON23616, CLSA-2026-1792809177, DEBIAN-CVE-2026-59886, ECHO-e4fd-e77a-5a0f, GHSA-hm4w-wwcw-mr6r, MINI-2vgq-h39x-pvg9, MINI-4ccx-rj32-2w49, MINI-59p6-3jh3-mw96, MINI-68r3-phjf-q4c4, MINI-6w72-v2v5-vj3j, MINI-76h7-35mj-95wc, MINI-8f57-2gxf-ffqh, MINI-8mrw-cqvm-74mg, MINI-8p42-px8j-xp85, MINI-8qmj-9f3w-8gg4, MINI-9955-9w2w-fq3g, MINI-9xrx-gqcq-hgv5, MINI-c34f-hvhr-2548, MINI-cw3c-wm95-xh8r, MINI-fh7g-hwwj-v5q4, MINI-g888-pqqr-v733, MINI-hrq8-x86f-mg47, MINI-mjvh-hjfg-679j, MINI-pwvv-544r-4h5v, MINI-q8mj-q5hj-qx57, MINI-qjhv-jgcg-gw29, MINI-r82q-96hp-gq73, MINI-v88q-9wjq-5x7h, MINI-vxhv-hwfw-4f2v, MINI-wh58-v4m7-mh6x, MINI-wppr-wh34-26h7, MINI-wxj6-8675-8jx4, MINI-x85p-fwq4-47m5, PYSEC-2026-3457, RHSA-2026:53363, RHSA-2026:53364, RHSA-2026:53365, RHSA-2026:58546, RHSA-2026:58547, RHSA-2026:58548, RHSA-2026:58811, RHSA-2026:58820, RHSA-2026:58821, RHSA-2026:58822, RHSA-2026:58834, RHSA-2026:58835, RHSA-2026:59238, RHSA-2026:59239, RHSA-2026:59240, RHSA-2026:59241, RHSA-2026:59242, RHSA-2026:59243, RHSA-2026:59244, RHSA-2026:59245, RHSA-2026:59246, RHSA-2026:59247, RHSA-2026:59248, RHSA-2026:59329, RLSA-2026:53363, RLSA-2026:53364, RLSA-2026:53365, RLSA-2026:59241, RLSA-2026:59242, RLSA-2026:59243, ROOT-APP-PYPI-CVE-2026-59886, UBUNTU-CVE-2026-59886

## What is CVE-2026-59886?

CVE-2026-59886 is a high-severity denial of service vulnerability in pyasn1, published on 14 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official 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.

Weakness: CWE-770 (Allocation of Resources Without Limits or Throttling), CWE-400 (Uncontrolled Resource Consumption)

## Which versions are affected by CVE-2026-59886?

3 open source packages ship an affected version, including pyasn1. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `pyasn1` | PyPI | All versions | 0.6.4 |
| `pyasn1` | PyPI | All versions | 0.6.4 |
| `pyasn1` | PyPI | All versions | 0.6.4 |
| `python3-pyasn1` | AlmaLinux:10 | All versions | 0.6.2-1.el10_2.1 |
| `python3-pyasn1-modules` | AlmaLinux:10 | All versions | 0.6.2-1.el10_2.1 |
| `fence-agents-aliyun` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-all` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-amt-ws` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-apc` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-apc-snmp` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-aws` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-azure-arm` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-bladecenter` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-brocade` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-cisco-mds` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-cisco-ucs` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-common` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-compute` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-drac5` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-eaton-snmp` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-emerson` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-eps` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-gce` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-heuristics-ping` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-hpblade` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-ibm-powervs` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-ibm-vpc` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-ibmblade` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-ifmib` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-ilo-moonshot` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-ilo-mp` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-ilo-ssh` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-ilo2` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-intelmodular` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-ipdu` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-ipmilan` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-kdump` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-kubevirt` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-lpar` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |
| `fence-agents-mpath` | AlmaLinux:8 | All versions | 4.2.1-129.el8_10.29 |

Products: Pyasn1 Pyasn1.

## How do I fix CVE-2026-59886?

Upgrade pyasn1 to 0.6.4 or later.

## Is CVE-2026-59886 being exploited?

There is no known exploitation of CVE-2026-59886 in the wild and no public exploit code.

## Other vulnerabilities in pyasn1

- [CVE-2026-59884](https://insights.sbomify.com/CVE-2026-59884/): pyasn1 BER/CER/DER decoder denial of service via unbounded long-form tag IDs (high 7.5)
- [CVE-2026-59885](https://insights.sbomify.com/CVE-2026-59885/): pyasn1: Quadratic complexity in OBJECT IDENTIFIER and RELATIVE-OID processing allows denial of service (high 7.5)
- [CVE-2026-30922](https://insights.sbomify.com/CVE-2026-30922/): pyasn1 Vulnerable to Denial of Service via Unbounded Recursion (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-59886 and fix it if it is affected.

What it is: CVE-2026-59886 is a high-severity denial of service vulnerability in pyasn1, published on 14 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-59886 in the wild and no public exploit code.

Affected packages and fixed versions:
- pyasn1 (PyPI): affected all versions; fixed in 0.6.4
- pyasn1 (PyPI): affected all versions; fixed in 0.6.4
- pyasn1 (PyPI): affected all versions; fixed in 0.6.4

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-59886/ (Markdown: https://insights.sbomify.com/CVE-2026-59886/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-59886
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-59886
- OSV: https://osv.dev/vulnerability/CVE-2026-59886

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-59886/
Summaries are generated and may contain mistakes; the official description above is the record.
