PT-2026-25973 · Pypi+4 · Pyasn1+4

Romanticpragmatism

·

Published

2026-03-17

·

Updated

2026-05-18

·

CVE-2026-30922

CVSS v2.0

7.8

High

VectorAV:N/AC:L/Au:N/C:N/I:N/A:C
Name of the Vulnerable Software and Affected Versions pyasn1 versions prior to 0.6.3
Description The pyasn1 library is susceptible to a Denial of Service (DoS) attack stemming from uncontrolled recursion when decoding ASN.1 data containing deeply nested structures. An attacker can craft a payload with numerous nested SEQUENCE (0x30) or SET (0x31) tags, utilizing "Indefinite Length" (0x80) markers. This forces the decoder into recursive calls, potentially leading to a RecursionError or complete memory exhaustion (OOM), ultimately causing the host application to crash. The issue arises from the decoder's recursive calls to decodeFun without depth limitations or tracking. Vulnerable code locations include indefLenValueDecoder, valueDecoder, and decodeComponentsSchemaless. A proof-of-concept (PoC) demonstrates the ability to crash the service with a relatively small payload, potentially impacting services that rely on pyasn1 for parsing untrusted ASN.1 data, such as LDAP, SNMP, Kerberos, and X.509 parsers.
Recommendations Versions prior to 0.6.3 should be updated to version 0.6.3 or later to address this issue.

Exploit

Fix

DoS

Uncontrolled Recursion

Weakness Enumeration

Related Identifiers

ALSA-2026:12176
ALSA-2026:13902
ALSA-2026:13916
ALSA-2026:13917
BDU:2026-07266
CLEANSTART-2026-AN27706
CVE-2026-30922
ECHO-B1BF-5A18-CA74
GHSA-JR27-M4P2-RC6R
MGASA-2026-0087
OESA-2026-1775
OESA-2026-1776
OESA-2026-1779
OESA-2026-1780
OPENSUSE-SU-2026:10393-1
OPENSUSE-SU-2026:20418-1
RHSA-2026:13508
RHSA-2026:13512
RHSA-2026:13902
RHSA-2026:13916
RHSA-2026:13917
RHSA-2026:17083
RHSA-2026:19138
RHSA-2026:19355
SUSE-SU-2026:1075-1
SUSE-SU-2026:1076-1
SUSE-SU-2026:1158-1
SUSE-SU-2026:20821-1
SUSE-SU-2026:20835-1
SUSE-SU-2026:20878-1
SUSE-SU-2026:20929-1
USN-8129-1
USN-8134-1

Affected Products

Linuxmint
Red Os
Rocky Linux
Ubuntu
Pyasn1