Path traversal in PHP



Published: 2016-05-22 | Updated: 2018-11-28
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2014-9767
CWE-ID CWE-22
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
PHP
Universal components / Libraries / Scripting languages

Vendor PHP Group

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Path traversal

EUVDB-ID: #VU16139

Risk: Low

CVSSv3.1: 3.2 [CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2014-9767

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences in ZipArchive::extractTo function in ext/zip/php_zip.c and in and ext/zip/ext_zip.cpp in HHVM. A remote attacker can pass a specially crafted zip archive to the affected application and create arbitrary empty directories on the system.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

PHP: 5.4.0 - 5.6.12

External links

http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00052.html
http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00056.html
http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00057.html
http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00058.html
http://php.net/ChangeLog-5.php
http://www.openwall.com/lists/oss-security/2016/03/16/20
http://www.securityfocus.com/bid/76652
http://www.securitytracker.com/id/1035311
http://www.ubuntu.com/usn/USN-2952-1
http://www.ubuntu.com/usn/USN-2952-2
http://bugs.php.net/bug.php?id=67996
http://bugs.php.net/bug.php?id=70350
http://github.com/facebook/hhvm/commit/65c95a01541dd2fbc9c978ac53bed235b5376686


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###