ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2026-119194

Details

pyasn1 is a generic ASN.1 library for Python. From 0.3.3 until 0.6.5, schemaless container decoding stores every decoded component's TagSet in a growing set even though only one-versus-multiple tag types must be distinguished. Attacker-controlled BER, CER, or DER input contains many distinct long tag IDs whose TagSet hashes collide. Each later set insertion compares against an increasing number of earlier colliding tags in ConstructedPayloadDecoderBase._decodeComponentsSchemaless, producing quadratic CPU work while decoded values and order remain valid. Repeated inputs can exhaust decoder CPU and reduce service availability. This issue is fixed in version 0.6.5.

Affected packages

EcosystemPackageAffected versions
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.4 (fixed in 0.4.8-1ubuntu0.4)
Ubuntu:24.04:LTSpyasn1
All versions before 0.4.8-4ubuntu0.4 (fixed in 0.4.8-4ubuntu0.4)
Ubuntu:26.10pyasn1
All versions before 0.6.4-1ubuntu0.1 (fixed in 0.6.4-1ubuntu0.1)
Ubuntu:26.04:LTSpyasn1
All versions before 0.6.3-1ubuntu0.2 (fixed in 0.6.3-1ubuntu0.2)

References