Quadratic-time denial of service in pyasn1 string and ANY decoding
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 1 fixed, 23 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-407.
Summary
The pyasn1 Python library is affected before 0.6.5. Constructed string and indefinite-length ANY decoding repeatedly concatenates each fragment onto a growing bytes value, which causes quadratic-time work (CWE-407). A remote unauthenticated attacker can send BER or CER data with many fragments to exhaust CPU on decoding workers, with no confidentiality or integrity impact.
Written with Claude Haiku 5.5 from the sources below · 2026-11-06
Description from the CNA
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, constructed string and indefinite-length ANY decoding repeatedly concatenates each fragment onto a growing bytes value. Attacker-controlled BER or CER data can use many constructed OCTET STRING or character-string fragments. DER rejects constructed OCTET STRING without a schema, but accepts its definite-length form when asn1Spec selects univ.OctetString; it also accepts constructed character strings such as UTF8String without a schema, even though those encodings are not valid DER. The separate indefinite-length ANY path is reachable in BER and CER when asn1Spec selects univ.Any; DER rejects indefinite lengths. OctetStringPayloadDecoder uses growing header concatenation and AnyPayloadDecoder.indefLenValueDecoder uses growing chunk concatenation, repeatedly copying an increasing prefix and causing quadratic work. A sufficiently fragmented value can occupy decoding workers and cause CPU exhaustion without confidentiality or integrity impact. This issue is fixed in version 0.6.5.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pyasn1 | pyasn1 | before 0.6.5 | 0.6.5 | Patch available | CNA |
| — | pyasn1 (PyPI) | before 0.6.5 | 0.6.5 | Patch available | GHSA-9m75-vc3g-4x39 |
- pyasn1 Vendorpyasn1 Affected before 0.6.5 Fixed in 0.6.5 Patch available CNA
- pyasn1 (PyPI) Vendor— Affected before 0.6.5 Fixed in 0.6.5 Patch available GHSA-9m75-vc3g-4x39
Remediation
Upgrade pyasn1 to version 0.6.5. Red Hat fixes this in Red Hat Trusted Artifact Signer 1.5 through RHSA-2026:95261. Red Hat reports no fix available for Ansible Automation Orchestrator 2026, Exploit Intelligence, Fence Agents Remediation Operator, Lightspeed Core, Migration Toolkit for Applications 8 and other products.
Written with Claude Haiku 5.5 from the sources below · 2026-11-06
- Fix · CNA pyasn1 (pyasn1) Fixed in 0.6.5
- Fix · GHSA-9m75-vc3g-4x39 pyasn1 (PyPI) Fixed in 0.6.5 Advisory →
Red Hat 1 advisory
- RHSA-2026:95261 Released 2026-11-04 · Red Hat rating CriticalRHTAS 1.5.1 - Release of Model Transparency 1.0.6
- Red Hat Trusted Artifact Signer 1.5 registry.redhat.io/rhtas/model-transparency-rhel9
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Ansible Automation Orchestrator 2026 | Affected | No fix yet |
| Exploit Intelligence | Affected | No fix yet |
| Fence Agents Remediation Operator | Affected | No fix yet |
| Lightspeed Core | Affected | No fix yet |
| Migration Toolkit for Applications 8 | Affected | No fix yet |
| Migration Toolkit for Containers | Affected | No fix yet |
| Migration Toolkit for Virtualization | Affected | No fix yet |
| OpenShift Lightspeed | Affected | No fix yet |
| Red Hat AI Inference Server | Affected | No fix yet |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
| Red Hat Enterprise Linux 10 | Affected | No fix yet |
| Red Hat Enterprise Linux 7 | Affected | No fix yet |
| Red Hat Enterprise Linux 8 | Affected | No fix yet |
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | Affected | No fix yet |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet |
| Red Hat OpenStack Platform 16.2 | Affected | No fix yet |
| Red Hat OpenStack Platform 17.1 | Affected | No fix yet |
| Red Hat Quay 3 | Affected | No fix yet |
| Red Hat Satellite 6 | Affected | No fix yet |
| Red Hat Trusted Artifact Signer | Affected | No fix yet |
| Red Hat Trusted Artifact Signer 1.5 | Fixed | RHSA-2026:95261 |
Not affected: 4 products
- OpenShift Service Mesh 3
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat OpenShift AI (RHOAI)
- Service Telemetry Framework 1.5
Timeline
- 2026-10-29 Threatist record created from CVE-2026-119195
- 2026-10-29 CISA SSVC decision points changed
- 2026-10-29 Priority changed: MEDIUM → HIGH
- 2026-10-30 Affected versions changed · Red Hat
- 2026-10-30 CVSS score added · Red Hat
- 2026-10-30 Alias added: GHSA-9m75-vc3g-4x39
- 2026-10-30 Fix available: PyPI/[email protected] · GHSA-9m75-vc3g-4x39
- 2026-10-30 CVSS score added · GHSA-9m75-vc3g-4x39
- 2026-10-30 Weakness changed · GHSA-9m75-vc3g-4x39
- 2026-10-30 6 new references · GHSA-9m75-vc3g-4x39
- 2026-11-03 Affected versions changed · Red Hat
- 2026-11-05 Fix available: Red Hat Trusted Artifact Signer 1.5 · Red Hat
- 2026-11-05 Affected versions changed · Red Hat
- 2026-11-06 Fix available: RHSA-2026:95261 · Red Hat
- 2026-11-06 Affected versions changed · Red Hat
- 2026-11-07 Affected versions changed · Red Hat
References
More pyasn1 vulnerabilities
- TI-2026-82745 Quadratic CPU consumption in pyasn1 constructed BIT STRING decoding CVSS 3.1HIGH 7.5
- TI-2026-82741 Quadratic CPU use in pyasn1 schemaless BER/CER/DER decoding CVSS 3.1HIGH 7.5
- TI-2026-23747 pyasn1 Vulnerable to Denial of Service via Unbounded Recursion CVSS 3.1HIGH 7.5
- TI-2026-18923 pyasn1 has a DoS vulnerability in decoder CVSS 3.1HIGH 7.5
- TI-2026-42699 pyasn1: Quadratic complexity in OBJECT IDENTIFIER and RELATIVE-OID processing allows denial of service CVSS 3.1HIGH 7.5
- TI-2026-42698 pyasn1 BER/CER/DER decoder denial of service via unbounded long-form tag IDs CVSS 3.1HIGH 7.5
Sources
- CVE-2026-119195 · CVE Program
- CVE-2026-119195 · NVD
- FIRST EPSS
- GHSA-9m75-vc3g-4x39 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-119195 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences