UBUNTU-CVE-2026-119195: High severity ubuntu/pyasn1 vulnerability

Published Oct 29, 2026
·
Updated

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.

Affected Software

8 affected components
ubuntu/pyasn1*
ubuntu/pyasn1*
ubuntu/pyasn1*
ubuntu/pyasn1*
ubuntu/pyasn1*
ubuntu/pyasn1*
ubuntu/pyasn1*
ubuntu/pyasn1*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pyasn1 to a version that resolves this vulnerability.

    Fixed in 0.6.5

Event History

Oct 29, 2026
CVE Published
via OSV·08:17 PM
Data Sourced
via OSV·08:17 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What input must an attacker be able to supply to trigger this issue?

An attacker needs to provide highly fragmented ASN.1 data that is decoded by pyasn1. The affected paths include constructed OCTET STRING or character-string values, and indefinite-length ANY values in BER or CER when the decoder uses univ.Any.

2

Are DER-decoded inputs affected?

DER rejects indefinite lengths, so the indefinite-length ANY path is not reachable through DER. However, DER can accept a definite-length constructed OCTET STRING when asn1Spec selects univ.OctetString, and can accept constructed character strings such as UTF8String without a schema.

3

What is the practical impact of successful exploitation?

A sufficiently fragmented value causes repeated copying of growing byte sequences, resulting in quadratic decoding work. This can consume CPU and occupy decoding workers, causing a denial of service without confidentiality or integrity impact.

4

How can I determine whether my deployment is affected?

Deployments using pyasn1 versions earlier than 0.6.5 are affected if they decode attacker-controlled BER, CER, or the specified DER forms. Review ASN.1 decoding entry points for use of univ.OctetString, univ.Any, or schema-less character-string decoding.

5

What should be done if upgrading is not immediately possible?

Avoid decoding untrusted highly fragmented ASN.1 inputs where possible, particularly BER or CER indefinite-length ANY values and constructed string values. Restricting attacker-controlled input from reaching decoding workers reduces exposure until pyasn1 can be updated to 0.6.5.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203