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

Published Jul 14, 2026
·
Updated

pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the univ.Real type converted its mantissa, base, and exponent value to a Python float using exact big-integer exponentiation. A BER, CER, or DER encoded REAL value only a few bytes long can carry a very large exponent, causing float conversion through prettyPrint(), str(), comparison, arithmetic, int(), or an explicit float() call to consume excessive CPU and memory and hang applications that decode untrusted ASN.1 data and then print, log, or compare decoded objects. This issue is fixed in version 0.6.4.

Affected Software

7 affected componentsFixes available
ubuntu/pyasn1*
ubuntu/pyasn1*
ubuntu/pyasn1*
ubuntu/pyasn1*
ubuntu/pyasn1<0.4.8-1ubuntu0.3
0.4.8-1ubuntu0.3
ubuntu/pyasn1<0.4.8-4ubuntu0.3
0.4.8-4ubuntu0.3
ubuntu/pyasn1<0.6.3-1ubuntu0.1
0.6.3-1ubuntu0.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/pyasn1 to a version that resolves this vulnerability.

    Fixed in 0.4.8-1ubuntu0.3
  2. Upgrade

    Upgrade ubuntu/pyasn1 to a version that resolves this vulnerability.

    Fixed in 0.4.8-4ubuntu0.3
  3. Upgrade

    Upgrade ubuntu/pyasn1 to a version that resolves this vulnerability.

    Fixed in 0.6.3-1ubuntu0.1
  4. Upgrade

    Upgrade pyasn1 to a version that resolves this vulnerability.

    Fixed in 0.6.4

Event History

Jul 14, 2026
CVE Published
via OSV·05:17 PM
Data Sourced
via OSV·05:17 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which applications are exposed to denial of service?

Applications using pyasn1 before version 0.6.4 are exposed if they decode untrusted BER, CER, or DER ASN.1 data and subsequently convert, print, log, compare, perform arithmetic on, or otherwise coerce decoded REAL values.

2

What does an attacker need to do to trigger the issue?

An attacker needs to supply an encoded ASN.1 REAL value with a very large exponent. The application must decode it and invoke a path such as prettyPrint(), str(), comparison, arithmetic, int(), or float() on the resulting value.

3

How can I determine whether my deployment is affected?

Check whether the installed pyasn1 version is earlier than 0.6.4. Also identify code paths that accept untrusted ASN.1 input and print, log, compare, or numerically convert decoded REAL objects.

4

What is the available remediation?

Upgrade pyasn1 to version 0.6.4, which fixes the issue.

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