CVE-2020-10735: Incorrect Type Cast

Published May 11, 2020
·
Updated

A flaw was found in python. In algorithms with quadratic time complexity using non-binary bases, when using int("text"), a system could take 50ms to parse an int string with 100,000 digits and 5s for 1,000,000 digits (float, decimal, int.frombytes(), and int() for binary bases 2, 4, 8, 16, and 32 are not affected). The highest threat from this vulnerability is to system availability.

Other sources

A vulnerability was found in PyLongFromString() in Python, which is used by int("text"). For non-binary bases it uses an algorithm with quadratic time complexity to convert a string into an arbitrary precision number. It takes about 50ms to parse an int string with 100,000 digits and about 5sec for 1,000,000 digits. The float type, decimal type, int.frombytes(), and int() for binary bases 2, 4, 8, 16, and 32 are not affected.

Red Hat

Python is vulnerable to a denial of service, caused by the failure to limit amount of digits converting text to int by the int() type in PyLongFromString(). A remote attacker could exploit this vulnerability to consume all available resources.

IBM

Affected Software

28 affected componentsFixes available
redhat/python3<0:3.6.8-48.el8_7.1
0:3.6.8-48.el8_7.1
redhat/python3.9<0:3.9.10-3.el9_0
0:3.9.10-3.el9_0
redhat/rh-python38-python<0:3.8.14-1.el7
0:3.8.14-1.el7
Python Python>=3.7.0<3.7.14
Python Python>=3.8.0<3.8.14
Python Python>=3.9.0<3.9.14
Python Python>=3.10.0<3.10.7
Python Python=3.11.0-alpha1
Python Python=3.11.0-alpha2
Python Python=3.11.0-alpha3
Python Python=3.11.0-alpha4
Python Python=3.11.0-alpha5
Python Python=3.11.0-alpha6
Python Python=3.11.0-alpha7
Python Python=3.11.0-beta1
Python Python=3.11.0-beta2
Python Python=3.11.0-beta3
Python Python=3.11.0-beta4
Python Python=3.11.0-beta5
Python Python=3.11.0-rc1
redhat Quay=3.0.0
redhat Software Collections
Fedoraproject Fedora=35
Fedoraproject Fedora=36
Fedoraproject Fedora=37
redhat Enterprise Linux=8.0
IBM Security Verify Access Docker<=10.0.X
IBM Security Verify Access<=10.0.X

Event History

May 11, 2020
Data Sourced
via Red Hat·04:55 PM
DescriptionSeverityAffected Software
Sep 2, 2022
CVE Published
12:00 AM
Sep 9, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 19, 2023
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID of this flaw in python?

The vulnerability ID of this flaw in python is CVE-2020-10735.

2

What is the severity of CVE-2020-10735?

The severity of CVE-2020-10735 is high (7.5).

3

Which versions of Python are affected by CVE-2020-10735?

Versions 3.7.0 to 3.7.14, 3.8.0 to 3.8.14, and 3.9.0 to 3.9.14 of Python are affected by CVE-2020-10735.

4

How can I fix CVE-2020-10735?

To fix CVE-2020-10735, you should update Python to version 3.6.8-48.el8_7.1, 3.9.10-3.el9_0, or 3.8.14-1.el7 (depending on your operating system).

5

Where can I find more information about CVE-2020-10735?

You can find more information about CVE-2020-10735 on the Red Hat Bugzilla website: [Link](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2124161).

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
CVE-2020-10735 - Incorrect Type Cast - SecAlerts