Uncontrolled Recursion Affecting py3-pyasn1 package, versions <0.6.3-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.05% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-MINIMOSLATEST-PY3PYASN1-15704797
  • published20 Mar 2026
  • disclosed18 Mar 2026

Introduced: 18 Mar 2026

NewCVE-2026-30922  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade Minimos:latest py3-pyasn1 to version 0.6.3-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-pyasn1 package and not the py3-pyasn1 package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.3, the pyasn1 library is vulnerable to a Denial of Service (DoS) attack caused by uncontrolled recursion when decoding ASN.1 data with deeply nested structures. An attacker can supply a crafted payload containing thousands of nested SEQUENCE (0x30) or SET (0x31) tags with "Indefinite Length" (0x80) markers. This forces the decoder to recursively call itself until the Python interpreter crashes with a RecursionError or consumes all available memory (OOM), crashing the host application. This is a distinct vulnerability from CVE-2026-23490 (which addressed integer overflows in OID decoding). The fix for CVE-2026-23490 (MAX_OID_ARC_CONTINUATION_OCTETS) does not mitigate this recursion issue. Version 0.6.3 fixes this specific issue.