The pyasn1 library suffers from a Denial of Service vulnerability due to unbounded recursion when decoding ASN.1 data with deeply nested indefinite length SEQUENCE or SET tags. An attacker can craft a payload that causes the decoder to recurse until the Python interpreter crashes with a RecursionError or exhausts memory, crashing the host application. This affects services parsing untrusted ASN.1 data such as LDAP, SNMP, Kerberos, or X.509 parsers. Versions from 3.1 up to but not including 3.8.1 are vulnerable. A fix is available in version 3.8.1.