{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 5.8, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:P/I:N/A:P", "authentication": "NONE", "integrityImpact": "NONE", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}, {"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-2007-4965.html"}], "descriptions": [{"lang": "en", "value": "Multiple integer overflows in the imageop module in Python 2.5.1 and earlier allow context-dependent attackers to cause a denial of service (application crash) and possibly obtain sensitive information (memory contents) via crafted arguments to (1) the tovideo method, and unspecified other vectors related to (2) imageop.c, (3) rbgimgmodule.c, and other files, which trigger heap-based buffer overflows.\nMultiple integer overflows in imageop.c in the imageop module in Python 1.5.2 through 2.5.1 allow context-dependent attackers to break out of the Python VM and execute arbitrary code via large integer values in certain arguments to the crop function, leading to a buffer overflow, a different vulnerability than CVE-2007-4965 and CVE-2008-1679."}], "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-2007-4965"}], "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": "2007-09-16T00:00:00Z", "x_subShortName": "redhat_5"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 5.8, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:P/I:N/A:P", "authentication": "NONE", "integrityImpact": "NONE", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}], "affected": [{"cpes": ["cpe:2.3:a:python:python:*:*:*:*:*:*:*:*"], "vendor": "python", "product": "python", "versions": [{"status": "affected", "version": "0", "versionType": "custom", "lessThanOrEqual": "2.5.1"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://secunia.com/advisories/26837", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/27460", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/27562", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/27872", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/28136", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/28480", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/28838", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/29032", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/29303", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/29889", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/31255", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/31492", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/33937", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/37471", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/38675", "tags": ["broken-link"]}, {"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:012", "tags": ["broken-link"]}, {"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:013", "tags": ["broken-link"]}, {"url": "http://www.vupen.com/english/advisories/2007/3201", "tags": ["broken-link"]}, {"url": "http://www.vupen.com/english/advisories/2007/4238", "tags": ["broken-link"]}, {"url": "http://www.vupen.com/english/advisories/2008/0637", "tags": ["broken-link"]}, {"url": "http://www.vupen.com/english/advisories/2009/3316", "tags": ["broken-link"]}, {"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10804", "tags": ["broken-link"]}, {"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8486", "tags": ["broken-link"]}, {"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8496", "tags": ["broken-link"]}, {"url": "http://lists.grok.org.uk/pipermail/full-disclosure/2007-September/065826.html", "tags": ["exploit"]}, {"url": "http://www.securityfocus.com/bid/25696", "tags": ["exploit", "third-party-advisory", "vdb-entry"]}, {"url": "http://lists.apple.com/archives/security-announce/2007/Dec/msg00002.html", "tags": ["mailing-list"]}, {"url": "http://lists.apple.com/archives/security-announce/2009/Feb/msg00000.html", "tags": ["mailing-list"]}, {"url": "http://bugs.gentoo.org/show_bug.cgi?id=192876", "tags": ["third-party-advisory"]}, {"url": "http://docs.info.apple.com/article.html?artnum=307179", "tags": ["third-party-advisory"]}, {"url": "http://lists.opensuse.org/opensuse-security-announce/2008-02/msg00003.html", "tags": ["third-party-advisory"]}, {"url": "http://lists.vmware.com/pipermail/security-announce/2008/000005.html", "tags": ["third-party-advisory"]}, {"url": "http://support.apple.com/kb/HT3438", "tags": ["third-party-advisory"]}, {"url": "http://support.avaya.com/css/P8/documents/100074697", "tags": ["third-party-advisory"]}, {"url": "http://wiki.rpath.com/wiki/Advisories:rPSA-2007-0254", "tags": ["third-party-advisory"]}, {"url": "http://www.debian.org/security/2008/dsa-1551", "tags": ["third-party-advisory"]}, {"url": "http://www.debian.org/security/2008/dsa-1620", "tags": ["third-party-advisory"]}, {"url": "http://www.gentoo.org/security/en/glsa/glsa-200711-07.xml", "tags": ["third-party-advisory"]}, {"url": "http://www.redhat.com/support/errata/RHSA-2007-1076.html", "tags": ["third-party-advisory"]}, {"url": "http://www.redhat.com/support/errata/RHSA-2008-0629.html", "tags": ["third-party-advisory"]}, {"url": "http://www.ubuntu.com/usn/usn-585-1", "tags": ["third-party-advisory"]}, {"url": "http://www.vmware.com/security/advisories/VMSA-2009-0016.html", "tags": ["third-party-advisory"]}, {"url": "https://issues.rpath.com/browse/RPL-1885", "tags": ["third-party-advisory"]}, {"url": "https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00378.html", "tags": ["third-party-advisory"]}, {"url": "http://www.securityfocus.com/archive/1/487990/100/0/threaded", "tags": ["third-party-advisory", "vdb-entry"]}, {"url": "http://www.securityfocus.com/archive/1/488457/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": "http://www.us-cert.gov/cas/techalerts/TA07-352A.html", "tags": ["third-party-advisory", "x_us-government-resource"]}, {"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/36653", "tags": ["vdb-entry"]}], "descriptions": [{"lang": "en", "value": "Multiple integer overflows in the imageop module in Python 2.5.1 and earlier allow context-dependent attackers to cause a denial of service (application crash) and possibly obtain sensitive information (memory contents) via crafted arguments to (1) the tovideo method, and unspecified other vectors related to (2) imageop.c, (3) rbgimgmodule.c, and other files, which trigger heap-based buffer overflows."}, {"lang": "es", "value": "Múltiples desbordamientos de entero en el módulo imageop de Python 2.5.1 y anteriores permiten a atacantes locales o remotos (dependiendo del contexto) provocar una denegación de servicio (caída de aplicación) y posiblemente obtener información sensible (contenidos de memoria) mediante argumentos manipulados para (1) el método tovideo, y otros vectores no especificados relacionados con (2) imageop.c, (3) rbgimgmodule.c, y otros archivos, que disparan desbordamientos de búfer basado en montículo."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-190", "description": "CWE-190"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2007-09-18T22:17:00Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2007-4965", "state": "PUBLISHED", "dateUpdated": "2025-04-09T00:30:58Z", "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "datePublished": "2007-09-18T22:17:00Z", "assignerShortName": "mitre"}, "dataVersion": "5.0"}