cve.bz

CVE-2008-1887 Classic Buffer Overflow

no score yetExploit referenceEPSS 6.3%Fix available

No CVSS score yet. EPSS 6.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.
EPSS
6.3% (unchanged from 6.3% a week ago; 6.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2008-1887 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2008-1887?via=ask-ai-copy and https://cve.bz/cve/CVE-2008-1887?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2008-1887 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pythonthrough 2.5.2
canonical:ubuntu_linux6.06
canonical:ubuntu_linux7.04
canonical:ubuntu_linux7.10
canonical:ubuntu_linux8.04
debian:debian_linux4.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian4.0python2.42.4.4-3+etch1DSA-1551-1
Debian4.0python2.52.5-5+etch1DSA-1620-1
Red Hatenterprise_linux:3::as, enterprise_linux:3::desktop, enterprise_linux:3::es and 1 morepython, tkinter, python-devel and 2 more0:2.2.3-6.11RHSA-2009:1178
Red Hatenterprise_linux:4::as, enterprise_linux:4::desktop, enterprise_linux:4::es and 1 morepython, tkinter, python-docs and 3 more0:2.3.4-14.7.el4_8.2RHSA-2009:1177
Red Hatenterprise_linux:5::clientpython, tkinter, python-tools and 1 more0:2.4.3-24.el5_3.6RHSA-2009:1176
Red Hatenterprise_linux:5::client_workstationpython, python-devel, python-debuginfo0:2.4.3-24.el5_3.6RHSA-2009:1176
Red Hatenterprise_linux:5::serverpython, tkinter, python-devel and 2 more0:2.4.3-24.el5_3.6RHSA-2009:1176
Azure Linux3python-pyno fix listedAZL-109563

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 3python-0:2.2.3-6.11Fixed 2009-07-27RHSA-2009:1178
Red Hat Enterprise Linux 4python-0:2.3.4-14.7.el4_8.2Fixed 2009-07-27RHSA-2009:1177
Red Hat Enterprise Linux 5python-0:2.4.3-24.el5_3.6Fixed 2009-07-27RHSA-2009:1176

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2008-1887.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON