{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 9.3, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:C/I:C/A:C", "authentication": "NONE", "integrityImpact": "COMPLETE", "accessComplexity": "MEDIUM", "availabilityImpact": "COMPLETE", "confidentialityImpact": "COMPLETE"}}, {"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-1887.html"}], "descriptions": [{"lang": "en", "value": "Python 2.5.2 and earlier allows context-dependent attackers to execute arbitrary code via multiple vectors that cause a negative size value to be provided to the PyString_FromStringAndSize function, which allocates less memory than expected when assert() is disabled and triggers a buffer overflow."}], "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-1887"}], "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-04-08T00:00:00Z", "x_subShortName": "redhat_5"}}, {"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Moderate\"}"}}}], "affected": [{"vendor": "suse", "product": "python-32bit", "platforms": ["cpe:/o:suse:sle_hpc:12:sp1", "cpe:/o:suse:sle_hpc:12:sp2", "cpe:/o:suse:sle_hpc:12:sp3", "cpe:/o:suse:sle_hpc:12:sp4", "cpe:/o:suse:sle_hpc:12:sp5", "cpe:/o:suse:sles-bcl:12:sp2", "cpe:/o:suse:sles-bcl:12:sp3", "cpe:/o:suse:sles:12:sp1", "cpe:/o:suse:sles:12:sp2", "cpe:/o:suse:sles:12:sp3", "cpe:/o:suse:sles:12:sp4", "cpe:/o:suse:sles:12:sp5", "cpe:/o:suse:sles_sap:12:sp1", "cpe:/o:suse:sles_sap:12:sp2", "cpe:/o:suse:sles_sap:12:sp3", "cpe:/o:suse:sles_sap:12:sp4"], "defaultStatus": "unaffected"}, {"vendor": "suse", "product": "python-curses", "platforms": ["cpe:/o:suse:sle_hpc:12:sp1", "cpe:/o:suse:sle_hpc:12:sp2", "cpe:/o:suse:sle_hpc:12:sp3", "cpe:/o:suse:sle_hpc:12:sp4", "cpe:/o:suse:sle_hpc:12:sp5", "cpe:/o:suse:sles-bcl:12:sp2", "cpe:/o:suse:sles-bcl:12:sp3", "cpe:/o:suse:sles:12:sp1", "cpe:/o:suse:sles:12:sp2", "cpe:/o:suse:sles:12:sp3", "cpe:/o:suse:sles:12:sp4", "cpe:/o:suse:sles:12:sp5", "cpe:/o:suse:sles_sap:12:sp1", "cpe:/o:suse:sles_sap:12:sp2", "cpe:/o:suse:sles_sap:12:sp3", "cpe:/o:suse:sles_sap:12:sp4"], "defaultStatus": "unaffected"}, {"vendor": "suse", "product": "python-demo", "platforms": ["cpe:/o:suse:sle_hpc:12:sp1", "cpe:/o:suse:sle_hpc:12:sp2", "cpe:/o:suse:sle_hpc:12:sp3", "cpe:/o:suse:sle_hpc:12:sp4", "cpe:/o:suse:sle_hpc:12:sp5", "cpe:/o:suse:sles-bcl:12:sp2", "cpe:/o:suse:sles-bcl:12:sp3", "cpe:/o:suse:sles:12:sp1", "cpe:/o:suse:sles:12:sp2", "cpe:/o:suse:sles:12:sp3", "cpe:/o:suse:sles:12:sp4", "cpe:/o:suse:sles:12:sp5", "cpe:/o:suse:sles_sap:12:sp1", "cpe:/o:suse:sles_sap:12:sp2", "cpe:/o:suse:sles_sap:12:sp3", "cpe:/o:suse:sles_sap:12:sp4"], "defaultStatus": "unaffected"}, {"vendor": "suse", "product": "python-gdbm", "platforms": ["cpe:/o:suse:sle_hpc:12:sp1", "cpe:/o:suse:sle_hpc:12:sp2", "cpe:/o:suse:sle_hpc:12:sp3", "cpe:/o:suse:sle_hpc:12:sp4", "cpe:/o:suse:sle_hpc:12:sp5", "cpe:/o:suse:sles-bcl:12:sp2", "cpe:/o:suse:sles-bcl:12:sp3", "cpe:/o:suse:sles:12:sp1", "cpe:/o:suse:sles:12:sp2", "cpe:/o:suse:sles:12:sp3", "cpe:/o:suse:sles:12:sp4", "cpe:/o:suse:sles:12:sp5", "cpe:/o:suse:sles_sap:12:sp1", "cpe:/o:suse:sles_sap:12:sp2", "cpe:/o:suse:sles_sap:12:sp3", "cpe:/o:suse:sles_sap:12:sp4"], "defaultStatus": "unaffected"}, {"vendor": "suse", "product": "python-idle", "platforms": ["cpe:/o:suse:sle_hpc:12:sp1", "cpe:/o:suse:sle_hpc:12:sp2", "cpe:/o:suse:sle_hpc:12:sp3", "cpe:/o:suse:sle_hpc:12:sp4", "cpe:/o:suse:sle_hpc:12:sp5", "cpe:/o:suse:sles-bcl:12:sp2", "cpe:/o:suse:sles-bcl:12:sp3", "cpe:/o:suse:sles:12:sp1", "cpe:/o:suse:sles:12:sp2", "cpe:/o:suse:sles:12:sp3", "cpe:/o:suse:sles:12:sp4", "cpe:/o:suse:sles:12:sp5", "cpe:/o:suse:sles_sap:12:sp1", "cpe:/o:suse:sles_sap:12:sp2", "cpe:/o:suse:sles_sap:12:sp3", "cpe:/o:suse:sles_sap:12:sp4"], "defaultStatus": "unaffected"}, {"vendor": "suse", "product": "python-tk", "platforms": ["cpe:/o:suse:sle_hpc:12:sp1", "cpe:/o:suse:sle_hpc:12:sp2", "cpe:/o:suse:sle_hpc:12:sp3", "cpe:/o:suse:sle_hpc:12:sp4", "cpe:/o:suse:sle_hpc:12:sp5", "cpe:/o:suse:sles-bcl:12:sp2", "cpe:/o:suse:sles-bcl:12:sp3", "cpe:/o:suse:sles:12:sp1", "cpe:/o:suse:sles:12:sp2", "cpe:/o:suse:sles:12:sp3", "cpe:/o:suse:sles:12:sp4", "cpe:/o:suse:sles:12:sp5", "cpe:/o:suse:sles_sap:12:sp1", "cpe:/o:suse:sles_sap:12:sp2", "cpe:/o:suse:sles_sap:12:sp3", "cpe:/o:suse:sles_sap:12:sp4"], "defaultStatus": "unaffected"}, {"vendor": "suse", "product": "python", "platforms": ["cpe:/o:suse:sle_hpc:12:sp1", "cpe:/o:suse:sle_hpc:12:sp2", "cpe:/o:suse:sle_hpc:12:sp3", "cpe:/o:suse:sle_hpc:12:sp4", "cpe:/o:suse:sle_hpc:12:sp5", "cpe:/o:suse:sles-bcl:12:sp2", "cpe:/o:suse:sles-bcl:12:sp3", "cpe:/o:suse:sles:12:sp1", "cpe:/o:suse:sles:12:sp2", "cpe:/o:suse:sles:12:sp3", "cpe:/o:suse:sles:12:sp4", "cpe:/o:suse:sles:12:sp5", "cpe:/o:suse:sles_sap:12:sp1", "cpe:/o:suse:sles_sap:12:sp2", "cpe:/o:suse:sles_sap:12:sp3", "cpe:/o:suse:sles_sap:12:sp4", "cpe:/o:suse:sles_sap:12:sp5"], "defaultStatus": "unaffected"}], "solutions": [{"lang": "en", "value": "SUSE bug 379534"}], "references": [{"url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-1887", "name": "Mitre CVE-2008-1887"}, {"url": "https://www.suse.com/security/cve/CVE-2008-1887", "name": "SUSE CVE-2008-1887"}, {"url": "https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/KUUXE6IWBPGX77THPJH4GX6TYOFU2EQR/#KUUXE6IWBPGX77THPJH4GX6TYOFU2EQR", "name": "SUSE-SR:2008:017"}], "descriptions": [{"lang": "en", "value": "\n    Python 2.5.2 and earlier allows context-dependent attackers to execute arbitrary code via multiple vectors that cause a negative size value to be provided to the PyString_FromStringAndSize function, which allocates less memory than expected when assert() is disabled and triggers a buffer overflow.\n    "}], "providerMetadata": {"orgId": "404e59f5-483d-4b8a-8e7a-e67604dd8afb", "shortName": "suse", "dateUpdated": "2021-11-24T00:00:00Z", "x_subShortName": "suse_server_12"}}, {"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Critical\"}"}}}], "affected": [{"vendor": "suse", "product": "python", "platforms": ["cpe:/o:suse:sled:12:sp4"], "defaultStatus": "unaffected"}], "solutions": [{"lang": "en", "value": "SUSE bug 379534"}], "references": [{"url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-1887", "name": "Mitre CVE-2008-1887"}, {"url": "https://www.suse.com/security/cve/CVE-2008-1887", "name": "SUSE CVE-2008-1887"}, {"url": "https://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html", "name": "SUSE-SR:2008:017"}], "descriptions": [{"lang": "en", "value": "\n    Python 2.5.2 and earlier allows context-dependent attackers to execute arbitrary code via multiple vectors that cause a negative size value to be provided to the PyString_FromStringAndSize function, which allocates less memory than expected when assert() is disabled and triggers a buffer overflow.\n    "}], "providerMetadata": {"orgId": "404e59f5-483d-4b8a-8e7a-e67604dd8afb", "shortName": "suse", "dateUpdated": "2021-11-24T00:00:00Z", "x_subShortName": "suse_desktop_12"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 9.3, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:C/I:C/A:C", "authentication": "NONE", "integrityImpact": "COMPLETE", "accessComplexity": "MEDIUM", "availabilityImpact": "COMPLETE", "confidentialityImpact": "COMPLETE"}}], "affected": [{"cpes": ["cpe:2.3:a:python:python:*:*:*:*:*:*:*:*"], "vendor": "python", "product": "python", "versions": [{"status": "affected", "version": "0", "versionType": "custom", "lessThanOrEqual": "2.5.2"}], "defaultStatus": "unaffected"}, {"cpes": ["cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:*:*:*:*", "cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:*", "cpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:*", "cpe:2.3:o:canonical:ubuntu_linux:8.04:*:*:*:-:*:*:*"], "vendor": "canonical", "product": "ubuntu_linux", "versions": [{"status": "affected", "version": "6.06"}, {"status": "affected", "version": "7.04"}, {"status": "affected", "version": "7.10"}, {"status": "affected", "version": "8.04"}], "defaultStatus": "unaffected"}, {"cpes": ["cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:*"], "vendor": "debian", "product": "debian_linux", "versions": [{"status": "affected", "version": "4.0"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://wiki.rpath.com/wiki/Advisories:rPSA-2009-0122", "tags": ["broken-link"]}, {"url": "http://bugs.python.org/issue2587", "tags": ["exploit", "issue-tracking", "vendor-advisory"]}, {"url": "http://www.securityfocus.com/archive/1/490776", "tags": ["exploit", "third-party-advisory", "vdb-entry"]}, {"url": "http://lists.apple.com/archives/security-announce/2009/Feb/msg00000.html", "tags": ["mailing-list", "third-party-advisory"]}, {"url": "http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html", "tags": ["mailing-list", "third-party-advisory"]}, {"url": "http://secunia.com/advisories/29889", "tags": ["not-applicable"]}, {"url": "http://secunia.com/advisories/30872", "tags": ["not-applicable"]}, {"url": "http://secunia.com/advisories/31255", "tags": ["not-applicable"]}, {"url": "http://secunia.com/advisories/31365", "tags": ["not-applicable"]}, {"url": "http://secunia.com/advisories/31518", "tags": ["not-applicable"]}, {"url": "http://secunia.com/advisories/31687", "tags": ["not-applicable"]}, {"url": "http://secunia.com/advisories/33937", "tags": ["not-applicable"]}, {"url": "http://secunia.com/advisories/37471", "tags": ["not-applicable"]}, {"url": "http://www.debian.org/security/2008/dsa-1551", "tags": ["patch", "third-party-advisory"]}, {"url": "http://www.debian.org/security/2008/dsa-1620", "tags": ["patch", "third-party-advisory"]}, {"url": "http://www.securityfocus.com/bid/28749", "tags": ["patch", "third-party-advisory", "vdb-entry"]}, {"url": "http://www.vupen.com/english/advisories/2009/3316", "tags": ["permissions-required"]}, {"url": "http://security.gentoo.org/glsa/glsa-200807-01.xml", "tags": ["third-party-advisory"]}, {"url": "http://support.apple.com/kb/HT3438", "tags": ["third-party-advisory"]}, {"url": "http://www.novell.com/support/search.do?cmd=displayKC&docType=kc&externalId=InfoDocument-patchbuilder-readme5032900", "tags": ["third-party-advisory"]}, {"url": "http://www.ubuntu.com/usn/usn-632-1", "tags": ["third-party-advisory"]}, {"url": "http://www.vmware.com/security/advisories/VMSA-2009-0016.html", "tags": ["third-party-advisory"]}, {"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10407", "tags": ["third-party-advisory"]}, {"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8624", "tags": ["third-party-advisory"]}, {"url": "http://www.securityfocus.com/archive/1/506056/100/0/threaded", "tags": ["third-party-advisory", "vdb-entry"]}, {"url": "http://www.securityfocus.com/archive/1/507985/100/0/threaded", "tags": ["third-party-advisory", "vdb-entry"]}, {"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/41944", "tags": ["third-party-advisory", "vdb-entry"]}], "descriptions": [{"lang": "en", "value": "Python 2.5.2 and earlier allows context-dependent attackers to execute arbitrary code via multiple vectors that cause a negative size value to be provided to the PyString_FromStringAndSize function, which allocates less memory than expected when assert() is disabled and triggers a buffer overflow."}, {"lang": "es", "value": "Python versión 2.5.2 y anteriores, permite a los atacantes dependiendo del contexto ejecutar código arbitrario por medio de varios vectores que causan que se proporcione un valor de tamaño negativo a la función PyString_FromStringAndSize, que asigna menos memoria de la esperada cuando assert() está deshabilitado y desencadena un desbordamiento de búfer."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-120", "description": "CWE-120"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2008-04-18T17:05:00Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2008-1887", "state": "PUBLISHED", "dateUpdated": "2025-04-09T00:30:58Z", "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "datePublished": "2008-04-18T17:05:00Z", "assignerShortName": "mitre"}, "dataVersion": "5.0"}