---
schema_version: '1.0'
id: security-20260812-a5c4d2
title: CVE-2026-30922 — pyasn1
url: https://osv.dev/vulnerability/PYSEC-2026-2263
url_hash: a5c4d2ec525f79c79ee8a808bc8e69804c29b65169f0e7f84d0029189257c393
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-2263
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-30922
- PYSEC-2026-2263
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- pyasn1
- PyPI
lang: en
published_at: '2026-03-18T04:17:18Z'
fetched_at: '2026-08-12T16:00:04.675428Z'
updated_at: '2026-08-22T14:45:12Z'
status: published
content_hash: 974b48ca940dcaaf17f55c6a91a55a959af366eefa9ed6b82a4bc5ae4cb0b986
content_changed_at: '2026-08-22T13:15:21.790468Z'
license_note: full
summary: pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.3, the `pyasn1`
  library is vulnerable to a Denial of Service (DoS) attack caused by uncontrolled
  recursion when decoding ASN.1 data with deeply nested structures. An attacker can
  supply a crafted payload containing thousa
summary_source: rss
summary_en: pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.3, the `pyasn1`
  library is vulnerable to a Denial of Service (DoS) attack caused by uncontrolled
  recursion when decoding ASN.1 data with deeply nested structures. An attacker can
  supply a crafted payload containing thousa
summary_omitted_reason: null
redistribution: true
keywords_en:
- CVE
- CVE-2026-30922
- library vulnerability
- pyasn1
- PyPI
- PYSEC-2026-2263
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- software security
entities_en:
- name: CVE
  type: data
- name: PyPI
  type: artifact
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE
  type: data
- name: PyPI
  type: artifact
related_auto:
- name: Portal
  type: organization
  weight: 1.0
- name: Hugging Face
  type: organization
  weight: 1.0
computed_at: '2026-08-22T14:45:10Z'
---

# CVE-2026-30922 — pyasn1

## TL;DR
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.3, the `pyasn1` library is vulnerable to a Denial of Service (DoS) attack caused by uncontrolled recursion when decoding ASN.1 data with deeply nested structures. An attacker can supply a crafted payload containing thousa

## Key Points
- cve / CVE-2026-30922 / PYSEC-2026-2263 / severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H / pyasn1 / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
**Advisory:** PYSEC-2026-2263 (CVE-2026-30922)

**Details:**
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.3, the `pyasn1` library is vulnerable to a Denial of Service (DoS) attack caused by uncontrolled recursion when decoding ASN.1 data with deeply nested structures. An attacker can supply a crafted payload containing thousands of nested `SEQUENCE` (`0x30`) or `SET` (`0x31`) tags with "Indefinite Length" (`0x80`) markers. This forces the decoder to recursively call itself until the Python interpreter crashes with a `RecursionError` or consumes all available memory (OOM), crashing the host application. This is a distinct vulnerability from CVE-2026-23490 (which addressed integer overflows in OID decoding). The fix for CVE-2026-23490 (`MAX_OID_ARC_CONTINUATION_OCTETS`) does not mitigate this recursion issue. Version 0.6.3 fixes this specific issue.

**References:**
- http://www.openwall.com/lists/oss-security/2026/03/20/4
- https://lists.debian.org/debian-lts-announce/2026/05/msg00001.html
- https://github.com/pyasn1/pyasn1/commit/25ad481c19fdb006e20485ef3fc2e5b3eff30ef0
- https://github.com/pyasn1/pyasn1/security/advisories/GHSA-jr27-m4p2-rc6r

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-2263_

## Source
元記事: [CVE-2026-30922 — pyasn1](https://osv.dev/vulnerability/PYSEC-2026-2263) — published 2026-03-18T04:17:18Z
