---
schema_version: '1.0'
id: security-20260812-3c2a18
title: CVE-2026-59886 — pyasn1
url: https://osv.dev/vulnerability/PYSEC-2026-3457
url_hash: 3c2a188c465dfcfacc963f3e4b9245a06591125be37e76d0bb5f41e72ec35be1
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-3457
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-59886
- PYSEC-2026-3457
- 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:15Z'
fetched_at: '2026-08-12T16:00:04.686671Z'
updated_at: '2026-08-22T14:45:12Z'
status: published
content_hash: 7e331188ef44632e76ec3785d82c9df45e10a50b0418fc9f60b80ff1220ad202
content_changed_at: '2026-08-22T13:15:21.851602Z'
license_note: full
summary: pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the univ.Real
  type converted its mantissa, base, and exponent value to a Python float using exact
  big-integer exponentiation. A BER, CER, or DER encoded REAL value only a few bytes
  long can carry a very large exponent,
summary_source: rss
summary_en: pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the univ.Real
  type converted its mantissa, base, and exponent value to a Python float using exact
  big-integer exponentiation. A BER, CER, or DER encoded REAL value only a few bytes
  long can carry a very large exponent,
summary_omitted_reason: null
redistribution: true
keywords_en:
- CVE
- CVE-2026-59886
- library vulnerability
- pyasn1
- PyPI
- PYSEC-2026-3457
- 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-59886 — pyasn1

## TL;DR
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the univ.Real type converted its mantissa, base, and exponent value to a Python float using exact big-integer exponentiation. A BER, CER, or DER encoded REAL value only a few bytes long can carry a very large exponent,

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

**Details:**
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the univ.Real type converted its mantissa, base, and exponent value to a Python float using exact big-integer exponentiation. A BER, CER, or DER encoded REAL value only a few bytes long can carry a very large exponent, causing float conversion through prettyPrint(), str(), comparison, arithmetic, int(), or an explicit float() call to consume excessive CPU and memory and hang applications that decode untrusted ASN.1 data and then print, log, or compare decoded objects. 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-hm4w-wwcw-mr6r
- https://github.com/pyasn1/pyasn1/commit/e60c691cb91addb8fcefa2f537e85ede6fb1e886

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

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