PT-2019-5066 · Php · Pharstreamwrapper

Daniel Le Gall

·

Published

2019-05-08

·

Updated

2021-10-01

·

CVE-2019-11831

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions PharStreamWrapper package versions 2.x before 2.1.1 PharStreamWrapper package versions 3.x before 3.1.1
Description The issue is related to the PharStreamWrapper package, which does not prevent directory traversal. This allows attackers to bypass a deserialization protection mechanism. The vulnerability can be exploited by using a URL such as "phar:///path/bad.phar/../good.phar" to bypass protection. The vulnerability is associated with incorrect limitation of the path name to a directory with limited access, which can allow an attacker to disclose protected information.
Recommendations For PharStreamWrapper package versions 2.x before 2.1.1, update to version 2.1.1 or later. For PharStreamWrapper package versions 3.x before 3.1.1, update to version 3.1.1 or later. As a temporary workaround, consider restricting access to the phar:/// protocol handler until a patch is available. Avoid using URLs that contain the ../ sequence in the path, as they can be used to exploit the vulnerability.

Exploit

Fix

Deserialization of Untrusted Data

Path traversal

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2020-01708
CVE-2019-11831
DLA-1797-1
DRUPAL-CORE-2019-007
DSA-4445-1
GHSA-XV7V-RF6G-XWRC

Affected Products

Pharstreamwrapper