CVE-2008-5031: Multiple integer overflows in Python 2.2.3 through 2.5.1, and 2.6, allow context-dependent attackers to have an unknown impact via a larg…

CVE-2008-5031 affects 4 listed versions of Python in the Dawnsentry catalogue.

10.0CVSS critical
None knownexploitation
3%EPSS (next 30 days)
10 November 2008published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Python

4 of 250 listed versions are affected. No fixed release is named. The newest release, 3.15.2, is not affected.

2.5.1 2.4.6 2.3.7 2.2.3

What it is

Multiple integer overflows in Python 2.2.3 through 2.5.1, and 2.6, allow context-dependent attackers to have an unknown impact via a large integer value in the tabsize argument to the expandtabs method, as implemented by (1) the string_expandtabs function in Objects/stringobject.c and (2) the unicode_expandtabs function in Objects/unicodeobject.c. NOTE: this vulnerability reportedly exists because of an incomplete fix for CVE-2008-2315.

AV:N/AC:L/Au:N/C:C/I:C/A:C (NVD)

Published by MITRE on 10 November 2008. Last changed 16 June 2026.

Sources

Check one version you run: look CVE-2008-5031 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.