pyasn1 is vulnerable to Denial of Service (DoS)
75
CVSS Score
High
Denial of Service (DoS)
The BER/CER/DER decoders process OBJECT IDENTIFIER and RELATIVE-OID values in quadratic time relative to the number of arcs. A small crafted payload of tens of kilobytes containing an OID with many arcs consumes seconds of CPU per decode() call, enabling denial of service in any application that decodes untrusted ASN.1 data such as certificates, LDAP, SNMP, or Kerberos. The matching encoders share the same quadratic behavior when re-encoding decoded attacker-supplied values. The fix accumulates arcs in linear time in both the decoders and encoders while leaving decoded values unchanged.
Upgrade the pyasn1 library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application decodes or re-encodes untrusted ASN.1 data.
0.0.13 - 0.6.3
Fixed in 0.6.4pyasn1 is vulnerable to Denial of Service (DoS) in versions 0.0.13 - 0.6.3.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.