Skip to content
OpenAdvisories
Unscored CVE-2008-1887 EUVD-2008-1887GHSA-g8m8-g2vw-f7jw

Python 2.5.2 and earlier allows context-dependent attackers to execute arbitrary code via multiple vectors that cause a negative size value…

Published Apr 18, 2008 · Updated Aug 7, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 4.0 python2.4 2.4.4-3+etch1 DSA-1551-1
Debian 4.0 python2.5 2.5-5+etch1 DSA-1620-1
ReleasePackageFixed inAdvisory
RHEL 5 python +3 2.4.3-24.el5_3.6 RHSA-2009:1176
RHEL 4 python +4 2.3.4-14.7.el4_8.2 RHSA-2009:1177
RHEL 3 python +3 2.2.3-6.11 RHSA-2009:1178

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-py No fix yet —

Advisories 5

References