Read the docs
TI-2008-01812 Aliases CVE-2008-1887GHSA-g8m8-g2vw-f7jw

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

Priority MEDIUM 49CWE-120Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
— Not recorded in CVSS 2.0
Attack complexity
Medium
Impact type
Code execution
Confidentiality · integrity · availability
Complete · Complete · Complete
Fix status
Fixed

Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-120 and the CVSS impact.

Summary

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.

Why it matters now

EPSS 0.06292 93rd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed Red Hat: 3 advisories

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
  • — Vendor— Affected all versions Fixed in — No fix listed CNA

CPE configurations NVD · 6

CPEVersionsRoleVendor
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*up to 2.5.2Vulnerablepython-pillow
cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:*:*:*:*6.06VulnerableCanonical
cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:*7.04VulnerableCanonical
cpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:*7.10VulnerableCanonical
cpe:2.3:o:canonical:ubuntu_linux:8.04:*:*:*:-:*:*:*8.04VulnerableCanonical
cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:*4.0VulnerableDebian
  • cpe:2.3:a:python:python:*:*:*:*:*:*:*:* Versions up to 2.5.2 Vulnerable ·python-pillow
  • cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:*:*:*:* Versions 6.06 Vulnerable ·Canonical
  • cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:* Versions 7.04 Vulnerable ·Canonical
  • cpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:* Versions 7.10 Vulnerable ·Canonical
  • cpe:2.3:o:canonical:ubuntu_linux:8.04:*:*:*:-:*:*:* Versions 8.04 Vulnerable ·Canonical
  • cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:* Versions 4.0 Vulnerable ·Debian

Remediation

Red Hat 3 advisories

  • RHSA-2009:1177 Released 2009-07-27 · Red Hat rating Moderate
    python security update
    • Red Hat Enterprise Linux AS version 4 python-2.3.4-14.7.el4_8.2, python-2.3.4-14.7.el4_8.2.i386, python-2.3.4-14.7.el4_8.2.ia64 +17
    • Red Hat Enterprise Linux Desktop version 4 python-2.3.4-14.7.el4_8.2, python-2.3.4-14.7.el4_8.2.i386, python-devel-2.3.4-14.7.el4_8.2 +7
    • Red Hat Enterprise Linux ES version 4 python-2.3.4-14.7.el4_8.2, python-2.3.4-14.7.el4_8.2.i386, python-2.3.4-14.7.el4_8.2.ia64 +12
    • Red Hat Enterprise Linux WS version 4 python-2.3.4-14.7.el4_8.2, python-2.3.4-14.7.el4_8.2.i386, python-2.3.4-14.7.el4_8.2.ia64 +12
  • RHSA-2009:1178 Released 2009-07-27 · Red Hat rating Moderate
    python security update
    • Red Hat Desktop version 3 python-2.2.3-6.11, python-2.2.3-6.11.i386, python-devel-2.2.3-6.11 +5
    • Red Hat Enterprise Linux AS version 3 python-2.2.3-6.11, python-2.2.3-6.11.i386, python-2.2.3-6.11.ia64 +13
    • Red Hat Enterprise Linux ES version 3 python-2.2.3-6.11, python-2.2.3-6.11.i386, python-2.2.3-6.11.ia64 +9
    • Red Hat Enterprise Linux WS version 3 python-2.2.3-6.11, python-2.2.3-6.11.i386, python-2.2.3-6.11.ia64 +9
  • RHSA-2009:1176 Released 2009-07-27 · Red Hat rating Moderate
    python security update
    • Red Hat Enterprise Linux (v. 5 server) python-2.4.3-24.el5_3.6, python-2.4.3-24.el5_3.6.i386, python-2.4.3-24.el5_3.6.ia64 +13
    • Red Hat Enterprise Linux Desktop (v. 5 client) python-2.4.3-24.el5_3.6, python-2.4.3-24.el5_3.6.i386, python-tools-2.4.3-24.el5_3.6 +3
    • Red Hat Enterprise Linux Desktop Workstation (v. 5 client) python-2.4.3-24.el5_3.6, python-devel-2.4.3-24.el5_3.6, python-devel-2.4.3-24.el5_3.6.i386

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Desktop version 3Fixed RHSA-2009:1178
Red Hat Enterprise Linux (v. 5 server)Fixed RHSA-2009:1176
Red Hat Enterprise Linux AS version 3Fixed RHSA-2009:1178
Red Hat Enterprise Linux AS version 4Fixed RHSA-2009:1177
Red Hat Enterprise Linux Desktop (v. 5 client)Fixed RHSA-2009:1176
Red Hat Enterprise Linux Desktop Workstation (v. 5 client)Fixed RHSA-2009:1176
Red Hat Enterprise Linux Desktop version 4Fixed RHSA-2009:1177
Red Hat Enterprise Linux ES version 3Fixed RHSA-2009:1178
Red Hat Enterprise Linux ES version 4Fixed RHSA-2009:1177
Red Hat Enterprise Linux WS version 3Fixed RHSA-2009:1178
Red Hat Enterprise Linux WS version 4Fixed RHSA-2009:1177

Timeline

  1. 2026-10-02 Threatist record created from CVE-2008-1887
  2. 2026-10-03 Alias added: GHSA-g8m8-g2vw-f7jw

References

Sources