---
schema_version: '1.0'
id: security-20260812-9974a1
title: CVE-2026-59884 — pyasn1
url: https://osv.dev/vulnerability/PYSEC-2026-3455
url_hash: 9974a14be5ebdc7ae5e9a7239714abf370f857442babd2e6e348b22c550b7338
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-3455
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-59884
- PYSEC-2026-3455
- 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-07-14T17:17:14Z'
fetched_at: '2026-08-12T16:00:04.680772Z'
updated_at: '2026-08-22T14:45:12Z'
status: published
content_hash: d5947e89b67c8c22bd7ddd65e4f205144dfe5897cf61a4f5599790da742c1047
content_changed_at: '2026-08-22T13:15:21.793906Z'
license_note: full
summary: pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER decoder
  shared by the CER and DER codecs parses long-form tags by accumulating continuation
  octets without an upper bound on the tag ID size, allowing a crafted input to force
  construction of an arbitrarily lar
summary_source: rss
summary_en: pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER
  decoder shared by the CER and DER codecs parses long-form tags by accumulating continuation
  octets without an upper bound on the tag ID size, allowing a crafted input to force
  construction of an arbitrarily lar
summary_omitted_reason: null
redistribution: true
keywords_en:
- CVE
- CVE-2026-59884
- library vulnerability
- pyasn1
- PyPI
- PYSEC-2026-3455
- 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:11Z'
---

# CVE-2026-59884 — pyasn1

## TL;DR
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER decoder shared by the CER and DER codecs parses long-form tags by accumulating continuation octets without an upper bound on the tag ID size, allowing a crafted input to force construction of an arbitrarily lar

## Key Points
- cve / CVE-2026-59884 / PYSEC-2026-3455 / 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-3455 (CVE-2026-59884)

**Details:**
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER decoder shared by the CER and DER codecs parses long-form tags by accumulating continuation octets without an upper bound on the tag ID size, allowing a crafted input to force construction of an arbitrarily large integer with CPU cost growing quadratically and to trigger unhandled ValueError exceptions in Python 3.11+ error formatting paths. Any application decoding untrusted BER, CER, or DER input is affected. This issue is fixed in version 0.6.4.

**References:**
- https://github.com/pyasn1/pyasn1/releases/tag/v0.6.4
- https://github.com/pyasn1/pyasn1/security/advisories/GHSA-m4p7-r5rc-7g4j
- https://github.com/pyasn1/pyasn1/commit/628e36ecbb5277a3f01572ce418ef54271b165a5

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

## Source
元記事: [CVE-2026-59884 — pyasn1](https://osv.dev/vulnerability/PYSEC-2026-3455) — published 2026-07-14T17:17:14Z
