Pyasn1
pyasn1: Uncontrolled resource consumption when converting decoded REAL values
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the univ.Real type converted its mantissa, base, and exponent value to a Python float using exact big-integer exponentiation. A BER, CER, or DER encoded REAL value only a few bytes long can carry a very large exponent, causing float conversion through prettyPrint(), str(), comparison, arithmetic, int(), or an explicit float() call to consume excessive CPU and memory and hang applications that decode untrusted ASN.1 data and then print, log, or compare decoded objects. 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/e60c691cb91add…
- 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.