CVE-2008-5031 json
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…
published 2008-11-10 17 y ago modified 2026-06-16 4 mo ago also EUVD-2008-5010
- cvss
- 10.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.0%
- EPSS 3.0% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- python RHEL 3 2.2.3-6.11
- tkinter RHEL 3 2.2.3-6.11
- python-tools RHEL 3 2.2.3-6.11
- python RHEL 4 2.3.4-14.7.el4_8.2
- tkinter RHEL 4 2.3.4-14.7.el4_8.2
- python-tools RHEL 4 2.3.4-14.7.el4_8.2
- python RHEL 5 2.4.3-24.el5_3.6
- tkinter RHEL 5 2.4.3-24.el5_3.6
red hat advisories RHSA-2009:1178RHSA-2009:1177RHSA-2009:1176
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2008-5031 updated
python: stringobject, unicodeobject integer overflows
-
Red Hat Desktop version 3 python 2.2.3-6.11, tkinter 2.2.3-6.11, python-tools 2.2.3-6.11fixed: vendor fix RHSA-2009:1178
-
Red Hat Enterprise Linux (v. 5 server) python 2.4.3-24.el5_3.6, tkinter 2.4.3-24.el5_3.6, python-tools 2.4.3-24.el5_3.6fixed: vendor fix RHSA-2009:1176
-
Red Hat Enterprise Linux AS version 3 python 2.2.3-6.11, tkinter 2.2.3-6.11, python-tools 2.2.3-6.11fixed: vendor fix RHSA-2009:1178
-
Red Hat Enterprise Linux AS version 4 python 2.3.4-14.7.el4_8.2, tkinter 2.3.4-14.7.el4_8.2, python-tools 2.3.4-14.7.el4_8.2fixed: vendor fix RHSA-2009:1177
-
Red Hat Enterprise Linux Desktop (v. 5 client) python 2.4.3-24.el5_3.6, tkinter 2.4.3-24.el5_3.6, python-tools 2.4.3-24.el5_3.6fixed: vendor fix RHSA-2009:1176
-
Red Hat Enterprise Linux Desktop version 4 python 2.3.4-14.7.el4_8.2, tkinter 2.3.4-14.7.el4_8.2, python-tools 2.3.4-14.7.el4_8.2fixed: vendor fix RHSA-2009:1177
-
Red Hat Enterprise Linux Desktop Workstation (v. 5 client) python 2.4.3-24.el5_3.6, tkinter 2.4.3-24.el5_3.6, python-tools 2.4.3-24.el5_3.6fixed: vendor fix RHSA-2009:1176
-
Red Hat Enterprise Linux ES version 3 python 2.2.3-6.11, tkinter 2.2.3-6.11, python-tools 2.2.3-6.11fixed: vendor fix RHSA-2009:1178
show 3 moreshow fewer
-
Red Hat Enterprise Linux ES version 4 python 2.3.4-14.7.el4_8.2, tkinter 2.3.4-14.7.el4_8.2, python-tools 2.3.4-14.7.el4_8.2fixed: vendor fix RHSA-2009:1177
-
Red Hat Enterprise Linux WS version 3 python 2.2.3-6.11, tkinter 2.2.3-6.11, python-tools 2.2.3-6.11fixed: vendor fix RHSA-2009:1178
-
Red Hat Enterprise Linux WS version 4 python 2.3.4-14.7.el4_8.2, tkinter 2.3.4-14.7.el4_8.2, python-tools 2.3.4-14.7.el4_8.2fixed: vendor fix RHSA-2009:1177
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.99% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-189 Numeric Errors
References
-
security.gentoo.org
/glsa/glsa-200907-16.xml
vendor-advisory
-
lists.apple.com
/archives/security-announce/2009/Feb/msg00000.html
vendor-advisory
-
secunia.com
/advisories/33937
third-party-advisory, vendor-advisory
-
secunia.com
/advisories/37471
third-party-advisory, vendor-advisory
-
secunia.com
/advisories/35750
third-party-advisory, vendor-advisory
-
vupen.com
/english/advisories/2009/3316
vdb-entry, vendor-advisory
- svn.python.org /view/python/trunk/Objects/unicodeobject.c?rev=61350&view=diff&r1=61350&r2=61349&p1=python/trunk/Objects/unico
- scary.beasts.org /security/CESA-2008-008.html
-
openwall.com
/lists/oss-security/2008/11/05/3
mailing-list
-
openwall.com
/lists/oss-security/2008/11/05/2
mailing-list
- vmware.com /security/advisories/VMSA-2009-0016.html
- support.apple.com /kb/HT3438
- svn.python.org /view?rev=61350&view=rev
-
securityfocus.com
/archive/1/507985/100/0/threaded
mailing-list
-
exchange.xforce.ibmcloud.com
/vulnerabilities/46612
vdb-entry
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8564
vdb-entry, signature
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11280
vdb-entry, signature
- svn.python.org /view/python/trunk/Objects/stringobject.c?rev=61350&view=diff&r1=61350&r2=61349&p1=python/trunk/Objects/string
Sources
- CVE List CVE-2008-5031
- NVD CVE-2008-5031
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.