CVE-2008-5031
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.
Exploit likelihood
What each source reports
NVD Score used
10.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 High
AV:N/AC:L/Au:N/C:C/I:C/A:C - Weakness
- CWE-189
- Updated
- 2026-11-02
CVE List No 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-5010 No 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-w298 No 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-10 No 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
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
pythonRed 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-debuginfoRed 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-develRed 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 |
pythonRed 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-debuginfoRed 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-toolsRed 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 |
tkinterRed 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 |
pythonRed 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-debuginfoRed 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-develRed 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
| Package | Affected | Fixed |
|---|---|---|
python-toolsRed 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 |
tkinterRed 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 |
pythonRed 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-debuginfoRed 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-develRed 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-docsRed 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-toolsRed 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 |
tkinterRed 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 |
pythonRed 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-debuginfoRed 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-develRed 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-docsRed 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-toolsRed 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 |
tkinterRed 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 |
pythonRed 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-debuginfoRed 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-develRed 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-docsRed 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-toolsRed 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 |
tkinterRed 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 |
pythonRed 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-debuginfoRed 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-develRed 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-docsRed 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-toolsRed 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 |
tkinterRed 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 |
pythonRed 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-debuginfoRed 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-develRed 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-toolsRed Hat:enterprise_linux:3::as From an advisory covering 8 CVEs |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
tkinterRed Hat:enterprise_linux:3::as From an advisory covering 8 CVEs |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
pythonRed 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-debuginfoRed 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-develRed 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-toolsRed Hat:enterprise_linux:3::desktop From an advisory covering 8 CVEs |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
tkinterRed Hat:enterprise_linux:3::desktop From an advisory covering 8 CVEs |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
pythonRed 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-debuginfoRed 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-develRed 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-toolsRed Hat:enterprise_linux:3::es From an advisory covering 8 CVEs |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
tkinterRed Hat:enterprise_linux:3::es From an advisory covering 8 CVEs |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
pythonRed 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-debuginfoRed 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-develRed 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-toolsRed Hat:enterprise_linux:3::ws From an advisory covering 8 CVEs |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
tkinterRed Hat:enterprise_linux:3::ws From an advisory covering 8 CVEs |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
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.
References
svn.python.org/view/python/trunk/Objects/unicodeobject.c?rev=61350&view=diff&r1=61350&r2=61349&p1=python/trunk/Objects/unicodeobject.c&p2=/python/trunk/Objects/unicodeobject.c
security.gentoo.org/glsa/glsa-200907-16.xml
secunia.com/advisories/33937
scary.beasts.org/security/CESA-2008-008.html
secunia.com/advisories/37471
openwall.com/lists/oss-security/2008/11/05/3
Show 64 moreShow less
openwall.com/lists/oss-security/2008/11/05/2
vmware.com/security/advisories/VMSA-2009-0016.html
support.apple.com/kb/HT3438
svn.python.org/view?rev=61350&view=rev
lists.apple.com/archives/security-announce/2009/Feb/msg00000.html
securityfocus.com/archive/1/507985/100/0/threaded
exchange.xforce.ibmcloud.com/vulnerabilities/46612
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8564
secunia.com/advisories/35750
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11280
svn.python.org/view/python/trunk/Objects/stringobject.c?rev=61350&view=diff&r1=61350&r2=61349&p1=python/trunk/Objects/stringobject.c&p2=/python/trunk/Objects/stringobject.c
vupen.com/english/advisories/2009/3316
nvd.nist.gov/vuln/detail/CVE-2008-5031
github.com/advisories/GHSA-crr2-q8mf-w298
access.redhat.com/errata/RHSA-2009:1176
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=235093
bugzilla.redhat.com/show_bug.cgi?id=295971
bugzilla.redhat.com/show_bug.cgi?id=442005
bugzilla.redhat.com/show_bug.cgi?id=443810
bugzilla.redhat.com/show_bug.cgi?id=454990
bugzilla.redhat.com/show_bug.cgi?id=455008
bugzilla.redhat.com/show_bug.cgi?id=455013
bugzilla.redhat.com/show_bug.cgi?id=455018
bugzilla.redhat.com/show_bug.cgi?id=469656
bugzilla.redhat.com/show_bug.cgi?id=470915
security.access.redhat.com/data/csaf/v2/advisories/2009/rhsa-2009_1176.json
access.redhat.com/security/cve/CVE-2007-2052
cve.org/CVERecord?id=CVE-2007-2052
nvd.nist.gov/vuln/detail/CVE-2007-2052
access.redhat.com/security/cve/CVE-2007-4965
cve.org/CVERecord?id=CVE-2007-4965
nvd.nist.gov/vuln/detail/CVE-2007-4965
access.redhat.com/security/cve/CVE-2008-1721
cve.org/CVERecord?id=CVE-2008-1721
nvd.nist.gov/vuln/detail/CVE-2008-1721
access.redhat.com/security/cve/CVE-2008-1887
cve.org/CVERecord?id=CVE-2008-1887
nvd.nist.gov/vuln/detail/CVE-2008-1887
access.redhat.com/security/cve/CVE-2008-2315
cve.org/CVERecord?id=CVE-2008-2315
nvd.nist.gov/vuln/detail/CVE-2008-2315
access.redhat.com/security/cve/CVE-2008-3142
cve.org/CVERecord?id=CVE-2008-3142
nvd.nist.gov/vuln/detail/CVE-2008-3142
access.redhat.com/security/cve/CVE-2008-3143
cve.org/CVERecord?id=CVE-2008-3143
nvd.nist.gov/vuln/detail/CVE-2008-3143
access.redhat.com/security/cve/CVE-2008-3144
cve.org/CVERecord?id=CVE-2008-3144
nvd.nist.gov/vuln/detail/CVE-2008-3144
access.redhat.com/security/cve/CVE-2008-4864
cve.org/CVERecord?id=CVE-2008-4864
nvd.nist.gov/vuln/detail/CVE-2008-4864
access.redhat.com/security/cve/CVE-2008-5031
cve.org/CVERecord?id=CVE-2008-5031
access.redhat.com/errata/RHSA-2009:1177
bugzilla.redhat.com/show_bug.cgi?id=441306
security.access.redhat.com/data/csaf/v2/advisories/2009/rhsa-2009_1177.json
access.redhat.com/security/cve/CVE-2008-1679
cve.org/CVERecord?id=CVE-2008-1679
nvd.nist.gov/vuln/detail/CVE-2008-1679
access.redhat.com/errata/RHSA-2009:1178
security.access.redhat.com/data/csaf/v2/advisories/2009/rhsa-2009_1178.json