CVE-2021-32708: Time-of-check Time-of-use (TOCTOU) Race Condition in league/flysystem
thephpleague · flysystem
Vendor fix available · Affected: thephpleague flysystem · Exploitation: possible (1 to 10%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 89% of scored CVEs
DescriptionCVE.org
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.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- thephpleague · flysystem< 1.1.4; >= 2.0.0, < 2.1.1
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Possible (1 to 10%). EPSS between 1% and 10%.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Vendor
- thephpleague
- Published
- June 2021
- Bounty reports
- 1 disclosed on HackerOne
Disclosed bug bounty reports about CVE-2021-32708
The reports on HackerOne that name this CVE, with HackerOne's own outcome. Titles and metadata only.
- Suspicious login app ships old league/flysystem versionNextcloud · 2023Valid
CoverageNo articles yet
No CyberSIXT article names CVE-2021-32708 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-367cwe.mitre.org
- Vendor advisorylists.fedoraproject.org
- Vendor advisorylists.fedoraproject.org
- github.com/thephpleague/flysystem/security/advisories/GHSA-9f46-github.com
- github.com/thephpleague/flysystem/commit/a3c694de9f7e844b76f9d1bgithub.com
- github.com/thephpleague/flysystem/commit/f3ad69181b8afed2c9edf7bgithub.com
- packagist.org/packages/league/flysystempackagist.org