#1152605 pyasn1: CVE-2026-119194 CVE-2026-119195 CVE-2026-119196 CVE-2026-119197

Package:
src:pyasn1
Source:
src:pyasn1
Submitter:
Salvatore Bonaccorso
Date:
2026-11-01 12:37:02 UTC
Severity:
normal
Tags:
#1152605#5
Date:
2026-10-30 13:50:41 UTC
From:
To:
Hi,

The following vulnerabilities were published for pyasn1.

CVE-2026-119194[0]:
| 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.


CVE-2026-119195[1]:
| 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.


CVE-2026-119196[2]:
| 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.


CVE-2026-119197[3]:
| pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, binary
| REAL decoding builds a large mantissa one octet at a time by
| shifting a growing integer and slicing the remaining byte string.
| Attacker-controlled ASN.1 includes a binary-encoded REAL with a
| large mantissa and reaches BER, CER, or DER decode(), with or
| without a schema containing REAL. RealPayloadDecoder.valueDecoder
| repeatedly performs a left shift, OR, and suffix copy for every
| mantissa octet, making decode time quadratic in mantissa length. A
| comparatively small REAL value can hold a decoding worker on one CPU
| core for seconds or longer and cause availability loss. This issue
| is fixed in version 0.6.5.


If you fix the vulnerabilities please also make sure to include the
CVE (Common Vulnerabilities & Exposures) ids in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-119194
https://www.cve.org/CVERecord?id=CVE-2026-119194
[1] https://security-tracker.debian.org/tracker/CVE-2026-119195
https://www.cve.org/CVERecord?id=CVE-2026-119195
[2] https://security-tracker.debian.org/tracker/CVE-2026-119196
https://www.cve.org/CVERecord?id=CVE-2026-119196
[3] https://security-tracker.debian.org/tracker/CVE-2026-119197
https://www.cve.org/CVERecord?id=CVE-2026-119197

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore

#1152605#10
Date:
2026-11-01 12:34:31 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
pyasn1, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1152605@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexandre Detiste <tchet@debian.org> (supplier of updated pyasn1 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 01 Nov 2026 12:54:55 +0100
Source: pyasn1
Architecture: source
Version: 0.6.5-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Alexandre Detiste <tchet@debian.org>
Closes: 1152605
Changes:
 pyasn1 (0.6.5-1) unstable; urgency=medium
 .
   * New upstream version 0.6.5 (Closes: #1152605):
     - CVE-2026-119194 denial of service
     - CVE-2026-119195 denial of service
     - CVE-2026-119196 denial of service
     - CVE-2026-119197 denial of service
   * Test nodoc profile with Salsa CI
Checksums-Sha1:
 ee099f49910c9255e1539f2d5317ca4204f103b8 2347 pyasn1_0.6.5-1.dsc
 50ae5e411ee19e6959abca4ee026820a6d2c66c0 155152 pyasn1_0.6.5.orig.tar.gz
 0d47c57c8a790052338287b450aec9b38ef31690 6640 pyasn1_0.6.5-1.debian.tar.xz
 07f8b3cfffbc88910c5bf5ed60f1e13434bd0375 7755 pyasn1_0.6.5-1_source.buildinfo
Checksums-Sha256:
 0497e3131ce6dd8ddfbc480daf691c531ad179588ef9fb0365ba876a5259296a 2347 pyasn1_0.6.5-1.dsc
 6b11616a6bcf3a40e635f082bb232fa57b5e0dd7f517bd7ddd69ec3794508a47 155152 pyasn1_0.6.5.orig.tar.gz
 95e02c205d1918fed6d3cd2179b0ddecfa22bc7937f9fcd1d29646fefbd9682b 6640 pyasn1_0.6.5-1.debian.tar.xz
 7dce09cfaaf772763ac9692a7b36f22d8623bfd49ff01eb22266a4e8cf560d2f 7755 pyasn1_0.6.5-1_source.buildinfo
Files:
 1d1fef4e577011150eaff7a4d4a5ba42 2347 python optional pyasn1_0.6.5-1.dsc
 149c7bfcd5cbe4c10261ed6724cee161 155152 python optional pyasn1_0.6.5.orig.tar.gz
 57abfe0f7deb441a88ff6406a7d99207 6640 python optional pyasn1_0.6.5-1.debian.tar.xz
 fdf6adfda3bc388ffd65cebaad1e1785 7755 python optional pyasn1_0.6.5-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmrnLHQRHHRjaGV0QGRl
Ymlhbi5vcmcACgkQMfMURUShdBpb2g//VFaViIdueGUu/eJAaxk4Dtiuwl5uAhtW
xZPeTXfn3rMI/KwWiYLecLA6f/6Stn+p0CXCY9oA7LaX+2yLKnbra05BUz7WR2HQ
8j+/ijSJWmCbwhHOdh/XpTG8Y8Lbt+TFBHn48qqYb8k+Tvml9jXB1AJWf1HhXEfo
g31W+7+XCskRoVTRb+bKpTTATuwUsx8nRhPrXKBjOHlZsByFBEi99/+ewQz6IuuZ
Ep6B8uxeQuPxruejQkNZ4zQbqs5UfLjvY5e6ctliMcp2mzd9HwI5zbjqZATwpfeS
WZVZIQyI2VLVf9CQz5qK8Ta+yalg+DLZB7cVLnS8K89idEcfDcjTcS+Ij2kNy8nk
v6ekW8RPkWb7I1uIqISrqc83C95HhxPyyGJqlBYk4Gwoznwes7q8dNSL6hQav2kz
0yXHzBzuZ18lYtpmi7849ypIwZZNpHu1uXhjpdFcv5jzpdcRpja3pjsXFdJAK/Sq
oJlj2/R6ffm0E1/TWuvbTM38UFQTfgt5pT1iDAgV+WTQp4BQl/WeUHffXfKfJgk9
iUCZAoz/Y9+6Vc5cqdzkG9XbL6EsbseUK+6YD3Y1EVAWyHQ6B/uiBp7oQeA6ARXW
mEU/XrdvSVzls23radtoe1uL79NjCTQFkUfXYXu5B24hEaTo2aINIFHBPNThozdc
mOievyUC4Ys=
=8iWk
-----END PGP SIGNATURE-----