CVE-2008-1887
Python 2.5.2 and earlier allows context-dependent attackers to execute arbitrary code via...
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.
Exploit likelihood
What each source reports
NVD Score used
9.3
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.
- Record
CVE-2008-1887- CVSS 2.0
- 9.3 High
AV:N/AC:M/Au:N/C:C/I:C/A:C - Weakness
- CWE-120
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2008-1887- Updated
- 2026-11-02
EUVDEUVD-2008-1887 No score
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.
- Record
EUVD-2008-1887- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-g8m8-g2vw-f7jw No score
Python 2.5.2 and earlier allows context-dependent attackers to execute arbitrary code via...
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.
- Record
GHSA-g8m8-g2vw-f7jw- Weakness
- CWE-119, CWE-120
- Updated
- 2026-11-02
OSVAZL-109563 No score
CVE-2008-1887 affecting package python-py 1.11.0-1
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.
- Record
AZL-109563- Updated
- 2026-11-02
OSVPSF-2008-3 No score
Multiple integer overflows (Apple)
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.
- Record
PSF-2008-3- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
python-pyAzure Linux:3 |
through 1.11.0-1 | None known |
python2.4Debian:4.0 |
before 2.4.4-3+etch1, plus listed versions 2.4.4-3 |
2.4.4-3+etch1 |
python2.5Debian:4.0 |
before 2.5-5+etch1, plus listed versions 2.5-5 |
2.5-5+etch1 |
pythonRed Hat:enterprise_linux:5::client_workstation |
before 0:2.4.3-24.el5_3.6 | 0:2.4.3-24.el5_3.6 |
python-debuginfoRed Hat:enterprise_linux:5::client_workstation |
before 0:2.4.3-24.el5_3.6 | 0:2.4.3-24.el5_3.6 |
python-develRed Hat:enterprise_linux:5::client_workstation |
before 0:2.4.3-24.el5_3.6 | 0:2.4.3-24.el5_3.6 |
pythonRed Hat:enterprise_linux:5::client |
before 0:2.4.3-24.el5_3.6 | 0:2.4.3-24.el5_3.6 |
python-debuginfoRed Hat:enterprise_linux:5::client |
before 0:2.4.3-24.el5_3.6 | 0:2.4.3-24.el5_3.6 |
python-toolsRed Hat:enterprise_linux:5::client |
before 0:2.4.3-24.el5_3.6 | 0:2.4.3-24.el5_3.6 |
tkinterRed Hat:enterprise_linux:5::client |
before 0:2.4.3-24.el5_3.6 | 0:2.4.3-24.el5_3.6 |
Show 49 moreShow less
| Package | Affected | Fixed |
|---|---|---|
pythonRed Hat:enterprise_linux:5::server |
before 0:2.4.3-24.el5_3.6 | 0:2.4.3-24.el5_3.6 |
python-debuginfoRed Hat:enterprise_linux:5::server |
before 0:2.4.3-24.el5_3.6 | 0:2.4.3-24.el5_3.6 |
python-develRed Hat:enterprise_linux:5::server |
before 0:2.4.3-24.el5_3.6 | 0:2.4.3-24.el5_3.6 |
python-toolsRed Hat:enterprise_linux:5::server |
before 0:2.4.3-24.el5_3.6 | 0:2.4.3-24.el5_3.6 |
tkinterRed Hat:enterprise_linux:5::server |
before 0:2.4.3-24.el5_3.6 | 0:2.4.3-24.el5_3.6 |
pythonRed Hat:enterprise_linux:4::as |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-debuginfoRed Hat:enterprise_linux:4::as |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-develRed Hat:enterprise_linux:4::as |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-docsRed Hat:enterprise_linux:4::as |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-toolsRed Hat:enterprise_linux:4::as |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
tkinterRed Hat:enterprise_linux:4::as |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
pythonRed Hat:enterprise_linux:4::desktop |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-debuginfoRed Hat:enterprise_linux:4::desktop |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-develRed Hat:enterprise_linux:4::desktop |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-docsRed Hat:enterprise_linux:4::desktop |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-toolsRed Hat:enterprise_linux:4::desktop |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
tkinterRed Hat:enterprise_linux:4::desktop |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
pythonRed Hat:enterprise_linux:4::es |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-debuginfoRed Hat:enterprise_linux:4::es |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-develRed Hat:enterprise_linux:4::es |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-docsRed Hat:enterprise_linux:4::es |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-toolsRed Hat:enterprise_linux:4::es |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
tkinterRed Hat:enterprise_linux:4::es |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
pythonRed Hat:enterprise_linux:4::ws |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-debuginfoRed Hat:enterprise_linux:4::ws |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-develRed Hat:enterprise_linux:4::ws |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-docsRed Hat:enterprise_linux:4::ws |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
python-toolsRed Hat:enterprise_linux:4::ws |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
tkinterRed Hat:enterprise_linux:4::ws |
before 0:2.3.4-14.7.el4_8.2 | 0:2.3.4-14.7.el4_8.2 |
pythonRed Hat:enterprise_linux:3::as |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
python-debuginfoRed Hat:enterprise_linux:3::as |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
python-develRed Hat:enterprise_linux:3::as |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
python-toolsRed Hat:enterprise_linux:3::as |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
tkinterRed Hat:enterprise_linux:3::as |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
pythonRed Hat:enterprise_linux:3::desktop |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
python-debuginfoRed Hat:enterprise_linux:3::desktop |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
python-develRed Hat:enterprise_linux:3::desktop |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
python-toolsRed Hat:enterprise_linux:3::desktop |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
tkinterRed Hat:enterprise_linux:3::desktop |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
pythonRed Hat:enterprise_linux:3::es |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
python-debuginfoRed Hat:enterprise_linux:3::es |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
python-develRed Hat:enterprise_linux:3::es |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
python-toolsRed Hat:enterprise_linux:3::es |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
tkinterRed Hat:enterprise_linux:3::es |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
pythonRed Hat:enterprise_linux:3::ws |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
python-debuginfoRed Hat:enterprise_linux:3::ws |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
python-develRed Hat:enterprise_linux:3::ws |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
python-toolsRed Hat:enterprise_linux:3::ws |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
tkinterRed Hat:enterprise_linux:3::ws |
before 0:2.2.3-6.11 | 0:2.2.3-6.11 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2008-1887 is a high vulnerability (CVSS 9.3) in Python, published April 18, 2008. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 6.29%, the 93rd percentile. Fixed in python2.4 2.4.4-3+etch1.
References
lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html
bugs.python.org/issue2587
security.gentoo.org/glsa/glsa-200807-01.xml
secunia.com/advisories/30872
securityfocus.com/archive/1/506056/100/0/threaded
secunia.com/advisories/33937
Show 73 moreShow less
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8624
secunia.com/advisories/37471
exchange.xforce.ibmcloud.com/vulnerabilities/41944
secunia.com/advisories/31687
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10407
securityfocus.com/archive/1/490776
debian.org/security/2008/dsa-1551
vmware.com/security/advisories/VMSA-2009-0016.html
support.apple.com/kb/HT3438
lists.apple.com/archives/security-announce/2009/Feb/msg00000.html
wiki.rpath.com/wiki/Advisories:rPSA-2009-0122
securityfocus.com/bid/28749
ubuntu.com/usn/usn-632-1
securityfocus.com/archive/1/507985/100/0/threaded
secunia.com/advisories/31518
secunia.com/advisories/31365
secunia.com/advisories/31255
novell.com/support/search.do?cmd=displayKC&docType=kc&externalId=InfoDocument-patchbuilder-readme5032900
debian.org/security/2008/dsa-1620
vupen.com/english/advisories/2009/3316
secunia.com/advisories/29889
nvd.nist.gov/vuln/detail/CVE-2008-1887
github.com/advisories/GHSA-g8m8-g2vw-f7jw
access.redhat.com/errata/RHSA-2009:1176
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=235093
bugzilla.redhat.com/show_bug.cgi?id=295971
bugzilla.redhat.com/show_bug.cgi?id=442005
bugzilla.redhat.com/show_bug.cgi?id=443810
bugzilla.redhat.com/show_bug.cgi?id=454990
bugzilla.redhat.com/show_bug.cgi?id=455008
bugzilla.redhat.com/show_bug.cgi?id=455013
bugzilla.redhat.com/show_bug.cgi?id=455018
bugzilla.redhat.com/show_bug.cgi?id=469656
bugzilla.redhat.com/show_bug.cgi?id=470915
security.access.redhat.com/data/csaf/v2/advisories/2009/rhsa-2009_1176.json
access.redhat.com/security/cve/CVE-2007-2052
cve.org/CVERecord?id=CVE-2007-2052
nvd.nist.gov/vuln/detail/CVE-2007-2052
access.redhat.com/security/cve/CVE-2007-4965
cve.org/CVERecord?id=CVE-2007-4965
nvd.nist.gov/vuln/detail/CVE-2007-4965
access.redhat.com/security/cve/CVE-2008-1721
cve.org/CVERecord?id=CVE-2008-1721
nvd.nist.gov/vuln/detail/CVE-2008-1721
access.redhat.com/security/cve/CVE-2008-1887
cve.org/CVERecord?id=CVE-2008-1887
access.redhat.com/security/cve/CVE-2008-2315
cve.org/CVERecord?id=CVE-2008-2315
nvd.nist.gov/vuln/detail/CVE-2008-2315
access.redhat.com/security/cve/CVE-2008-3142
cve.org/CVERecord?id=CVE-2008-3142
nvd.nist.gov/vuln/detail/CVE-2008-3142
access.redhat.com/security/cve/CVE-2008-3143
cve.org/CVERecord?id=CVE-2008-3143
nvd.nist.gov/vuln/detail/CVE-2008-3143
access.redhat.com/security/cve/CVE-2008-3144
cve.org/CVERecord?id=CVE-2008-3144
nvd.nist.gov/vuln/detail/CVE-2008-3144
access.redhat.com/security/cve/CVE-2008-4864
cve.org/CVERecord?id=CVE-2008-4864
nvd.nist.gov/vuln/detail/CVE-2008-4864
access.redhat.com/security/cve/CVE-2008-5031
cve.org/CVERecord?id=CVE-2008-5031
nvd.nist.gov/vuln/detail/CVE-2008-5031
access.redhat.com/errata/RHSA-2009:1177
bugzilla.redhat.com/show_bug.cgi?id=441306
security.access.redhat.com/data/csaf/v2/advisories/2009/rhsa-2009_1177.json
access.redhat.com/security/cve/CVE-2008-1679
cve.org/CVERecord?id=CVE-2008-1679
nvd.nist.gov/vuln/detail/CVE-2008-1679
access.redhat.com/errata/RHSA-2009:1178
security.access.redhat.com/data/csaf/v2/advisories/2009/rhsa-2009_1178.json