{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"MODERATE\"}"}}}], "affected": [{"vendor": "oraclelinux", "product": "python", "versions": [{"status": "affected", "version": "0", "lessThan": "0:2.4.3-24.el5_3.6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "python-devel", "versions": [{"status": "affected", "version": "0", "lessThan": "0:2.4.3-24.el5_3.6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "python-tools", "versions": [{"status": "affected", "version": "0", "lessThan": "0:2.4.3-24.el5_3.6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "tkinter", "versions": [{"status": "affected", "version": "0", "lessThan": "0:2.4.3-24.el5_3.6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}], "references": [{"url": "https://linux.oracle.com/cve/CVE-2008-5031.html"}], "descriptions": [{"lang": "en", "value": "Multiple integer overflows in Python 2.5.2 and earlier allow context-dependent attackers to have an unknown impact via vectors related to the (1) stringobject, (2) unicodeobject, (3) bufferobject, (4) longobject, (5) tupleobject, (6) stropmodule, (7) gcmodule, and (8) mmapmodule modules. NOTE: The expandtabs integer overflows in stringobject and unicodeobject in 2.5.2 are covered by CVE-2008-5031.\nMultiple 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."}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000006", "shortName": "oraclelinux", "dateUpdated": "2009-07-27T00:00:00Z", "x_subShortName": "oraclelinux"}}, {"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Moderate\"}"}}}], "affected": [{"vendor": "redhat", "product": "python", "versions": [{"status": "affected", "version": "0", "lessThan": "0:2.4.3-24.el5_3.6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "python-devel", "versions": [{"status": "affected", "version": "0", "lessThan": "0:2.4.3-24.el5_3.6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "python-tools", "versions": [{"status": "affected", "version": "0", "lessThan": "0:2.4.3-24.el5_3.6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "tkinter", "versions": [{"status": "affected", "version": "0", "lessThan": "0:2.4.3-24.el5_3.6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}], "references": [{"url": "https://access.redhat.com/errata/RHSA-2009:1176"}, {"url": "https://access.redhat.com/security/cve/CVE-2008-5031"}], "descriptions": [{"lang": "en", "value": "Python is an interpreted, interactive, object-oriented programming\nlanguage.\n\nWhen the assert() system call was disabled, an input sanitization flaw was\nrevealed in the Python string object implementation that led to a buffer\noverflow. The missing check for negative size values meant the Python\nmemory allocator could allocate less memory than expected. This could\nresult in arbitrary code execution with the Python interpreter's\nprivileges. (CVE-2008-1887)\n\nMultiple buffer and integer overflow flaws were found in the Python Unicode\nstring processing and in the Python Unicode and string object\nimplementations. An attacker could use these flaws to cause a denial of\nservice (Python application crash). (CVE-2008-3142, CVE-2008-5031)\n\nMultiple integer overflow flaws were found in the Python imageop module. If\na Python application used the imageop module to process untrusted images,\nit could cause the application to disclose sensitive information, crash or,\npotentially, execute arbitrary code with the Python interpreter's\nprivileges. (CVE-2007-4965, CVE-2008-4864)\n\nMultiple integer underflow and overflow flaws were found in the Python\nsnprintf() wrapper implementation. An attacker could use these flaws to\ncause a denial of service (memory corruption). (CVE-2008-3144)\n\nMultiple integer overflow flaws were found in various Python modules. An\nattacker could use these flaws to cause a denial of service (Python\napplication crash). (CVE-2008-2315, CVE-2008-3143)\n\nAn integer signedness error, leading to a buffer overflow, was found\nin the Python zlib extension module. If a Python application requested\nthe negative byte count be flushed for a decompression stream, it could\ncause the application to crash or, potentially, execute arbitrary code\nwith the Python interpreter's privileges. (CVE-2008-1721)\n\nA flaw was discovered in the strxfrm() function of the Python locale\nmodule. Strings generated by this function were not properly\nNULL-terminated, which could possibly cause disclosure of data stored in\nthe memory of a Python application using this function. (CVE-2007-2052)\n\nRed Hat would like to thank David Remahl of the Apple Product Security team\nfor responsibly reporting the CVE-2008-2315 issue.\n\nAll Python users should upgrade to these updated packages, which contain\nbackported patches to correct these issues."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2008-10-19T00:00:00Z", "x_subShortName": "redhat_5"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 10, "accessVector": "NETWORK", "vectorString": "AV:N/AC:L/Au:N/C:C/I:C/A:C", "authentication": "NONE", "integrityImpact": "COMPLETE", "accessComplexity": "LOW", "availabilityImpact": "COMPLETE", "confidentialityImpact": "COMPLETE"}}], "affected": [{"cpes": ["cpe:2.3:a:python:python:2.2.3:*:*:*:*:*:*:*", "cpe:2.3:a:python:python:2.3.7:*:*:*:*:*:*:*", "cpe:2.3:a:python:python:2.4.6:*:*:*:*:*:*:*", "cpe:2.3:a:python:python:2.5.1:*:*:*:*:*:*:*"], "vendor": "python", "product": "python", "versions": [{"status": "affected", "version": "2.2.3"}, {"status": "affected", "version": "2.3.7"}, {"status": "affected", "version": "2.4.6"}, {"status": "affected", "version": "2.5.1"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://secunia.com/advisories/33937", "tags": ["vendor-advisory"]}, {"url": "http://secunia.com/advisories/35750", "tags": ["vendor-advisory"]}, {"url": "http://secunia.com/advisories/37471", "tags": ["vendor-advisory"]}, {"url": "http://www.vupen.com/english/advisories/2009/3316", "tags": ["vendor-advisory"]}, {"url": "http://lists.apple.com/archives/security-announce/2009/Feb/msg00000.html"}, {"url": "http://scary.beasts.org/security/CESA-2008-008.html"}, {"url": "http://security.gentoo.org/glsa/glsa-200907-16.xml"}, {"url": "http://support.apple.com/kb/HT3438"}, {"url": "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"}, {"url": "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"}, {"url": "http://svn.python.org/view?rev=61350&view=rev"}, {"url": "http://www.openwall.com/lists/oss-security/2008/11/05/2"}, {"url": "http://www.openwall.com/lists/oss-security/2008/11/05/3"}, {"url": "http://www.securityfocus.com/archive/1/507985/100/0/threaded"}, {"url": "http://www.vmware.com/security/advisories/VMSA-2009-0016.html"}, {"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/46612"}, {"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11280"}, {"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8564"}], "descriptions": [{"lang": "en", "value": "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."}, {"lang": "es", "value": "Múltiples desbordamientos de enteros en Python versiones 2.2.3 hasta 2.5.1 y 2.6, permiten a los atacantes dependiendo del contexto tener un impacto desconocido por medio de un valor entero largo en el argumento tabsize para el método expandtabs, tal y como es implementado por ( 1) la función string_expandtabs en el archivo Objects/stringobject.c y (2) la función unicode_expandtabs en el archivo Objects/unicodeobject.c. NOTA: esta vulnerabilidad se presenta debido a una corrección incompleta para el CVE-2008-2315."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-189", "description": "CWE-189"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2008-11-10T16:15:12Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2008-5031", "state": "PUBLISHED", "dateUpdated": "2025-04-09T00:30:58Z", "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "datePublished": "2008-11-10T16:15:12Z", "assignerShortName": "mitre"}, "dataVersion": "5.0"}