python: PyString_FromStringAndSize does not check for negative size values
Published Apr 18, 2008
9.3
HIGHCVSS 2.0
EPSS 6.29%
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.
Affected products
No data.
Configuration 2
- 6.06
- 7.04
- 7.10
- 8.04
Configuration 3
- 4.0
No data.
Red Hat Enterprise Linux 3
python-0:2.2.3-6.11
Fixed · RHSA-2009:1178
Red Hat Enterprise Linux 4
python-0:2.3.4-14.7.el4_8.2
Fixed · RHSA-2009:1177
Red Hat Enterprise Linux 5
python-0:2.4.3-24.el5_3.6
Fixed · RHSA-2009:1176
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 3 | python-0:2.2.3-6.11 | Fixed | RHSA-2009:1178 |
| Red Hat Enterprise Linux 4 | python-0:2.3.4-14.7.el4_8.2 | Fixed | RHSA-2009:1177 |
| Red Hat Enterprise Linux 5 | python-0:2.4.3-24.el5_3.6 | Fixed | RHSA-2009:1176 |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (16 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 6.29% (0.06292) | 93.38th | v5 (v2026.06.15) |
| Jun 15, 2026 | 6.29% (0.06292) | 92.67th | v5 (v2026.06.15) |
| Nov 7, 2025 | 2.75% (0.02752) | 85.48th | v4 (v2025.03.14) |
| Oct 1, 2025 | 1.24% (0.01244) | 78.65th | v4 (v2025.03.14) |
| Jun 28, 2025 | 2.32% (0.02322) | 84.10th | v4 (v2025.03.14) |
| Mar 30, 2025 | 3.46% (0.03461) | 86.43th | v4 (v2025.03.14) |
| Mar 29, 2025 | 5.21% (0.05211) | 82.85th | v4 (v2025.03.14) |
| Mar 17, 2025 | 3.46% (0.03461) | 86.75th | v4 (v2025.03.14) |
| Dec 17, 2024 | 2.06% (0.02062) | 88.72th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.47% (0.00470) | 74.85th | v3 (v2023.03.01) |
| Dec 3, 2023 | 0.47% (0.00470) | 72.78th | v3 (v2023.03.01) |
| Jul 13, 2023 | 0.33% (0.00334) | 67.27th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.43% (0.00434) | 70.61th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.77% (0.02768) | 82.99th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.77% (0.02768) | 81.30th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.77% (0.02768) | 63.79th | v2 (v2022.01.01) |
References (31)
- http://bugs.python.org/issue2587 x_refsource_CONFIRMExploitIssue TrackingVendor Advisory
- http://lists.apple.com/archives/security-announce/2009/Feb/msg00000.html vendor-advisoryx_refsource_APPLEMailing ListThird Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://secunia.com/advisories/29889 third-party-advisoryx_refsource_SECUNIANot Applicable
- http://secunia.com/advisories/30872 third-party-advisoryx_refsource_SECUNIANot Applicable
- http://secunia.com/advisories/31255 third-party-advisoryx_refsource_SECUNIANot Applicable
- http://secunia.com/advisories/31365 third-party-advisoryx_refsource_SECUNIANot Applicable
- http://secunia.com/advisories/31518 third-party-advisoryx_refsource_SECUNIANot Applicable
- http://secunia.com/advisories/31687 third-party-advisoryx_refsource_SECUNIANot Applicable
- http://secunia.com/advisories/33937 third-party-advisoryx_refsource_SECUNIANot Applicable
- http://secunia.com/advisories/37471 third-party-advisoryx_refsource_SECUNIANot Applicable
- http://security.gentoo.org/glsa/glsa-200807-01.xml vendor-advisoryx_refsource_GENTOOThird Party Advisory
- http://support.apple.com/kb/HT3438 x_refsource_CONFIRMThird Party Advisory
- http://wiki.rpath.com/wiki/Advisories:rPSA-2009-0122 x_refsource_CONFIRMBroken Link
- http://www.debian.org/security/2008/dsa-1551 vendor-advisoryx_refsource_DEBIANPatchThird Party Advisory
- http://www.debian.org/security/2008/dsa-1620 vendor-advisoryx_refsource_DEBIANPatchThird Party Advisory
- http://www.novell.com/support/search.do?cmd=displayKC&docType=kc&externalId=InfoDocument-patchbuilder-readme5032900 x_refsource_CONFIRMThird Party Advisory
- http://www.securityfocus.com/archive/1/490776 mailing-listx_refsource_BUGTRAQExploitThird Party AdvisoryVDB Entry
- http://www.securityfocus.com/archive/1/506056/100/0/threaded mailing-listx_refsource_BUGTRAQThird Party AdvisoryVDB Entry
- http://www.securityfocus.com/archive/1/507985/100/0/threaded mailing-listx_refsource_BUGTRAQThird Party AdvisoryVDB Entry
- http://www.securityfocus.com/bid/28749 vdb-entryx_refsource_BIDPatchThird Party AdvisoryVDB Entry
- http://www.ubuntu.com/usn/usn-632-1 vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- http://www.vmware.com/security/advisories/VMSA-2009-0016.html x_refsource_CONFIRMThird Party Advisory
- http://www.vupen.com/english/advisories/2009/3316 vdb-entryx_refsource_VUPENPermissions Required
- https://access.redhat.com/security/cve/CVE-2008-1887 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=443810 Issue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/41944 vdb-entryx_refsource_XFThird Party AdvisoryVDB Entry
- https://nvd.nist.gov/vuln/detail/CVE-2008-1887
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10407 vdb-entrysignaturex_refsource_OVALThird Party Advisory
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8624 vdb-entrysignaturex_refsource_OVALThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2008-1887
Change history (0)
No recorded changes yet.