Public vulnerability disclosure

CVE-2026-119194

pyasn1: Quadratic CPU use in schemaless BER/CER/DER container decoding

publishedCWE-407

pyasn1 is a generic ASN.1 library for Python. From 0.3.3 until 0.6.5, schemaless container decoding stores every decoded component's TagSet in a growing set even though only one-versus-multiple tag types must be distinguished. Attacker-controlled BER, CER, or DER input contains many distinct long tag IDs whose TagSet hashes collide. Each later set insertion compares against an increasing number of earlier colliding tags in ConstructedPayloadDecoderBase._decodeComponentsSchemaless, producing quadratic CPU work while decoded values and order remain valid. Repeated inputs can exhaust decoder CPU and reduce service availability. This issue is fixed in version 0.6.5.

Technical severity7.5 highCVSS 3.1 · CNA: GitHub_M
Published2026-10-29Source updated 2026-11-03
Collected2026-11-034 attributed sources

Fixes and workarounds

Fix

pyasn1 (PyPI): OSV reports a fixed version 0.6.5. Check the advisory for supported release branches.

Source: OSV GHSA-fm9c-5rcf-2q5p

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
pyasn1
pyasn1
>= 0.3.3, < 0.6.5 (affected) CNA: GitHub_M
pyasn1

pyasn1
PyPI
0.3.3 (affected, PyPI)
0.3.4 (affected, PyPI)
0.3.5 (affected, PyPI)
0.3.6 (affected, PyPI)
0.3.7 (affected, PyPI)
0.4.1 (affected, PyPI)
0.4.2 (affected, PyPI)
0.4.3 (affected, PyPI)
0.4.4 (affected, PyPI)
0.4.5 (affected, PyPI)
0.4.6 (affected, PyPI)
0.4.7 (affected, PyPI)
0.4.8 (affected, PyPI)
0.5.0 (affected, PyPI)
0.5.1 (affected, PyPI)
0.6.0 (affected, PyPI)
0.6.1 (affected, PyPI)
0.6.2 (affected, PyPI)
0.6.3 (affected, PyPI)
0.6.4 (affected, PyPI)
Ecosystem version events: introduced 0.3.3; fixed 0.6.5
Source events (ECOSYSTEM)
[
  {
    "introduced": "0.3.3"
  },
  {
    "fixed": "0.6.5"
  }
]

Other versions: unaffected
OSV GHSA-fm9c-5rcf-2q5p

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 7.5
high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HCNA: GitHub_M
3.1 / 7.5
high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HNVD: [email protected]

Exploit evidence

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide