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

·

CVE-2026-30922

·

Published

2026-03-17

·

Updated

2026-07-21

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

Infinite Loop

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2026:12176
ALSA-2026:13902
ALSA-2026:13916
ALSA-2026:13917
BDU:2026-07266
CLEANSTART-2026-AN27706
CLEANSTART-2026-AZ09261
CLEANSTART-2026-CQ05396
CLEANSTART-2026-EM82280
CLEANSTART-2026-HP19968
CLEANSTART-2026-IR98353
CLEANSTART-2026-MR94452
CLEANSTART-2026-NL78203
CLEANSTART-2026-SO50412
CLEANSTART-2026-WQ85001
CLEANSTART-2026-WU03167
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
PYSEC-2026-2263
RHSA-2026:13508
RHSA-2026:13512
RHSA-2026:13902
RHSA-2026:13916
RHSA-2026:13917
RHSA-2026:17083
RHSA-2026:19138
RHSA-2026:19355
RHSA-2026:20588
RHSA-2026:22131
RHSA-2026:22132
RHSA-2026:22133
RHSA-2026:22134
RHSA-2026:22135
RHSA-2026:22969
RHSA-2026:22970
RHSA-2026:22987
RHSA-2026:24761
RHSA-2026:24762
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