Read the docs
TI-2021-12376 Aliases CVE-2021-32708GHSA-9f46-5r25-5wfm

Time-of-check Time-of-use (TOCTOU) Race Condition in league/flysystem

Priority MEDIUM 48CWE-367Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

Flysystem 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.

Why it matters now

EPSS 0.03486 89th percentileScored 2026-11-07
Fix Fixed flysystem (thephpleague): 1.1.4, 2.1.1league/flysystem (Packagist): 1.1.4, 2.1.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
thephpleagueflysystembefore 1.1.4; 2.0.0 to before 2.1.11.1.4, 2.1.1Patch availableCNA
—league/flysystem (Packagist)before 1.1.41.1.4Patch availableGHSA-9f46-5r25-5wfm
—league/flysystem (Packagist)2.0.0 to before 2.1.12.1.1Patch availableGHSA-9f46-5r25-5wfm
  • flysystem Vendorthephpleague Affected before 1.1.4; 2.0.0 to before 2.1.1 Fixed in 1.1.4, 2.1.1 Patch available CNA
  • league/flysystem (Packagist) Vendor— Affected before 1.1.4 Fixed in 1.1.4 Patch available GHSA-9f46-5r25-5wfm
  • league/flysystem (Packagist) Vendor— Affected 2.0.0 to before 2.1.1 Fixed in 2.1.1 Patch available GHSA-9f46-5r25-5wfm

CPE configurations NVD · 3

CPEVersionsRoleVendor
cpe:2.3:a:thephpleague:flysystem:*:*:*:*:*:*:*:*1.0.0 to before 1.1.4; 2.0.0 to before 2.1.1Vulnerablethephpleague
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*33VulnerableFedoraproject
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*34VulnerableFedoraproject
  • cpe:2.3:a:thephpleague:flysystem:*:*:*:*:*:*:*:* Versions 1.0.0 to before 1.1.4; 2.0.0 to before 2.1.1 Vulnerable ·thephpleague
  • cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* Versions 33 Vulnerable ·Fedoraproject
  • cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject

Remediation

  • Fix · CNA flysystem (thephpleague) Fixed in 1.1.4, 2.1.1
  • Fix · GHSA-9f46-5r25-5wfm league/flysystem (Packagist) Fixed in 1.1.4 Advisory →
  • Fix · GHSA-9f46-5r25-5wfm league/flysystem (Packagist) Fixed in 2.1.1 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-32708
  2. 2026-10-03 Alias added: GHSA-9f46-5r25-5wfm

References

Sources