Vulnerabilities · 2008 · Python
CVE-2008-5031
Python vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Python. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- secunia.com/advisories/33937 · Vendor Advisory
- secunia.com/advisories/35750 · Vendor Advisory
- secunia.com/advisories/37471 · Vendor Advisory
- www.vupen.com/english/advisories/2009/3316 · Vendor Advisory
- lists.apple.com/archives/security-announce/2009/Feb/msg00000.html
- scary.beasts.org/security/CESA-2008-008.html
- security.gentoo.org/glsa/glsa-200907-16.xml
- support.apple.com/kb/HT3438
- nvd.nist.gov/vuln/detail/CVE-2008-5031
- cve.org/CVERecord?id=CVE-2008-5031
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.