CVE-2021-32708

Summary

CVECVE-2021-32708
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-06-24 17:15:00 UTC
Updated2023-11-07 03:35:00 UTC
DescriptionFlysystem is an open source file storage library for PHP. The whitespace normalisation using in 1.x and 2.x removes any unicode whitespace. Under certain specific conditions this could potentially allow a malicious user to execute code remotely. The conditions are: 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 checked against an extension deny-list, not an allow-list, the supplied path or filename contains a unicode whitespace char in the extension, 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. The unicode whitespace removal has been replaced with a rejection (exception). For 1.x users, upgrade to 1.1.4. For 2.x users, upgrade to 2.1.1.

Risk And Classification

Problem Types: CWE-367

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 33 All All All
Operating System Fedoraproject Fedora 34 All All All
Application Thephpleague Flysystem All All All All

References

ReferenceSourceLinkTags
Reject paths with funky whitespace. · thephpleague/flysystem@f3ad691 · GitHub MISC github.com
[SECURITY] Fedora 34 Update: php-league-flysystem-1.1.4-1.fc34 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
league/flysystem - Packagist MISC packagist.org
[SECURITY] Fedora 33 Update: php-league-flysystem-1.1.4-1.fc33 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
Time-of-check Time-of-use (TOCTOU) Race Condition in league/flysystem · Advisory · thephpleague/flysystem · GitHub CONFIRM github.com
[SECURITY] Fedora 34 Update: php-league-flysystem-1.1.4-1.fc34 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
Reject funky whitspace paths. · thephpleague/flysystem@a3c694d · GitHub MISC github.com
[SECURITY] Fedora 33 Update: php-league-flysystem-1.1.4-1.fc33 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 180011 Debian Security Update for php-league-flysystem (CVE-2021-32708)
  • 281680 Fedora Security Update for php (FEDORA-2021-717516a2e9)
  • 281681 Fedora Security Update for php (FEDORA-2021-b9187c535c)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report