ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2026-59884

Details

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 of an arbitrarily large integer with CPU cost growing quadratically and to trigger unhandled ValueError exceptions in Python 3.11+ error formatting paths. Any application decoding untrusted BER, CER, or DER input is affected. This issue is fixed in version 0.6.4.

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:14.04:LTSpyasn1
All versions before 0.1.7-1ubuntu2.1+esm2 (fixed in 0.1.7-1ubuntu2.1+esm2)
Ubuntu:Pro:16.04:LTSpyasn1
All versions before 0.1.9-1ubuntu0.1~esm2 (fixed in 0.1.9-1ubuntu0.1~esm2)
Ubuntu:Pro:18.04:LTSpyasn1
All versions before 0.4.2-3ubuntu0.18.04.1~esm2 (fixed in 0.4.2-3ubuntu0.18.04.1~esm2)
Ubuntu:Pro:20.04:LTSpyasn1
All versions before 0.4.2-3ubuntu0.20.04.1~esm2 (fixed in 0.4.2-3ubuntu0.20.04.1~esm2)
Ubuntu:22.04:LTSpyasn1
All versions before 0.4.8-1ubuntu0.3 (fixed in 0.4.8-1ubuntu0.3)
Ubuntu:24.04:LTSpyasn1
All versions before 0.4.8-4ubuntu0.3 (fixed in 0.4.8-4ubuntu0.3)
Ubuntu:26.04:LTSpyasn1
All versions before 0.6.3-1ubuntu0.1 (fixed in 0.6.3-1ubuntu0.1)

References