CVE-2026-119195

Publication date 29 October 2026

Last updated 11 November 2026


Ubuntu priority

Cvss 3 Severity Score

7.5 · High

Score breakdown

Description

pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, constructed string and indefinite-length ANY decoding repeatedly concatenates each fragment onto a growing bytes value. Attacker-controlled BER or CER data can use many constructed OCTET STRING or character-string fragments. DER rejects constructed OCTET STRING without a schema, but accepts its definite-length form when asn1Spec selects univ.OctetString; it also accepts constructed character strings such as UTF8String without a schema, even though those encodings are not valid DER. The separate indefinite-length ANY path is reachable in BER and CER when asn1Spec selects univ.Any; DER rejects indefinite lengths. OctetStringPayloadDecoder uses growing header concatenation and AnyPayloadDecoder.indefLenValueDecoder uses growing chunk concatenation, repeatedly copying an increasing prefix and causing quadratic work. A sufficiently fragmented value can occupy decoding workers and cause CPU exhaustion without confidentiality or integrity impact. This issue is fixed in version 0.6.5.

Read the notes from the security team

Status

Package Ubuntu Release Status
pyasn1 26.10 stonking
Fixed in 0.6.4-1ubuntu0.1
26.04 LTS resolute
Fixed in 0.6.3-1ubuntu0.2
24.04 LTS noble Ignored changes too intrusive
22.04 LTS jammy Ignored changes too intrusive
20.04 LTS focal Ignored changes too intrusive
18.04 LTS bionic Ignored changes too intrusive
16.04 LTS xenial Ignored changes too intrusive
14.04 LTS trusty Ignored changes too intrusive

Notes


charlescochran

On Noble and prior, the decoder is written differently. Consequently, for these release, the upstream fix does not apply easily, and it seems unlikely to properly fix the issue anyway. In lieu of a complex backport, marking changes too intrusive.

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
pyasn1

Severity score breakdown

CVSS version: CVSS v3.0

Base score 7.5 · High

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H


Access our resources on patching vulnerabilities