CVE-2008-5031
CWE-189Published: November 10, 2008· Updated: Jun 16, 2026
Official 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.
Technical Analysis
CVE-2008-5031 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
Exploitation requires some privileges, which limits the exposure to scenarios where an attacker has already gained initial access.
CVSS v3.1 Vector Breakdown
Affected Vendors & Products
Exploit & PoC Resources
Official Patches & Advisories
All References (36)
Quick Facts
Related CVEs (CWE-189)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2008-5031 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts