pyasn1 <=0.6.2 DoS via uncontrolled ASN.1 recursion
CVE-2026-30922 Published on March 18, 2026
pyasn1 Vulnerable to Denial of Service via Unbounded Recursion
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.
Vulnerability Analysis
CVE-2026-30922 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. An automatable proof of concept (POC) exploit exists. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.
Weakness Types
What is a Stack Exhaustion Vulnerability?
The product does not properly control the amount of recursion which takes place, consuming excessive resources, such as allocated memory or the program stack.
CVE-2026-30922 has been classified to as a Stack Exhaustion vulnerability or weakness.
What is an Infinite Loop Vulnerability?
The program contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop. If the loop can be influenced by an attacker, this weakness could allow attackers to consume excessive resources such as CPU or memory.
CVE-2026-30922 has been classified to as an Infinite Loop vulnerability or weakness.
Products Associated with CVE-2026-30922
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2026-30922 are published in these products:
Affected Versions
pyasn1:- Version < 0.6.3 is affected.
- Version 0:0.6.3-1.el8ap and below * is unaffected.
- Version 0:4.6.29-2.el8ap and below * is unaffected.
- Version 0:0.6.3-1.el9ap and below * is unaffected.
- Version 0:4.6.29-2.el9ap and below * is unaffected.
- Version 0:0.6.3-1.el9ap and below * is unaffected.
- Version 0:4.7.12-1.el9ap and below * is unaffected.
- Version 0:4.16.0-13.el10_1.4 and below * is unaffected.
- Version 0:4.16.0-21.el10_2.1 and below * is unaffected.
- Version 0:4.16.0-5.el10_0.9 and below * is unaffected.
- Version 0:4.2.1-129.el8_10.25 and below * is unaffected.
- Version 0:4.9.0-54.el8_10.33 and below * is unaffected.
- Version 0:4.2.1-65.el8_4.28 and below * is unaffected.
- Version 0:4.1.1-90.el8_4.25 and below * is unaffected.
- Version 0:4.2.1-65.el8_4.28 and below * is unaffected.
- Version 0:4.1.1-90.el8_4.25 and below * is unaffected.
- Version 0:4.2.1-89.el8_6.22 and below * is unaffected.
- Version 0:4.2.1-89.el8_6.22 and below * is unaffected.
- Version 0:4.9.0-16.el8_6.22 and below * is unaffected.
- Version 0:4.2.1-89.el8_6.22 and below * is unaffected.
- Version 0:4.9.0-16.el8_6.22 and below * is unaffected.
- Version 0:4.2.1-112.el8_8.17 and below * is unaffected.
- Version 0:4.9.0-40.el8_8.19 and below * is unaffected.
- Version 0:4.2.1-112.el8_8.17 and below * is unaffected.
- Version 0:4.9.0-40.el8_8.19 and below * is unaffected.
- Version 0:4.10.0-110.el9_8.2 and below * is unaffected.
- Version 0:4.10.0-98.el9_7.13 and below * is unaffected.
- Version 0:4.10.0-43.el9_2.22 and below * is unaffected.
- Version 0:4.10.0-62.el9_4.25 and below * is unaffected.
- Version 0:4.10.0-86.el9_6.17 and below * is unaffected.
- Version 1778244531 and below * is unaffected.
- Version 1777398315 and below * is unaffected.
- Version 1777403872 and below * is unaffected.
- Version 1777402264 and below * is unaffected.
- Version 1777296732 and below * is unaffected.
- Version 1777311120 and below * is unaffected.
- Version 1777387242 and below * is unaffected.
- Version 1774417022 and below * is unaffected.
- Version 1778677745 and below * is unaffected.
- Version 1778666124 and below * is unaffected.
- Version 1783931722 and below * is unaffected.
- Version 1776343111 and below * is unaffected.
- Version 1778263407 and below * is unaffected.
- Version 1782471672 and below * is unaffected.
- Version 1782471731 and below * is unaffected.
- Version 1782471849 and below * is unaffected.
- Version 1782471734 and below * is unaffected.
- Version 1782471879 and below * is unaffected.
- Version 1782472374 and below * is unaffected.
- Version 1782471606 and below * is unaffected.
- Version 1782471796 and below * is unaffected.
- Version 1782471661 and below * is unaffected.
- Version 1782471753 and below * is unaffected.
- Version 1782471740 and below * is unaffected.
- Version 1782471834 and below * is unaffected.
- Version 1782471730 and below * is unaffected.
- Version 1782471835 and below * is unaffected.
- Version 1782471697 and below * is unaffected.
- Version 1775169155 and below * is unaffected.
- Version 1775253092 and below * is unaffected.
- Version 1775169219 and below * is unaffected.
- Version 1779204086 and below * is unaffected.
- Version 1775169218 and below * is unaffected.
- Version 1775815407 and below * is unaffected.
- Version 1777452540 and below * is unaffected.
- Version 1777407251 and below * is unaffected.
- Version 1777436150 and below * is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.