CVE-2021-32708
PHP vulnerability analysis and mitigation

Overview

Flysystem, an open source file storage library for PHP, was found to contain a vulnerability (CVE-2021-32708) related to whitespace normalization in versions 1.x and 2.x. The vulnerability was discovered and disclosed in June 2021, affecting all versions before 1.1.4 and 2.0.0 through 2.1.0. This security issue impacts systems where Flysystem is used to handle file uploads with specific configurations (GitHub Advisory).

Technical details

The vulnerability stems from the whitespace normalization functionality that removes unicode whitespace characters. The issue is classified as a Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367). The vulnerability has received a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating high severity across confidentiality, integrity, and availability impacts (NVD).

Impact

Under specific conditions, this vulnerability could allow a malicious user to execute code remotely. The exploitation requires several conditions to be met: the user must be allowed to supply file paths or filenames, path validation must not check for unicode characters, extension checking must use a deny-list approach, the filename must contain unicode whitespace in the extension, and the upload directory must allow PHP code execution (GitHub Advisory).

Exploitability

The vulnerability is exploitable when all the specified conditions are met, allowing an attacker to upload and execute arbitrary code on the target system. The attack vector is network-accessible with low attack complexity and requires no privileges or user interaction (NVD).

Mitigation and workarounds

The vulnerability has been patched by replacing the unicode whitespace removal with a rejection mechanism. Users of version 1.x should upgrade to version 1.1.4 or later, while users of version 2.x should upgrade to version 2.1.1 or later. The fixes are implemented in commits f3ad691 for 1.x and a3c694d for 2.x (GitHub Advisory, Fedora Update).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-56825HIGH8.1
  • PHP logoPHP
  • shopper/framework
NoYesSep 11, 2026
CVE-2026-56829HIGH8.1
  • PHP logoPHP
  • shopper/framework
NoYesSep 11, 2026
CVE-2026-56830MEDIUM6.5
  • PHP logoPHP
  • shopper/framework
NoYesSep 11, 2026
CVE-2026-56831MEDIUM6.5
  • PHP logoPHP
  • shopper/framework
NoYesSep 11, 2026
CVE-2026-49992MEDIUM6.3
  • PHP logoPHP
  • kimai/kimai
NoYesSep 11, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management