cve.bz

CVE-2026-59886 pyasn1 pyasn1: Uncontrolled Resource Consumption

7.5 highEPSS 0.4%Fix available

High (7.5) in pyasn1 pyasn1. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in pyasn1 0.6.4.

On this page
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.

Severity

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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 39th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-07-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-400 Uncontrolled Resource Consumption
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-59886 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-59886?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-59886?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-59886 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pyasn1:pyasn1before 0.6.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hm4w-wwcw-mr6rPyPIpyasn1<0.6.40.6.4
PYSEC-2026-3457PyPIpyasn1<0.6.40.6.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12pyasn10.4.8-3+deb12u3DEBIAN-CVE-2026-59886 DLA-4778-1
Debian13pyasn10.6.1-1+deb13u3DEBIAN-CVE-2026-59886
Debian14pyasn10.6.4-1DEBIAN-CVE-2026-59886
Ubuntu22.04:LTSpyasn10.4.8-1ubuntu0.3UBUNTU-CVE-2026-59886 USN-8712-1 USN-9011-1
Ubuntu24.04:LTSpyasn10.4.8-4ubuntu0.3UBUNTU-CVE-2026-59886 USN-8712-1 USN-9011-1
Ubuntu26.04:LTSpyasn10.6.3-1ubuntu0.1UBUNTU-CVE-2026-59886 USN-8712-1 USN-9011-1
Ubuntu26.10pyasn10.6.4-1ubuntu0.1USN-9011-1
UbuntuPro:14.04:LTSpyasn10.1.7-1ubuntu2.1+esm2UBUNTU-CVE-2026-59886 USN-9011-1
UbuntuPro:16.04:LTSpyasn10.1.9-1ubuntu0.1~esm2UBUNTU-CVE-2026-59886 USN-9011-1
UbuntuPro:18.04:LTSpyasn10.4.2-3ubuntu0.18.04.1~esm2UBUNTU-CVE-2026-59886 USN-9011-1
UbuntuPro:20.04:LTSpyasn10.4.2-3ubuntu0.20.04.1~esm2UBUNTU-CVE-2026-59886 USN-9011-1
Red Hatansible_automation_platform:2.5::el8automation-controller-cli, automation-controller-venv-tower0:4.6.32-1.el8apRHSA-2026:59135
Red Hatansible_automation_platform:2.5::el8automation-controller-venv-tower0:4.6.31-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8automation-eda-controller, automation-eda-controller-base, automation-eda-controller-base-services and 2 more0:1.1.21-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8automation-gateway-proxy, automation-gateway-proxy-server, automation-gateway-proxy-debugsource and 1 more0:2.5.10-7.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8automation-gateway-server0:2.5.20260824-1.el8apRHSA-2026:59135
Red Hatansible_automation_platform:2.5::el8python3.12-aiohttp0:3.14.1-2.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8python3.12-aiohttp0:3.14.3-1.el8apRHSA-2026:59135
Red Hatansible_automation_platform:2.5::el8python3.12-daphne0:4.2.2-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8python3.12-gitpython0:3.1.59-1.el8apRHSA-2026:59135
Red Hatansible_automation_platform:2.5::el8python3.12-pillow0:12.3.0-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8python3.12-pyasn10:0.6.4-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8receptor, receptorctl, receptor-debuginfo and 1 more0:1.6.7-1.el8apRHSA-2026:50319
75 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 morepython-pyasn10.5.0-150400.12.16.1SUSE-SU-2026:3238-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-pyasn10.6.1-160000.5.1SUSE-SU-2026:22830-1
SUSELinux Micro 6.0python-pyasn10.5.0-5.1SUSE-SU-2026:23006-1
SUSELinux Micro 6.1python-pyasn10.5.0-slfo.1.1_4.1SUSE-SU-2026:23167-1
SUSELinux Micro 6.2python-pyasn10.6.1-160000.5.1SUSE-SU-2026:22765-1
openSUSELeap 16.0python-pyasn10.6.1-160000.5.1openSUSE-SU-2026:21392-1
openSUSETumbleweedpython-pyasn10.6.4-1.1openSUSE-SU-2026:11318-1
AlmaLinux8fence-agents-all, fence-agents-apc, fence-agents-aws and 45 more4.2.1-129.el8_10.29ALSA-2026:53363
AlmaLinux8python3-pyasn1, python3-pyasn1-modules0.3.7-6.el8_10.2ALSA-2026:59241
AlmaLinux8resource-agents, resource-agents-gcp, resource-agents-paf and 1 more4.9.0-54.el8_10.37.alma.1ALSA-2026:53364
AlmaLinux9fence-virt, fence-virtd, fence-virtd-cpg and 53 more4.10.0-110.el9_8.6ALSA-2026:53365
AlmaLinux9python3-pyasn1, python3-pyasn1-modules0.4.8-7.el9_8.1ALSA-2026:59242
AlmaLinux10python3-pyasn1, python3-pyasn1-modules0.6.2-1.el10_2.1ALSA-2026:59243
Rocky Linux8fence-agents0:4.2.1-129.el8_10.29RLSA-2026:53363
Rocky Linux8python-pyasn10:0.3.7-6.el8_10.2RLSA-2026:59241
Rocky Linux8resource-agents0:4.9.0-54.el8_10.37RLSA-2026:53364
Rocky Linux9fence-agents0:4.10.0-110.el9_8.6RLSA-2026:53365
Rocky Linux9python-pyasn10:0.4.8-7.el9_8.1RLSA-2026:59242
Rocky Linux10python-pyasn10:0.6.2-1.el10_2.1RLSA-2026:59243
Azure Linux3python-pyasn10.4.8-3AZL-92436
Alpaquita23py3-asn10.4.8-r6BELL-CVE-2026-59886
Alpaquita25, streampy3-asn10.6.4-r0BELL-CVE-2026-59886

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw in pyasn1, rated as Important, could lead to a denial of service in Red Hat products that process untrusted ASN.1 data. A remote attacker could send a specially crafted BER, CER, or DER encoded REAL value with a large exponent, causing applications to consume excessive resources during decoding operations such as printing, logging, or arithmetic, thereby rendering the service unavailable.

Red Hat's mitigation

When processing untrusted ASN.1 data with pyasn1, avoid calling prettyPrint(), str(), float(), int(), or performing comparisons or arithmetic on decoded Real (ASN.1 REAL type) objects. Instead, inspect the raw (mantissa, base, exponent) tuple directly. Where logging decoded ASN.1 structures is necessary, filter out or sanitize Real-typed values before conversion.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.5 for RHEL 8python3.12-pyasn1-0:0.6.4-1.el8apFixed 2026-08-04RHSA-2026:50319
Red Hat Ansible Automation Platform 2.5 for RHEL 8automation-controller-0:4.6.32-1.el8apFixed 2026-08-24RHSA-2026:59135
Red Hat Ansible Automation Platform 2.5 for RHEL 9python3.12-pyasn1-0:0.6.4-1.el9apFixed 2026-08-04RHSA-2026:50319
Red Hat Ansible Automation Platform 2.5 for RHEL 9automation-controller-0:4.6.32-1.el9apFixed 2026-08-24RHSA-2026:59135
Red Hat Ansible Automation Platform 2.6 for RHEL 9python3.12-pyasn1-0:0.6.4-1.el9apFixed 2026-08-04RHSA-2026:50336
Red Hat Ansible Automation Platform 2.6 for RHEL 9automation-controller-0:4.7.16-1.el9apFixed 2026-08-24RHSA-2026:59136
Red Hat Enterprise Linux 10python-pyasn1-0:0.6.2-1.el10_2.1Fixed 2026-08-25RHSA-2026:59243
Red Hat Enterprise Linux 10.0 Extended Update Supportpython-pyasn1-0:0.6.2-1.el10_0.2Fixed 2026-08-25RHSA-2026:59238
Red Hat Enterprise Linux 7 Extended Lifecycle Supportresource-agents-0:4.1.1-61.el7_9.24Fixed 2026-08-25RHSA-2026:59329
Red Hat Enterprise Linux 7 Extended Lifecycle Supportpython-pyasn1-0:0.1.9-7.el7_9.3Fixed 2026-08-25RHSA-2026:59240
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Will not fix
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Affected
Migration Toolkit for Applications 8mta/mta-solution-server-rhel9Not affected
Migration Toolkit for Containersrhmtc/openshift-migration-rhel8-operatorWill not fix
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-rhel9-operatorAffected
Migration Toolkit for Virtualizationmtv-candidate/mtv-rhel9-operatorWill not fix
OpenShift Lightspeedopenshift-lightspeed/lightspeed-agentic-sandbox-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-to-dataverse-exporter-rhel9Affected
OpenShift Service Mesh 3openshift-service-mesh/kiali-rhel9-operatorNot affected
158 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-59886.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON