---
schema_version: '1.0'
id: security-20260812-cc61df
title: CVE-2026-59885 — pyasn1
url: https://osv.dev/vulnerability/PYSEC-2026-3456
url_hash: cc61df1f85ae1109dbe87d47c8777fd0740356a459422dc363f71647e3445c6c
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-3456
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-59885
- PYSEC-2026-3456
- 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.683555Z'
updated_at: '2026-08-22T14:45:12Z'
status: published
content_hash: 32c1a946df0347423ab7bb4d8a804b861efa4431af47a70bc1ede6162f4b23e7
content_changed_at: '2026-08-22T13:15:21.797945Z'
license_note: full
summary: 'pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER, CER,
  and DER decoders process OBJECT IDENTIFIER and RELATIVE-OID values in quadratic
  time relative to the number of arcs, so a small crafted payload containing an OID
  with many arcs consumes excessive CPU per '
summary_source: rss
summary_en: 'pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER,
  CER, and DER decoders process OBJECT IDENTIFIER and RELATIVE-OID values in quadratic
  time relative to the number of arcs, so a small crafted payload containing an OID
  with many arcs consumes excessive CPU per '
summary_omitted_reason: null
redistribution: true
keywords_en:
- CVE
- CVE-2026-59885
- library vulnerability
- pyasn1
- PyPI
- PYSEC-2026-3456
- 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-59885 — pyasn1

## TL;DR
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER, CER, and DER decoders process OBJECT IDENTIFIER and RELATIVE-OID values in quadratic time relative to the number of arcs, so a small crafted payload containing an OID with many arcs consumes excessive CPU per 

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

**Details:**
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER, CER, and DER decoders process OBJECT IDENTIFIER and RELATIVE-OID values in quadratic time relative to the number of arcs, so a small crafted payload containing an OID with many arcs consumes excessive CPU per decode() call and can deny service to applications that decode untrusted ASN.1 data. The corresponding encoders have the same quadratic behavior when an application re-encodes previously decoded attacker-supplied values. 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-8ppf-4f7h-5ppj
- https://github.com/pyasn1/pyasn1/commit/45bdb19eb7df4b3780fe9c912c63e99bffc39dd9

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

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