Heap-based buffer overflow in Debian products - CVE-2015-2331

 

Heap-based buffer overflow in Debian products - CVE-2015-2331

Published: March 30, 2015 / Updated: August 9, 2020


Vulnerability identifier: #VU40861
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2015-2331
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in Integer overflow in the _zip_cdir_new function in zip_dirent.c in libzip 0.11.2 and earlier, as used in the ZIP extension in PHP before 5.4.39, 5.5.x before 5.5.23, and 5.6.x before 5.6.7 and other products,. A remote attacker can use a ZIP archive that contains many entries to trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Opensuse
Fedora
Debian Linux
Amazon Linux AMI
Slackware Linux
PHP
mingw-libzip
libzip
php

How to mitigate CVE-2015-2331

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

mingw-libzip - addressed in versions 0.11.2-3.fc21, 0.11.2-3.fc22
libzip - addressed in versions 0.11.2-5.fc21, 0.11.2-5.fc22
php - addressed in versions 5.6.7-1.fc21, 5.6.7-2.fc22

External References

Related Security Bulletins