Algorithmic Complexity Affecting pyasn1 package, versions <0.4.2-3ubuntu0.20.04.1~esm2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.55% (47th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2004-PYASN1-22084568
  • published11 Nov 2026
  • disclosed29 Oct 2026

Introduced: 29 Oct 2026

CVE-2026-119196  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 pyasn1 to version 0.4.2-3ubuntu0.20.04.1~esm2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream pyasn1 package and not the pyasn1 package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, constructed BIT STRING decoding repeatedly shifts and copies the complete bit value accumulated from earlier fragments. Attacker-controlled BER or CER input contains many constructed BIT STRING fragments; schema-driven DER also accepts a definite-length constructed BIT STRING. BitStringPayloadDecoder repeatedly calls BitString.fromOctetString with the prior bitString as prepend, shifting an ever-growing SizedInteger for each fragment and causing quadratic work. Large fragmented values can exhaust CPU during decode() without requiring later conversion or formatting. This issue is fixed in version 0.6.5.

CVSS Base Scores

version 3.1