Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-32708

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-32708
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:17 UTC · Revision 1

Source evidence

CVE-2021-32708

core-osv · Original source

Published 24 Jun 2021, 17:15 UTC

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.

osv:CVE-2021-32708
Complete source record
{
  "id": "d82a262078ede2400befca0631a1b3ba3803d58de17cb03d43e5b2689d36d1ea",
  "url": "https://osv.dev/vulnerability/CVE-2021-32708",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-32708",
    "summary": "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.",
    "evidence": "osv:CVE-2021-32708",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-32708",
      "aliases": [
        "CVE-2021-32708",
        "GHSA-9f46-5r25-5wfm"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/thephpleague/flysystem",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0ba6b6dfd6f456905ee8d6b0bcaab7ec89419b93"
                },
                {
                  "fixed": "f3ad69181b8afed2c9edf7be5a2918144ff4ea32"
                },
                {
                  "introduced": "88ab4780a5cc573fb943c8a6987da880b3ec0474"
                },
                {
                  "fixed": "a3c694de9f7e844b76f9d1b61296ebf6e8d89d74"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:thephpleague:flysystem:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.0.0"
                      },
                      {
                        "fixed": "1.1.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:thephpleague:flysystem:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0"
                      },
                      {
                        "fixed": "2.1.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a3c694de9f7e844b76f9d1b61296ebf6e8d89d74"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f3ad69181b8afed2c9edf7be5a2918144ff4ea32"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.1.0",
            "2.0.8",
            "2.0.7",
            "2.0.6",
            "2.0.5",
            "2.0.4",
            "2.0.3",
            "2.0.2",
            "2.0.1",
            "2.0.0",
            "1.1.3",
            "1.1.2",
            "1.1.1",
            "1.1.0",
            "1.0.70",
            "1.0.69",
            "1.0.68",
            "1.0.67",
            "1.0.66",
            "1.0.65",
            "1.0.64",
            "1.0.63",
            "1.0.62",
            "1.0.61",
            "1.0.60",
            "1.0.59",
            "1.0.58",
            "1.0.57",
            "1.0.56",
            "1.0.55",
            "1.0.54",
            "1.0.53",
            "1.0.52",
            "1.0.51",
            "1.0.50",
            "1.0.49",
            "1.0.48",
            "1.0.47",
            "1.0.46",
            "1.0.45",
            "1.0.44",
            "1.0.43",
            "1.0.42",
            "1.0.41",
            "1.0.40",
            "1.0.39",
            "1.0.38",
            "1.0.37",
            "1.0.36",
            "1.0.35",
            "1.0.34",
            "1.0.33",
            "1.0.32",
            "1.0.31",
            "1.0.30",
            "1.0.29",
            "1.0.28",
            "1.0.27",
            "1.0.26",
            "1.0.25",
            "1.0.24",
            "1.0.23",
            "1.0.21",
            "1.0.20",
            "1.0.19",
            "1.0.18",
            "1.0.17",
            "1.0.16",
            "1.0.15",
            "1.0.14",
            "1.0.13",
            "1.0.12",
            "1.0.11",
            "1.0.10",
            "1.0.9",
            "1.0.8",
            "1.0.7",
            "1.0.6",
            "1.0.5",
            "1.0.4",
            "1.0.3",
            "1.0.2",
            "1.0.1",
            "1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32708.json"
          }
        }
      ],
      "modified": "2026-10-20T10:53:45.783257091Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NWPTENBYKI2IG47GI4DHAACLNRLTWUR5/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RNZSWK4GOMJOOHKLZEOE5AQSLC4DNCRZ/",
        "https://packagist.org/packages/league/flysystem",
        "https://github.com/thephpleague/flysystem/commit/a3c694de9f7e844b76f9d1b61296ebf6e8d89d74",
        "https://github.com/thephpleague/flysystem/commit/f3ad69181b8afed2c9edf7be5a2918144ff4ea32",
        "https://github.com/thephpleague/flysystem/security/advisories/GHSA-9f46-5r25-5wfm"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "33"
                  },
                  {
                    "last_affected": "33"
                  },
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-32708",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384592,
  "published_at": "2021-06-24T17:15:08.263+00:00"
}