CVE-2008-5031

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.

Category

10.0
CVSS
Severity: Critical
CVSS 2.0 •
EPSS 3.03% Top 15%
Vendor Advisory gentoo.org Vendor Advisory apple.com Vendor Advisory secunia.com Vendor Advisory secunia.com Vendor Advisory secunia.com Vendor Advisory vupen.com
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
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://security.gentoo.org/glsa/glsa-200907-16.xml vendor advisory
http://secunia.com/advisories/33937 third party advisory vendor advisory
http://scary.beasts.org/security/CESA-2008-008.html
http://secunia.com/advisories/37471 third party advisory vendor advisory
http://www.openwall.com/lists/oss-security/2008/11/05/3 mailing list
http://www.openwall.com/lists/oss-security/2008/11/05/2 mailing list
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
http://lists.apple.com/archives/security-announce/2009/Feb/msg00000.html vendor advisory
http://www.securityfocus.com/archive/1/507985/100/0/threaded mailing list
https://exchange.xforce.ibmcloud.com/vulnerabilities/46612 vdb entry
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8564 vdb entry signature
http://secunia.com/advisories/35750 third party advisory vendor advisory
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11280 vdb entry signature
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
http://www.vupen.com/english/advisories/2009/3316 vdb entry vendor advisory

Frequently Asked Questions

What is the severity of CVE-2008-5031?
CVE-2008-5031 has been scored as a critical severity vulnerability.
How to fix CVE-2008-5031?
To fix CVE-2008-5031, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2008-5031 being actively exploited in the wild?
It is possible that CVE-2008-5031 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~3% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.