PT-2021-3462 · Flysystem · Flysystem

Published

2021-06-24

·

Updated

2021-09-20

·

CVE-2021-32708

CVSS v3.1

10

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 Flysystem versions 1.x through 1.1.3 Flysystem versions 2.x through 2.1.0
Description The issue arises from the whitespace normalisation in Flysystem, which removes any unicode whitespace. This could potentially allow a malicious user to execute code remotely under certain conditions. These conditions include: a user is allowed to supply the path or filename of an uploaded file, the supplied path or filename is not checked against unicode chars, the supplied pathname is checked against an extension deny-list (not an allow-list), the supplied path or filename contains a unicode whitespace char in the extension, and the uploaded file is stored in a directory that allows PHP code to be executed. Given these conditions are met, a user can upload and execute arbitrary code on the system under attack.
Recommendations For 1.x users, upgrade to 1.1.4. For 2.x users, upgrade to 2.1.1.

Exploit

Fix

Time Of Check To Time Of Use

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

Weakness Enumeration

Related Identifiers

BDU:2021-03326
CVE-2021-32708
GHSA-9F46-5R25-5WFM

Affected Products

Flysystem