Every CVE Search/ Get API key

CVE-2008-1887

Python 2.5.2 and earlier allows context-dependent attackers to execute arbitrary code via...

9.3 HighFix available

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

6.29%Up 3.5 points since Feb 4, 2022
90%50%10%1%

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 HighAV: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

Affected packages
PackageAffectedFixed
python-py
Azure Linux:3
through 1.11.0-1 None known
python2.4
Debian:4.0
before 2.4.4-3+etch1, plus listed versions
2.4.4-3
2.4.4-3+etch1
python2.5
Debian:4.0
before 2.5-5+etch1, plus listed versions
2.5-5
2.5-5+etch1
python
Red Hat:enterprise_linux:5::client_workstation
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python-debuginfo
Red Hat:enterprise_linux:5::client_workstation
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python-devel
Red Hat:enterprise_linux:5::client_workstation
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python
Red Hat:enterprise_linux:5::client
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python-debuginfo
Red Hat:enterprise_linux:5::client
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python-tools
Red Hat:enterprise_linux:5::client
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
tkinter
Red 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
Affected packages
PackageAffectedFixed
python
Red Hat:enterprise_linux:5::server
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python-debuginfo
Red Hat:enterprise_linux:5::server
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python-devel
Red Hat:enterprise_linux:5::server
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python-tools
Red Hat:enterprise_linux:5::server
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
tkinter
Red Hat:enterprise_linux:5::server
before 0:2.4.3-24.el5_3.6
0:2.4.3-24.el5_3.6
python
Red 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-debuginfo
Red 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-devel
Red 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-docs
Red 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-tools
Red Hat:enterprise_linux:4::as
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
tkinter
Red 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
Red 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-debuginfo
Red 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-devel
Red 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-docs
Red 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-tools
Red Hat:enterprise_linux:4::desktop
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
tkinter
Red 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
Red 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-debuginfo
Red 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-devel
Red 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-docs
Red 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-tools
Red Hat:enterprise_linux:4::es
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
tkinter
Red 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
Red 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-debuginfo
Red 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-devel
Red 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-docs
Red 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-tools
Red Hat:enterprise_linux:4::ws
before 0:2.3.4-14.7.el4_8.2
0:2.3.4-14.7.el4_8.2
tkinter
Red 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
Red Hat:enterprise_linux:3::as
before 0:2.2.3-6.11
0:2.2.3-6.11
python-debuginfo
Red Hat:enterprise_linux:3::as
before 0:2.2.3-6.11
0:2.2.3-6.11
python-devel
Red Hat:enterprise_linux:3::as
before 0:2.2.3-6.11
0:2.2.3-6.11
python-tools
Red Hat:enterprise_linux:3::as
before 0:2.2.3-6.11
0:2.2.3-6.11
tkinter
Red Hat:enterprise_linux:3::as
before 0:2.2.3-6.11
0:2.2.3-6.11
python
Red Hat:enterprise_linux:3::desktop
before 0:2.2.3-6.11
0:2.2.3-6.11
python-debuginfo
Red Hat:enterprise_linux:3::desktop
before 0:2.2.3-6.11
0:2.2.3-6.11
python-devel
Red Hat:enterprise_linux:3::desktop
before 0:2.2.3-6.11
0:2.2.3-6.11
python-tools
Red Hat:enterprise_linux:3::desktop
before 0:2.2.3-6.11
0:2.2.3-6.11
tkinter
Red Hat:enterprise_linux:3::desktop
before 0:2.2.3-6.11
0:2.2.3-6.11
python
Red Hat:enterprise_linux:3::es
before 0:2.2.3-6.11
0:2.2.3-6.11
python-debuginfo
Red Hat:enterprise_linux:3::es
before 0:2.2.3-6.11
0:2.2.3-6.11
python-devel
Red Hat:enterprise_linux:3::es
before 0:2.2.3-6.11
0:2.2.3-6.11
python-tools
Red Hat:enterprise_linux:3::es
before 0:2.2.3-6.11
0:2.2.3-6.11
tkinter
Red Hat:enterprise_linux:3::es
before 0:2.2.3-6.11
0:2.2.3-6.11
python
Red Hat:enterprise_linux:3::ws
before 0:2.2.3-6.11
0:2.2.3-6.11
python-debuginfo
Red Hat:enterprise_linux:3::ws
before 0:2.2.3-6.11
0:2.2.3-6.11
python-devel
Red Hat:enterprise_linux:3::ws
before 0:2.2.3-6.11
0:2.2.3-6.11
python-tools
Red Hat:enterprise_linux:3::ws
before 0:2.2.3-6.11
0:2.2.3-6.11
tkinter
Red Hat:enterprise_linux:3::ws
before 0:2.2.3-6.11
0:2.2.3-6.11

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 73 moreShow less
MoveEnter Open