Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-10735

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.from_bytes(), and int() for binary bases 2, 4, 8, 16, and 32 are not affected). The highest threat from this vulnerability is to system availability.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-10735
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:40 UTC · Revision 1

Source evidence

CVE-2020-10735

core-osv · Original source

Published 9 Sept 2022, 14:15 UTC

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.from_bytes(), and int() for binary bases 2, 4, 8, 16, and 32 are not affected). The highest threat from this vulnerability is to system availability.

osv:CVE-2020-10735
Complete source record
{
  "id": "e328d742eac7c45b31b9b6c46672158db61a2887c30ecf91efc8e687b82affd0",
  "url": "https://osv.dev/vulnerability/CVE-2020-10735",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-10735",
    "summary": "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.from_bytes(), and int() for binary bases 2, 4, 8, 16, and 32 are not affected). The highest threat from this vulnerability is to system availability.",
    "evidence": "osv:CVE-2020-10735",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2020-10735",
      "aliases": [
        "BIT-libpython-2020-10735",
        "BIT-python-2020-10735",
        "BIT-python-min-2020-10735",
        "CVE-2020-10735",
        "PSF-2022-4"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/python/cpython",
              "type": "GIT",
              "events": [
                {
                  "introduced": "1bf9cc509326bc42cd8cb1650eb9bf64550d817e"
                },
                {
                  "fixed": "e1ebdc52b8bd82a928398b0a75149552a723389a"
                },
                {
                  "introduced": "fa919fdf2583bdfead1df00e842f24f30b2a34bf"
                },
                {
                  "fixed": "f43e7678a1443b2583fc9bfba091b8ca7e38f075"
                },
                {
                  "introduced": "9cf6752276e6fcfd0c23fdb064ad27f448aaaf75"
                },
                {
                  "fixed": "816066f497ab89abcdb3c4f2d34462c750d23713"
                },
                {
                  "introduced": "b494f5935c92951e75597bfe1c8b1f3112fec270"
                },
                {
                  "fixed": "6cc6b13308b3202270ea7ac0ee776762a66f6a2f"
                },
                {
                  "introduced": "41cb07120b7792eac6413b0c56256a25e9b14e5d"
                },
                {
                  "last_affected": "41cb07120b7792eac6413b0c56256a25e9b14e5d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.7.0"
                      },
                      {
                        "fixed": "3.7.14"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.8.0"
                      },
                      {
                        "fixed": "3.8.14"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.9.0"
                      },
                      {
                        "fixed": "3.9.14"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.10.0"
                      },
                      {
                        "fixed": "3.10.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:3.11.0:rc1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.11.0-rc1"
                      },
                      {
                        "last_affected": "3.11.0-rc1"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.11.0-rc1",
            "v3.11.0rc1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-10735.json"
          }
        }
      ],
      "modified": "2026-10-20T10:50:59.350891353Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-806742.html",
        "https://lists.debian.org/debian-lts-announce/2023/06/msg00039.html",
        "https://lists.debian.org/debian-lts-announce/2024/11/msg00024.html",
        "https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2VCU6EVQDIXNCEDJUCTFIER2WVNNDTYZ/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/32AAQKABEKFCB5DDV5OONRZK6BS23HPW/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4EWKR2SPX3JORLWCXFY3KN2U5B5CIUQQ/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6XL6E5A3I36TRR73VNBOXNIQP4AMZDFZ/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/76YE7AM37MRU76XJV4M27CWDAMUGNRYK/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HSRPVJZL6DJFWKYRHMNJB7VCEUCBKRF5/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IFGV7P2PYFBMK32OKHCAC2ZPJQV5AUDF/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NHC6IUU7CLRQ3QLPWUXLONSG3SXFTR47/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OKYE2DOI2X7WZXAWTQJZAXYIWM37HDCY/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OT5U223OE5ZOUHZAZYSYSWVJQIKDE73E/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OT5WQB7Z3CXOWVBD2AFAHYPA5ONYFFZ4/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PD7FTLJOIGMUSCDR3JAN6WRFHJEE4PH5/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SZYJSGLSCQOKXXFVJVJQAXLEOJBIWGEL/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TD7JDDKJXK6D26XAN3YRFNM2LAJHT5UO/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TMWPRAAJS7I6U3U45V7GZVXWNSECI22M/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U4ZZV4CDFRMTPDBI7C5L43RFL3XLIGUY/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UBPDVCDIUCEBE7C4NAGNA2KQJYOTPBAZ/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V7ZUJDHK7KNG6SLIFXW7MNZ6O2PUJYK6/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WXF6MQ74HVIDDSR5AE2UDR24I6D4FEPC/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZEOAJWGGY55QU35UM2OVZATBW5MX2OZD/",
        "https://access.redhat.com/security/cve/CVE-2020-10735",
        "https://docs.google.com/document/d/1KjuF_aXlzPUxTK4BMgezGJ2Pn7uevfX7g0_mvgHlL7Y",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1834423",
        "https://github.com/python/cpython/issues/95778"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "35"
                  },
                  {
                    "last_affected": "35"
                  },
                  {
                    "introduced": "36"
                  },
                  {
                    "last_affected": "36"
                  },
                  {
                    "introduced": "37"
                  },
                  {
                    "last_affected": "37"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:python:python:3.11.0:alpha1:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.11.0:alpha2:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.11.0:alpha3:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.11.0:alpha4:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.11.0:alpha5:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.11.0:alpha6:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.11.0:alpha7:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.11.0:beta1:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.11.0:beta2:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.11.0:beta3:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.11.0:beta4:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.11.0:beta5:*:*:*:*:*:*"
            ],
            "vendor_product": "python:python",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.11.0-alpha1"
                  },
                  {
                    "last_affected": "3.11.0-alpha1"
                  },
                  {
                    "introduced": "3.11.0-alpha2"
                  },
                  {
                    "last_affected": "3.11.0-alpha2"
                  },
                  {
                    "introduced": "3.11.0-alpha3"
                  },
                  {
                    "last_affected": "3.11.0-alpha3"
                  },
                  {
                    "introduced": "3.11.0-alpha4"
                  },
                  {
                    "last_affected": "3.11.0-alpha4"
                  },
                  {
                    "introduced": "3.11.0-alpha5"
                  },
                  {
                    "last_affected": "3.11.0-alpha5"
                  },
                  {
                    "introduced": "3.11.0-alpha6"
                  },
                  {
                    "last_affected": "3.11.0-alpha6"
                  },
                  {
                    "introduced": "3.11.0-alpha7"
                  },
                  {
                    "last_affected": "3.11.0-alpha7"
                  },
                  {
                    "introduced": "3.11.0-beta1"
                  },
                  {
                    "last_affected": "3.11.0-beta1"
                  },
                  {
                    "introduced": "3.11.0-beta2"
                  },
                  {
                    "last_affected": "3.11.0-beta2"
                  },
                  {
                    "introduced": "3.11.0-beta3"
                  },
                  {
                    "last_affected": "3.11.0-beta3"
                  },
                  {
                    "introduced": "3.11.0-beta4"
                  },
                  {
                    "last_affected": "3.11.0-beta4"
                  },
                  {
                    "introduced": "3.11.0-beta5"
                  },
                  {
                    "last_affected": "3.11.0-beta5"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:redhat:quay:3.0.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:quay",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.0.0"
                  },
                  {
                    "last_affected": "3.0.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-10735",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 382417,
  "published_at": "2022-09-09T14:15:08.66+00:00"
}