Python 2.5.2 and earlier allows context-dependent attackers to execute arbitrary code via…
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:*:*:*:*:*:*:*:* | up to 2.5.2 | Vulnerable | python-pillow |
| cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:*:*:*:* | 6.06 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:* | 7.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:* | 7.10 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:8.04:*:*:*:-:*:*:* | 8.04 | Vulnerable | Canonical |
| cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:* | 4.0 | Vulnerable | Debian |
- 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 Moderatepython 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 Moderatepython 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 Moderatepython 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 →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Desktop version 3 | Fixed | RHSA-2009:1178 |
| Red Hat Enterprise Linux (v. 5 server) | Fixed | RHSA-2009:1176 |
| Red Hat Enterprise Linux AS version 3 | Fixed | RHSA-2009:1178 |
| Red Hat Enterprise Linux AS version 4 | Fixed | 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 4 | Fixed | RHSA-2009:1177 |
| Red Hat Enterprise Linux ES version 3 | Fixed | RHSA-2009:1178 |
| Red Hat Enterprise Linux ES version 4 | Fixed | RHSA-2009:1177 |
| Red Hat Enterprise Linux WS version 3 | Fixed | RHSA-2009:1178 |
| Red Hat Enterprise Linux WS version 4 | Fixed | RHSA-2009:1177 |
Timeline
- 2026-10-02 Threatist record created from CVE-2008-1887
- 2026-10-03 Alias added: GHSA-g8m8-g2vw-f7jw
References
Exploit 1
Advisory 9
- SUSE-SR:2008:017
- GLSA-200807-01
- oval:org.mitre.oval:def:8624
- oval:org.mitre.oval:def:10407
- http://www.vmware.com/security/advisories/VMSA-2009-0016.html
- http://support.apple.com/kb/HT3438
- APPLE-SA-2009-02-12
- USN-632-1
- http://www.novell.com/support/search.do?cmd=displayKC&docType=kc&externalId=InfoDocument-patchbuilder-readme5032900
Sources
- CVE-2008-1887 · CVE Program
- CVE-2008-1887 · NVD
- FIRST EPSS
- GHSA-g8m8-g2vw-f7jw · GitHub Advisory Database · CC BY 4.0
- CVE-2008-1887 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences