CVE-2021-32708
Last modified
CVE-2021-32708 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. Flysystem is an open source file storage library for PHP. The whitespace normalisation using in 1.x and 2.x removes any unicode whitespace. EPSS estimates a 3.49% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Thephpleague | Flysystem | >= 1.0.0, < 1.1.4 |
| Thephpleague | Flysystem | >= 2.0.0, < 2.1.1 |
| Fedoraproject | Fedora | 33 |
| Fedoraproject | Fedora | 34 |
References
- https://github.com/thephpleague/flysystem/commit/a3c694de9f7e844b76f9d1b61296ebf6e8d89d74Patch, Third Party Advisory
- https://github.com/thephpleague/flysystem/commit/f3ad69181b8afed2c9edf7be5a2918144ff4ea32Patch, Third Party Advisory
- https://github.com/thephpleague/flysystem/security/advisories/GHSA-9f46-5r25-5wfmPatch, Third Party Advisory
- https://packagist.org/packages/league/flysystemProduct, Third Party Advisory
- https://github.com/thephpleague/flysystem/commit/a3c694de9f7e844b76f9d1b61296ebf6e8d89d74Patch, Third Party Advisory
- https://github.com/thephpleague/flysystem/commit/f3ad69181b8afed2c9edf7be5a2918144ff4ea32Patch, Third Party Advisory
- https://github.com/thephpleague/flysystem/security/advisories/GHSA-9f46-5r25-5wfmPatch, Third Party Advisory
- https://packagist.org/packages/league/flysystemProduct, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-32708?
How severe is CVE-2021-32708?
How do I fix CVE-2021-32708?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-32702The Auth0 Next.js SDK is a library for implementing user aut…6.1
- CVE-2021-32703Nextcloud Server is a Nextcloud package that handles data st…5.3
- CVE-2021-32704DHIS 2 is an information system for data capture, management…8.8
- CVE-2021-32705Nextcloud Server is a Nextcloud package that handles data st…7.5
- CVE-2021-32706Pi-hole's Web interface provides a central location to manag…8.8
- CVE-2021-32707Nextcloud Mail is a mail app for Nextcloud. In versions prio…4.3
- CVE-2021-32709Shopware is an open source eCommerce platform. Creation of o…4.9
- CVE-2021-3271PressBooks 5.17.3 contains a cross-site scripting (XSS). Sto…4.8
- CVE-2021-32710Shopware is an open source eCommerce platform. Potential ses…7.5
- CVE-2021-32711Shopware is an open source eCommerce platform. Versions prio…7.5
- CVE-2021-32712Shopware is an open source eCommerce platform. Versions prio…5.3
- CVE-2021-32713Shopware is an open source eCommerce platform. Versions prio…4.8
Are you affected by CVE-2021-32708?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
