Pyasn1
pyasn1: Quadratic complexity in OBJECT IDENTIFIER and RELATIVE-OID processing allows denial of service
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER, CER, and DER decoders process OBJECT IDENTIFIER and RELATIVE-OID values in quadratic time relative to the number of arcs, so a small crafted payload containing an OID with many arcs consumes excessive CPU per decode() call and can deny service to applications that decode untrusted ASN.1 data. The corresponding encoders have the same quadratic behavior when an application re-encodes previously decoded attacker-supplied values. This issue is fixed in version 0.6.4.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.6.4
Fixed in 0.6.4
Mitigation
Upgrade pyasn1 to 0.6.4 or later.
References
- Vendor advisory github.com/pyasn1/pyasn1/security/advisories/G…
- Patch github.com/pyasn1/pyasn1/commit/45bdb19eb7df4b…
- Release notes github.com/pyasn1/pyasn1/releases/tag/v0.6.4
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.