Multiple integer overflows in Python 2.2.3 through 2.5.1, and 2.6, allow…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Complete · Complete · Complete
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-189 and the CVSS impact.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:2.2.3:*:*:*:*:*:*:* | 2.2.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.3.7:*:*:*:*:*:*:* | 2.3.7 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.4.6:*:*:*:*:*:*:* | 2.4.6 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.5.1:*:*:*:*:*:*:* | 2.5.1 | Vulnerable | python-pillow |
- cpe:2.3:a:python:python:2.2.3:*:*:*:*:*:*:* Versions 2.2.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.3.7:*:*:*:*:*:*:* Versions 2.3.7 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.4.6:*:*:*:*:*:*:* Versions 2.4.6 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.5.1:*:*:*:*:*:*:* Versions 2.5.1 Vulnerable ·python-pillow
Remediation
Red Hat 3 advisories
- RHSA-2009:1177 Released 2009-07-27 · Red Hat rating Moderatepython security update
- Red Hat Enterprise Linux AS version 4 python-2.3.4-14.7.el4_8.2, python-2.3.4-14.7.el4_8.2.i386, python-2.3.4-14.7.el4_8.2.ia64 +17
- Red Hat Enterprise Linux Desktop version 4 python-2.3.4-14.7.el4_8.2, python-2.3.4-14.7.el4_8.2.i386, python-devel-2.3.4-14.7.el4_8.2 +7
- Red Hat Enterprise Linux ES version 4 python-2.3.4-14.7.el4_8.2, python-2.3.4-14.7.el4_8.2.i386, python-2.3.4-14.7.el4_8.2.ia64 +12
- Red Hat Enterprise Linux WS version 4 python-2.3.4-14.7.el4_8.2, python-2.3.4-14.7.el4_8.2.i386, python-2.3.4-14.7.el4_8.2.ia64 +12
- RHSA-2009:1178 Released 2009-07-27 · Red Hat rating Moderatepython security update
- Red Hat Desktop version 3 python-2.2.3-6.11, python-2.2.3-6.11.i386, python-devel-2.2.3-6.11 +5
- Red Hat Enterprise Linux AS version 3 python-2.2.3-6.11, python-2.2.3-6.11.i386, python-2.2.3-6.11.ia64 +13
- Red Hat Enterprise Linux ES version 3 python-2.2.3-6.11, python-2.2.3-6.11.i386, python-2.2.3-6.11.ia64 +9
- Red Hat Enterprise Linux WS version 3 python-2.2.3-6.11, python-2.2.3-6.11.i386, python-2.2.3-6.11.ia64 +9
- RHSA-2009:1176 Released 2009-07-27 · Red Hat rating Moderatepython security update
- Red Hat Enterprise Linux (v. 5 server) python-2.4.3-24.el5_3.6, python-2.4.3-24.el5_3.6.i386, python-2.4.3-24.el5_3.6.ia64 +13
- Red Hat Enterprise Linux Desktop (v. 5 client) python-2.4.3-24.el5_3.6, python-2.4.3-24.el5_3.6.i386, python-tools-2.4.3-24.el5_3.6 +3
- Red Hat Enterprise Linux Desktop Workstation (v. 5 client) python-2.4.3-24.el5_3.6, python-devel-2.4.3-24.el5_3.6, python-devel-2.4.3-24.el5_3.6.i386
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Desktop version 3 | Fixed | RHSA-2009:1178 |
| Red Hat Enterprise Linux (v. 5 server) | Fixed | RHSA-2009:1176 |
| Red Hat Enterprise Linux AS version 3 | Fixed | RHSA-2009:1178 |
| Red Hat Enterprise Linux AS version 4 | Fixed | RHSA-2009:1177 |
| Red Hat Enterprise Linux Desktop (v. 5 client) | Fixed | RHSA-2009:1176 |
| Red Hat Enterprise Linux Desktop Workstation (v. 5 client) | Fixed | RHSA-2009:1176 |
| Red Hat Enterprise Linux Desktop version 4 | Fixed | RHSA-2009:1177 |
| Red Hat Enterprise Linux ES version 3 | Fixed | RHSA-2009:1178 |
| Red Hat Enterprise Linux ES version 4 | Fixed | RHSA-2009:1177 |
| Red Hat Enterprise Linux WS version 3 | Fixed | RHSA-2009:1178 |
| Red Hat Enterprise Linux WS version 4 | Fixed | RHSA-2009:1177 |
Timeline
- 2026-10-02 Threatist record created from CVE-2008-5031
- 2026-10-03 Alias added: GHSA-crr2-q8mf-w298
References
Other 10
- http://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
- http://scary.beasts.org/security/CESA-2008-008.html
- [oss-security] 20081105 Re: CVE Request - Python string expandtabs
- [oss-security] 20081105 CVE Request - Python string expandtabs
- http://www.vmware.com/security/advisories/VMSA-2009-0016.html
- http://support.apple.com/kb/HT3438
- http://svn.python.org/view?rev=61350&view=rev
- oval:org.mitre.oval:def:8564
- oval:org.mitre.oval:def:11280
- http://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
More python-pillow Python vulnerabilities
- TI-2016-01993 The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other… CVSS 3.1HIGH 7.5
- TI-2022-24108 An XML External Entity (XXE) issue was discovered in Python through 3.9.1. CVSS 3.1CRITICAL 9.8
- TI-2022-17508 The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and… CVSS 3.1CRITICAL 9.8
- TI-2021-02254 Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c… CVSS 3.1CRITICAL 9.8
- TI-2007-04413 Directory traversal vulnerability in the (1) extract and (2) extractall functions in the… CVSS 3.1CRITICAL 9.8
- TI-2014-00217 OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly… CVSS 3.1HIGH 7.4
Sources
- CVE-2008-5031 · CVE Program
- CVE-2008-5031 · NVD
- FIRST EPSS
- GHSA-crr2-q8mf-w298 · GitHub Advisory Database · CC BY 4.0
- CVE-2008-5031 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences