cve.bz

CVE-2026-119197 pyasn1 pyasn1: Inefficient Algorithmic Complexity

7.5 highEPSS 0.5%Fix available

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

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

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.5% (up from 0.4% a week ago) estimated probability of exploitation activity in the next 30 days; 47th 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-10-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-119197 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-119197?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-119197?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-119197 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 CNA's record in the CVE List.

ProductAffected
pyasn1< 0.6.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mm57-4v3p-rchxPyPIpyasn1<0.6.50.6.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13pyasn1no fix listedDEBIAN-CVE-2026-119197
Debian14pyasn10.6.5-1DEBIAN-CVE-2026-119197
Ubuntu22.04:LTSpyasn10.4.8-1ubuntu0.4UBUNTU-CVE-2026-119197 USN-9011-1
Ubuntu24.04:LTSpyasn10.4.8-4ubuntu0.4UBUNTU-CVE-2026-119197 USN-9011-1
Ubuntu26.04:LTSpyasn10.6.3-1ubuntu0.2UBUNTU-CVE-2026-119197 USN-9011-1
Ubuntu26.10pyasn10.6.4-1ubuntu0.1UBUNTU-CVE-2026-119197 USN-9011-1
UbuntuPro:14.04:LTSpyasn10.1.7-1ubuntu2.1+esm2UBUNTU-CVE-2026-119197 USN-9011-1
UbuntuPro:16.04:LTSpyasn10.1.9-1ubuntu0.1~esm2UBUNTU-CVE-2026-119197 USN-9011-1
UbuntuPro:18.04:LTSpyasn10.4.2-3ubuntu0.18.04.1~esm2UBUNTU-CVE-2026-119197 USN-9011-1
UbuntuPro:20.04:LTSpyasn10.4.2-3ubuntu0.20.04.1~esm2UBUNTU-CVE-2026-119197 USN-9011-1
Azure Linux3python-pyasn1no fix listedAZL-111539

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as Important because unauthenticated remote attackers can cause significant denial of service via CPU starvation in network services that parse untrusted ASN.1 data. While the pyasn1 library is widely packaged across Red Hat Enterprise Linux and containerized application stacks, practical risk requires that an exposed application accepts external input and processes binary-encoded floating-point definitions without schema restrictions. Services handling such untrusted input synchronously within worker threads are primarily vulnerable to CPU exhaustion and availability degradation.

Red Hat's mitigation

--- CME Mitigation Guidance (2026-11-03) ---

Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.

The highest-value action is to eliminate iterative per-octet bit-shifting and byte slicing in pyasn1 binary REAL mantissa decoding in favor of linear-time integer conversion: upgrade to pyasn1 0.6.5 (or the corresponding fixed Red Hat builds), which replace the iterative per-octet shifting, bitwise OR, and byte slicing loop with a single linear-time int.from_bytes call, closing crafted ASN.1 payload containing binary-encoded REAL with a large mantissa. Until patched, this is a concern on Applications parsing untrusted ASN.1 input with pyasn1 BER, CER, or DER decoding, so Reject or strictly enforce size limits on untrusted ASN.1 inputs that may contain REAL values. As a compensating measure, Enforce RLIMIT_CPU limits on decoding processes using ulimit or prlimit to terminate workers trapped in quadratic bit-shifting and slicing loops, Impose parsing timeouts or computational limits on decoding operations to bound worker hang time from quadratic mantissa processing, and Throttle client request volume and connections to impede sustained CPU starvation across worker threads. These controls limit blast radius and contain exploitation, but they do not fix the underlying quadratic complexity defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-114 Process Resource Limits (ulimit/prlimit) (medium)

ProductPackageStateAdvisory
Red Hat AI Inference Server 3.4rhaii/vllm-rocm-rhel9:1794398147Fixed 2026-11-12RHSA-2026:99796
Red Hat Trusted Artifact Signer 1.4rhtas/model-transparency-rhel9:1794221044Fixed 2026-11-11RHSA-2026:99011
Ansible Automation Orchestrator 2026ansible-automation-platform/automation-orchestrator-backend-rhel9Affected
Exploit Intelligenceexploit-intelligence/vulnerability-analysis-rhel9Affected
Fence Agents Remediation Operatorworkload-availability/fence-agents-remediation-rhel9-operatorAffected
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Affected
Migration Toolkit for Applications 8mta/mta-rhel9-operatorAffected
Migration Toolkit for Applications 8mta/mta-solution-server-rhel9Affected
Migration Toolkit for Containersrhmtc/openshift-migration-rhel8-operatorAffected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-rhel9-operatorAffected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-agentic-sandbox-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-to-dataverse-exporter-rhel9Will not fix
OpenShift Service Mesh 3openshift-service-mesh/kiali-rhel9-operatorNot affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/volsync-operator-bundleNot affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/volsync-rhel9Not affected
Red Hat AI Inference Serverrhaii-fast/vllm-rocm-rhel9Affected
Red Hat AI Inference Serverrhaii-fast/vllm-tpu-rhel9Will not fix
Red Hat AI Inference Serverrhaii/vllm-tpu-rhel9Will not fix
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/controller-rhel8Fix deferred
115 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-119197.

References

Check your stackJSON