Every CVESearch/Get API key

CVE-2008-5031

Multiple integer overflows in Python 2.2.3 through 2.5.1, and 2.6, allow context-dependent...

10.0 High

CVE-2008-5031 is a high vulnerability (CVSS 10.0) in Python, published November 10, 2008. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.99%, the 87th percentile. No source names a fixed version.

What does this mean?
Severity
10.0 HighCVSS 2.0, NVD
Exploit chance
2.99%EPSS, 87th percentile
Exploitation
None knownNot on CISA’s or ENISA’s lists
Fixed in
No fix listedNo source names one

Description

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.

Exploit likelihood

2.99%Up 0.3 points since Feb 4, 2022
90%50%10%1%

Affected products

Affected packages

Affected packages
PackageAffectedFixed
python
Red Hat:enterprise_linux:5::client_workstation
From an advisory covering 10 CVEs
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python-debuginfo
Red Hat:enterprise_linux:5::client_workstation
From an advisory covering 10 CVEs
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python-devel
Red Hat:enterprise_linux:5::client_workstation
From an advisory covering 10 CVEs
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python
Red Hat:enterprise_linux:5::client
From an advisory covering 10 CVEs
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python-debuginfo
Red Hat:enterprise_linux:5::client
From an advisory covering 10 CVEs
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python-tools
Red Hat:enterprise_linux:5::client
From an advisory covering 10 CVEs
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
tkinter
Red Hat:enterprise_linux:5::client
From an advisory covering 10 CVEs
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python
Red Hat:enterprise_linux:5::server
From an advisory covering 10 CVEs
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python-debuginfo
Red Hat:enterprise_linux:5::server
From an advisory covering 10 CVEs
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python-devel
Red Hat:enterprise_linux:5::server
From an advisory covering 10 CVEs
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
Show 46 moreShow less
Affected packages
PackageAffectedFixed
python-tools
Red Hat:enterprise_linux:5::server
From an advisory covering 10 CVEs
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
tkinter
Red Hat:enterprise_linux:5::server
From an advisory covering 10 CVEs
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python
Red Hat:enterprise_linux:4::as
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-debuginfo
Red Hat:enterprise_linux:4::as
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-devel
Red Hat:enterprise_linux:4::as
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-docs
Red Hat:enterprise_linux:4::as
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-tools
Red Hat:enterprise_linux:4::as
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
tkinter
Red Hat:enterprise_linux:4::as
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python
Red Hat:enterprise_linux:4::desktop
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-debuginfo
Red Hat:enterprise_linux:4::desktop
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-devel
Red Hat:enterprise_linux:4::desktop
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-docs
Red Hat:enterprise_linux:4::desktop
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-tools
Red Hat:enterprise_linux:4::desktop
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
tkinter
Red Hat:enterprise_linux:4::desktop
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python
Red Hat:enterprise_linux:4::es
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-debuginfo
Red Hat:enterprise_linux:4::es
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-devel
Red Hat:enterprise_linux:4::es
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-docs
Red Hat:enterprise_linux:4::es
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-tools
Red Hat:enterprise_linux:4::es
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
tkinter
Red Hat:enterprise_linux:4::es
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python
Red Hat:enterprise_linux:4::ws
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-debuginfo
Red Hat:enterprise_linux:4::ws
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-devel
Red Hat:enterprise_linux:4::ws
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-docs
Red Hat:enterprise_linux:4::ws
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python-tools
Red Hat:enterprise_linux:4::ws
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
tkinter
Red Hat:enterprise_linux:4::ws
From an advisory covering 9 CVEs
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
python
Red Hat:enterprise_linux:3::as
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python-debuginfo
Red Hat:enterprise_linux:3::as
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python-devel
Red Hat:enterprise_linux:3::as
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python-tools
Red Hat:enterprise_linux:3::as
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
tkinter
Red Hat:enterprise_linux:3::as
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python
Red Hat:enterprise_linux:3::desktop
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python-debuginfo
Red Hat:enterprise_linux:3::desktop
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python-devel
Red Hat:enterprise_linux:3::desktop
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python-tools
Red Hat:enterprise_linux:3::desktop
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
tkinter
Red Hat:enterprise_linux:3::desktop
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python
Red Hat:enterprise_linux:3::es
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python-debuginfo
Red Hat:enterprise_linux:3::es
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python-devel
Red Hat:enterprise_linux:3::es
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python-tools
Red Hat:enterprise_linux:3::es
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
tkinter
Red Hat:enterprise_linux:3::es
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python
Red Hat:enterprise_linux:3::ws
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python-debuginfo
Red Hat:enterprise_linux:3::ws
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python-devel
Red Hat:enterprise_linux:3::ws
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
python-tools
Red Hat:enterprise_linux:3::ws
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11
tkinter
Red Hat:enterprise_linux:3::ws
From an advisory covering 8 CVEs
before 0:2.2.3-6.11
0:2.2.3-6.11

What each source reports

NVD Score used10.0

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.

Record
CVE-2008-5031
CVSS 2.0
10.0 HighAV:N/AC:L/Au:N/C:C/I:C/A:C
Weakness
CWE-189
Updated
2026-11-02
CVE ListNo score

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.

Record
CVE-2008-5031
Updated
2026-11-02
EUVDEUVD-2008-5010No score

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.

Record
EUVD-2008-5010
Updated
2026-11-03
GitHub AdvisoriesGHSA-crr2-q8mf-w298No score

Multiple integer overflows in Python 2.2.3 through 2.5.1, and 2.6, allow context-dependent...

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.

Record
GHSA-crr2-q8mf-w298
Updated
2026-11-02
OSVPSF-2008-10No score

expandtab() integer overflow

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.

Record
PSF-2008-10
Updated
2026-11-02

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

References

Show 64 moreShow less
MoveEnter Open