Home / thephpleague / flysystem / CVE-2021-32708
CVE-2021-32708: is it exploited, and which versions of thephpleague flysystem are affected and fixed?
CVE-2021-32708 is a time-of-check time-of-use race condition vulnerability in thephpleague flysystem. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: league/flysystem before 1.1.4 and league/flysystem from 2.0.0 before 2.1.1 (GitHub advisory GHSA-9f46-5r25-5wfm). Fixed in 1.1.4 and 2.1.1 (GitHub advisory GHSA-9f46-5r25-5wfm). Severity: Critical (9.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:57 UTC.
What is CVE-2021-32708?
Time-of-check Time-of-use (TOCTOU) Race Condition in league/flysystem
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.
From the CVE record by GitHub_M, last updated August 3, 2024, 23:25 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| thephpleague | flysystem | < 1.1.4 >= 2.0.0, < 2.1.1 |
As the CVE record by GitHub_M states it, last updated August 3, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | league/flysystem | < 1.1.4 | 1.1.4 | GHSA-9f46-5r25-5wfm |
| Packagist | league/flysystem | >= 2.0.0, < 2.1.1 | 2.1.1 | GHSA-9f46-5r25-5wfm |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 21, 2021. Summary: Time-of-check Time-of-use (TOCTOU) Race Condition in league/flysystem.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| thephpleague | flysystem | from 1.0.0 before 1.1.4 | application |
| thephpleague | flysystem | from 2.0.0 before 2.1.1 | application |
| fedoraproject | fedora | 33 | operating system |
| fedoraproject | fedora | 34 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 03:53 UTC.
How severe is CVE-2021-32708?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | GitHub_M |
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 9.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-32708 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 3.49% probability of exploitation activity in the next 30 days, percentile 89.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Where are the vendor advisories and references?
- https://github.com/thephpleague/flysystem/security/advisories/GHSA-9f46-5r25-5wfm x_refsource_CONFIRM
- https://github.com/thephpleague/flysystem/commit/a3c694de9f7e844b76f9d1b61296ebf6e8d89d74 x_refsource_MISC
- https://github.com/thephpleague/flysystem/commit/f3ad69181b8afed2c9edf7be5a2918144ff4ea32 x_refsource_MISC
- https://packagist.org/packages/league/flysystem x_refsource_MISC
- FEDORA-2021-717516a2e9 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-b9187c535c vendor-advisory, x_refsource_FEDORA
When was it published, and where is the official record?
- Reserved
- May 12, 2021
- Published
- June 24, 2021, 16:30 UTC
- CVE record updated
- August 3, 2024, 23:25 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 03:53 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:57 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect flysystem?
- Sep 29, 2026CVE-2026-102601 thephpleague flysystem: improper Neutralization of Escape, Meta, or Control Sequences
Questions about CVE-2021-32708
Is CVE-2021-32708 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 3.49% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of thephpleague flysystem are affected by CVE-2021-32708?
league/flysystem before 1.1.4 and league/flysystem from 2.0.0 before 2.1.1, per the GitHub advisory GHSA-9f46-5r25-5wfm. The tables above give every range the sources list.
Which version fixes CVE-2021-32708?
1.1.4 and 2.1.1, per the GitHub advisory GHSA-9f46-5r25-5wfm. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-32708?
Critical (9.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2021-32708?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.