{"id":"CVE-2008-1887","state":"PUBLISHED","title":"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_FromStrin","description":"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.","publishedAt":"2008-04-18T17:00:00.000Z","updatedAt":"2024-08-07T08:40:59.882Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html","http://bugs.python.org/issue2587","http://security.gentoo.org/glsa/glsa-200807-01.xml","http://secunia.com/advisories/30872","http://www.securityfocus.com/archive/1/506056/100/0/threaded","http://secunia.com/advisories/33937","https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8624","http://secunia.com/advisories/37471","https://exchange.xforce.ibmcloud.com/vulnerabilities/41944","http://secunia.com/advisories/31687","https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10407","http://www.securityfocus.com/archive/1/490776","http://www.debian.org/security/2008/dsa-1551","http://www.vmware.com/security/advisories/VMSA-2009-0016.html","http://support.apple.com/kb/HT3438","http://lists.apple.com/archives/security-announce/2009/Feb/msg00000.html","http://wiki.rpath.com/wiki/Advisories:rPSA-2009-0122","http://www.securityfocus.com/bid/28749","http://www.ubuntu.com/usn/usn-632-1","http://www.securityfocus.com/archive/1/507985/100/0/threaded","http://secunia.com/advisories/31518","http://secunia.com/advisories/31365","http://secunia.com/advisories/31255","http://www.novell.com/support/search.do?cmd=displayKC&docType=kc&externalId=InfoDocument-patchbuilder-readme5032900","http://www.debian.org/security/2008/dsa-1620","http://www.vupen.com/english/advisories/2009/3316","http://secunia.com/advisories/29889"],"weaknesses":[],"ingestedAt":"2026-10-29T19:38:49.659Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2008/1xxx/CVE-2008-1887.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2008-1887","state":"PUBLISHED","datePublished":"2008-04-18T17:00:00.000Z","dateUpdated":"2024-08-07T08:40:59.882Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2008-04-18T00:00:00.000Z"},"containers":{"cna":{"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html","name":"SUSE-SR:2008:017","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://bugs.python.org/issue2587","tags":["x_refsource_CONFIRM"]},{"url":"http://security.gentoo.org/glsa/glsa-200807-01.xml","name":"GLSA-200807-01","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://secunia.com/advisories/30872","name":"30872","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.securityfocus.com/archive/1/506056/100/0/threaded","name":"20090824 rPSA-2009-0122-1 idle python","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://secunia.com/advisories/33937","name":"33937","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8624","name":"oval:org.mitre.oval:def:8624","tags":["vdb-entry","signature","x_refsource_OVAL"]},{"url":"http://secunia.com/advisories/37471","name":"37471","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/41944","name":"python-pystringfromstringandsize-bo(41944)","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://secunia.com/advisories/31687","name":"31687","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10407","name":"oval:org.mitre.oval:def:10407","tags":["vdb-entry","signature","x_refsource_OVAL"]},{"url":"http://www.securityfocus.com/archive/1/490776","name":"20080411 IOActive Security Advisory: Incorrect input validation in PyString_FromStringAndSize() leads to multiple buffer overflows","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://www.debian.org/security/2008/dsa-1551","name":"DSA-1551","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://www.vmware.com/security/advisories/VMSA-2009-0016.html","tags":["x_refsource_CONFIRM"]},{"url":"http://support.apple.com/kb/HT3438","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.apple.com/archives/security-announce/2009/Feb/msg00000.html","name":"APPLE-SA-2009-02-12","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"http://wiki.rpath.com/wiki/Advisories:rPSA-2009-0122","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/28749","name":"28749","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.ubuntu.com/usn/usn-632-1","name":"USN-632-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://www.securityfocus.com/archive/1/507985/100/0/threaded","name":"20091120 VMSA-2009-0016 VMware vCenter and ESX update release and vMA patch release address multiple security issue in third party components","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://secunia.com/advisories/31518","name":"31518","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://secunia.com/advisories/31365","name":"31365","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://secunia.com/advisories/31255","name":"31255","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.novell.com/support/search.do?cmd=displayKC&docType=kc&externalId=InfoDocument-patchbuilder-readme5032900","tags":["x_refsource_CONFIRM"]},{"url":"http://www.debian.org/security/2008/dsa-1620","name":"DSA-1620","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://www.vupen.com/english/advisories/2009/3316","name":"ADV-2009-3316","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"http://secunia.com/advisories/29889","name":"29889","tags":["third-party-advisory","x_refsource_SECUNIA"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2018-10-11T19:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2008-04-08T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2008-1887","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"SUSE-SR:2008:017","refsource":"SUSE","url":"http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html"},{"name":"http://bugs.python.org/issue2587","refsource":"CONFIRM","url":"http://bugs.python.org/issue2587"},{"name":"GLSA-200807-01","refsource":"GENTOO","url":"http://security.gentoo.org/glsa/glsa-200807-01.xml"},{"name":"30872","refsource":"SECUNIA","url":"http://secunia.com/advisories/30872"},{"name":"20090824 rPSA-2009-0122-1 idle python","refsource":"BUGTRAQ","url":"http://www.securityfocus.com/archive/1/506056/100/0/threaded"},{"name":"33937","refsource":"SECUNIA","url":"http://secunia.com/advisories/33937"},{"name":"oval:org.mitre.oval:def:8624","refsource":"OVAL","url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8624"},{"name":"37471","refsource":"SECUNIA","url":"http://secunia.com/advisories/37471"},{"name":"python-pystringfromstringandsize-bo(41944)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/41944"},{"name":"31687","refsource":"SECUNIA","url":"http://secunia.com/advisories/31687"},{"name":"oval:org.mitre.oval:def:10407","refsource":"OVAL","url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10407"},{"name":"20080411 IOActive Security Advisory: Incorrect input validation in PyString_FromStringAndSize() leads to multiple buffer overflows","refsource":"BUGTRAQ","url":"http://www.securityfocus.com/archive/1/490776"},{"name":"DSA-1551","refsource":"DEBIAN","url":"http://www.debian.org/security/2008/dsa-1551"},{"name":"http://www.vmware.com/security/advisories/VMSA-2009-0016.html","refsource":"CONFIRM","url":"http://www.vmware.com/security/advisories/VMSA-2009-0016.html"},{"name":"http://support.apple.com/kb/HT3438","refsource":"CONFIRM","url":"http://support.apple.com/kb/HT3438"},{"name":"APPLE-SA-2009-02-12","refsource":"APPLE","url":"http://lists.apple.com/archives/security-announce/2009/Feb/msg00000.html"},{"name":"http://wiki.rpath.com/wiki/Advisories:rPSA-2009-0122","refsource":"CONFIRM","url":"http://wiki.rpath.com/wiki/Advisories:rPSA-2009-0122"},{"name":"28749","refsource":"BID","url":"http://www.securityfocus.com/bid/28749"},{"name":"USN-632-1","refsource":"UBUNTU","url":"http://www.ubuntu.com/usn/usn-632-1"},{"name":"20091120 VMSA-2009-0016 VMware vCenter and ESX update release and vMA patch release address multiple security issue in third party components","refsource":"BUGTRAQ","url":"http://www.securityfocus.com/archive/1/507985/100/0/threaded"},{"name":"31518","refsource":"SECUNIA","url":"http://secunia.com/advisories/31518"},{"name":"31365","refsource":"SECUNIA","url":"http://secunia.com/advisories/31365"},{"name":"31255","refsource":"SECUNIA","url":"http://secunia.com/advisories/31255"},{"name":"http://www.novell.com/support/search.do?cmd=displayKC&docType=kc&externalId=InfoDocument-patchbuilder-readme5032900","refsource":"CONFIRM","url":"http://www.novell.com/support/search.do?cmd=displayKC&docType=kc&externalId=InfoDocument-patchbuilder-readme5032900"},{"name":"DSA-1620","refsource":"DEBIAN","url":"http://www.debian.org/security/2008/dsa-1620"},{"name":"ADV-2009-3316","refsource":"VUPEN","url":"http://www.vupen.com/english/advisories/2009/3316"},{"name":"29889","refsource":"SECUNIA","url":"http://secunia.com/advisories/29889"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html","name":"SUSE-SR:2008:017","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"http://bugs.python.org/issue2587","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://security.gentoo.org/glsa/glsa-200807-01.xml","name":"GLSA-200807-01","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"http://secunia.com/advisories/30872","name":"30872","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/506056/100/0/threaded","name":"20090824 rPSA-2009-0122-1 idle python","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://secunia.com/advisories/33937","name":"33937","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8624","name":"oval:org.mitre.oval:def:8624","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"http://secunia.com/advisories/37471","name":"37471","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/41944","name":"python-pystringfromstringandsize-bo(41944)","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://secunia.com/advisories/31687","name":"31687","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10407","name":"oval:org.mitre.oval:def:10407","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/490776","name":"20080411 IOActive Security Advisory: Incorrect input validation in PyString_FromStringAndSize() leads to multiple buffer overflows","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.debian.org/security/2008/dsa-1551","name":"DSA-1551","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"http://www.vmware.com/security/advisories/VMSA-2009-0016.html","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://support.apple.com/kb/HT3438","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://lists.apple.com/archives/security-announce/2009/Feb/msg00000.html","name":"APPLE-SA-2009-02-12","tags":["vendor-advisory","x_refsource_APPLE","x_transferred"]},{"url":"http://wiki.rpath.com/wiki/Advisories:rPSA-2009-0122","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.securityfocus.com/bid/28749","name":"28749","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://www.ubuntu.com/usn/usn-632-1","name":"USN-632-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/507985/100/0/threaded","name":"20091120 VMSA-2009-0016 VMware vCenter and ESX update release and vMA patch release address multiple security issue in third party components","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://secunia.com/advisories/31518","name":"31518","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/31365","name":"31365","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/31255","name":"31255","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.novell.com/support/search.do?cmd=displayKC&docType=kc&externalId=InfoDocument-patchbuilder-readme5032900","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.debian.org/security/2008/dsa-1620","name":"DSA-1620","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2009/3316","name":"ADV-2009-3316","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://secunia.com/advisories/29889","name":"29889","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-07T08:40:59.882Z"}}]}}}