Back to CVE catalog
CVE-2008-1887

Python 2.5.2 and earlier allows arbitrary code execution via negative size value

Multiple products

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityMedium
ConfidentialityComplete
IntegrityComplete
AvailabilityComplete

CVSS summary v2.0

9.3High
Published:
Updated:
EPSS:
6.292%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:pythonpythonAffected versions:
≤ 2.5.2
Vendor:Canonicalubuntu linuxAffected versions:
6.06Show full version range for ubuntu linux
7.047.108.04
Vendor:Debiandebian linuxAffected versions:
4.0
Vendor:oraclelinuxpython
Environments (1)
  • cpe:/o:oracle:linux:5
Affected versions:
< 0:2.4.3-24.el5_3.6
Vendor:oraclelinuxpython-devel
Environments (1)
  • cpe:/o:oracle:linux:5
Affected versions:
< 0:2.4.3-24.el5_3.6
Vendor:oraclelinuxpython-tools
Environments (1)
  • cpe:/o:oracle:linux:5
Affected versions:
< 0:2.4.3-24.el5_3.6
Vendor:oraclelinuxtkinter
Environments (1)
  • cpe:/o:oracle:linux:5
Affected versions:
< 0:2.4.3-24.el5_3.6
Vendor:redhatpython
Environments (1)
  • cpe:/o:redhat:enterprise_linux:5
Affected versions:
< 0:2.4.3-24.el5_3.6
Vendor:redhatpython-devel
Environments (1)
  • cpe:/o:redhat:enterprise_linux:5
Affected versions:
< 0:2.4.3-24.el5_3.6
Vendor:redhatpython-tools
Environments (1)
  • cpe:/o:redhat:enterprise_linux:5
Affected versions:
< 0:2.4.3-24.el5_3.6

1–10 of 11 · Page 1 of 2

CVSS scores and metrics3
[email protected] · NVD (Primary)Primary9.3 / 10HighCVSS 2.0Details
Attack complexity
Medium
Confidentiality
Complete
Integrity
Complete
Availability
Complete
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:M/Au:N/C:C/I:C/A:C
oraclelinux · Wazuh CTI (adp)9.3 / 10HighCVSS 2.0Details
Attack complexity
Medium
Confidentiality
Complete
Integrity
Complete
Availability
Complete
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:M/Au:N/C:C/I:C/A:C
nvd · Wazuh CTI (cna)9.3 / 10HighCVSS 2.0Details
Attack complexity
Medium
Confidentiality
Complete
Integrity
Complete
Availability
Complete
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:M/Au:N/C:C/I:C/A:C

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories38

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences