Skip to content
OpenAdvisories
High USN-8712-1 3 CVEs

pyasn1 vulnerabilities

Published Sep 1, 2026 · Updated Sep 2, 2026

Summary

It was discovered that pyasn1 did not properly bound the size of long-form
tag identifiers when parsing BER, CER, or DER encoded data. An attacker
could possibly use this issue to cause applications decoding untrusted
ASN.1 data to consume excessive CPU resources, resulting in a denial of
service. (CVE-2026-59884)

It was discovered that pyasn1 processed OBJECT IDENTIFIER and RELATIVE-OID
values in quadratic time relative to the number of arcs. An attacker could
possibly use this issue to cause applications decoding untrusted ASN.1 data
to consume excessive CPU resources, resulting in a denial of service.
(CVE-2026-59885)

It was discovered that pyasn1 incorrectly handled conversion of decoded
REAL values to Python float types. An attacker could possibly use this
issue to cause applications decoding untrusted ASN.1 data to consume
excessive CPU and memory resources, resulting in a denial of service.
(CVE-2026-59886)

Fixed packages 3

ReleasePackageFixed in
Ubuntu · 22.04 LTS 22.04:LTS pyasn1 0.4.8-1ubuntu0.3
Ubuntu · 24.04 LTS 24.04:LTS pyasn1 0.4.8-4ubuntu0.3
Ubuntu · 26.04 LTS 26.04:LTS pyasn1 0.6.3-1ubuntu0.1

Vulnerabilities 3

  • High 7.5

    pyasn1 BER/CER/DER decoder denial of service via unbounded long-form tag IDs

    pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER decoder shared by the CER and DER codecs parses long-form tags by accumulating continuation octets without an upper bound on the tag ID size, allowing a crafted input to force construction …

  • High 7.5

    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 consum…

  • High 7.5

    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…

References

  • report
    https://ubuntu.com/security/CVE-2026-59884
  • report
    https://ubuntu.com/security/CVE-2026-59885
  • report
    https://ubuntu.com/security/CVE-2026-59886