cve.bz

CVE-2021-32708

8.1 highEPSS 3.5%Fix available

High (8.1). EPSS 3.5% estimated probability of exploitation activity in the next 30 days. Fixed in league/flysystem 1.1.4, 2.1.1.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
3.5% (unchanged from 3.5% a week ago; 3.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-32708 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-32708?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-32708?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-32708 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
thephpleague:flysystemfrom 1.0.0 before 1.1.4
thephpleague:flysystemfrom 2.0.0 before 2.1.1
fedoraproject:fedora33
fedoraproject:fedora34

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-9f46-5r25-5wfmPackagistleague/flysystem<1.1.41.1.4
GHSA-9f46-5r25-5wfmPackagistleague/flysystem>=2.0.0 <2.1.12.1.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14php-league-flysystem1.1.3-4DEBIAN-CVE-2021-32708
Ubuntu16.04:LTS, 22.04:LTS, 24.04:LTS and 3 morephp-league-flysystemno fix listedUBUNTU-CVE-2021-32708

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON