CVE-2021-32708: Flysystem - Remote Code Execution
- Cve: CVE-2021-32708
- Name: Flysystem - Remote Code Execution
- Description: 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.
- Impact: Attackers can upload and execute arbitrary PHP code on the server, leading to full system compromise.
- Remediation: Upgrade to version 1.1.4 for 1.x users and 2.1.1 for 2.x users.
- Vulnerability type: unrestricted_file_upload
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.1
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.03486
- Epss percentile: 0.89421
- Assignee: [email protected]
- Published at: 2021-06-24T17:15:08Z
- Age in days: 1979
- Modified at: 2026-06-17T03:53:28Z
- Patch available: yes
- Public exploits total: 1
- References total: 6
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32708
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/fazilbaig1/CVE-2021-32708 | poc-in-github | 2024-10-19 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| thephpleague:flysystem | >= 2.0.0, < 2.1.1; >= 1.0.0, < 1.1.4 | no | nvd | /v1/products/thephpleague/flysystem |
| fedoraproject:fedora | = 34, = 33 | no | nvd | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| thephpleague/flysystem | commit, fix, package, security_advisory | yes | /v1/repositories/thephpleague/flysystem |
Index
- Repositories: 78
- Repositories high signal: 49
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-10-19
- Remote: yes
- Hackerone reports: 1
- Exposed hosts: 49161
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since