CVE-2026-102601

lowPriorität · verfolgen · 0EPSS 0.003 · 27. PerzentilRUUS
grimoire priorityP3 · Track
Exploitable?
—
no known exploitation
Likely / severe?
0.34% (27th) EPSS
CVSS 3.5 · low
Is it mine?
2 products
Prüfe deine Angriffsfläche
Who says so?
2 sources
fstec_bdu · osv

EPSS · bewertet 2026-10-28

Flysystem is an open source file storage library for PHP. Prior to 3.35.3, the default WhitespacePathNormalizer in src/WhitespacePathNormalizer.php used by Filesystem across adapters calls preg_match with the u modifier and treats both false and 0 as falsy. A path containing malformed UTF-8 causes PCRE to return false, so paths that also contain control characters bypass CorruptedPathDetected::forPath() in normalizePath(). Filesystem::write() can store such names and Filesystem::listContents() can return the raw ANSI escape sequences, allowing hidden or spoofed terminal file listings when an administrator displays them. This issue is fixed in version 3.35.3.

01

cvss

Technischer Schweregrad, 0–10. Eine Zeile je Quelle.

3.5
010

Basiswert 0–10 · höher = schwerwiegender · Vektor überfahren zum Auflösen

v3.13.5lowAV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:Nsecondary · FSTEC (BDU) RU
v3.13.5lowCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:Nsecondary · security-advisories@github.comAusnutzbarkeit 2.1 · Auswirkung 1.4
v3.13.5lowCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:Nsecondary · OSV
v3.13.2lowCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N/E:Usecondary · CVSS-BT (t0sche)
02

SSVC

Eine Handlungsentscheidung — aus Ausnutzung und Auswirkung.

Exploitation: poc · Automatable: no · Technical Impact: partialcoordinatorcisa_ssvcUS
03

schwächen

Die CWE-Schwächeklassen, zu denen dies gehört.

04

betroffene Produkte (2)

Betroffene Produkte und Versionsbereiche.

05

Advisories (1)

Hersteller- und Ökosystem-Meldungen dazu.

  • GHSA-cxf4-7mrp-vvprFlysystem: WhitespacePathNormalizer's control-character (CorruptedPathDetected) check is bypassed by malformed UTF-8 in the path, affecting every adapter2026-09-29ghsa · osvUS

    ## Related public issue (context, not a duplicate) Closed issue #1429 ("Handle non-UTF-8 paths", 2024-03-24) raised exactly this general concern and even suggested detection via `preg_match('//u', $path) !== 1` -- note the reporter's suggested check explicitly compares `!== 1`, which *would* correctly treat PCRE's `false` return as "reject." The maintainer's reply pointed to the `PathNormalizer` interface as the place to implement this. The control-character check that ended up shipping in `WhitespacePathNormalizer` (`if (preg_match('#\p{C}+#u', $unixPath))`) addresses the general concern but does **not** use the `!== 1`-style comparison the original issue suggested -- it uses a bare truthy check, which is exactly the gap this report demonstrates. So this is not a duplicate of #1429; it's a concrete bypass surviving in the fix that issue's concern led to. ## Vulnerability Details **File**: `src/WhitespacePathNormalizer.php`, lines 22-28 (`normalizePath()`) -- the **default** `PathNormalizer` used by `Filesystem` for every adapter (Local, FTP, SFTP, S3, AsyncAwsS3, Azure, GCS, ZipArchive, GridFS, InMemory) unless the application supplies a custom one. ### Root Cause ```php public function normalizePath(string $path): string { $unixPath = str_replace('\\', '/', $path); if (preg_match('#\p{C}+#u', $unixPath)) { throw CorruptedPathDetected::forPath($path); } ... ``` `preg_match()` returns `false` (a PHP engine error) rather than `0` when the subject string is not valid UTF-8 and the pattern uses the `/u` modifier -- PCRE can't even attempt the match. `false` and `0` are both falsy in PHP, and `if (preg_match(...))` does not distinguish them. So a path containing **any single invalid UTF-8 byte anywhere in the string** makes `preg_match()` fail with a "Malformed UTF-8 characters" engine error, the `if` evaluates false, and `CorruptedPathDetected` is silently **not** thrown -- even when the same string also contains literal control characters this exact check exists to catch. the identical payload IS correctly rejected once it's valid UTF-8: ```php $n->normalizePath("foo\x1bbar"); // valid UTF-8, contains ESC -> throws CorruptedPathDetected (correct) $n->normalizePath("foo\x80\x1bbar"); // 0x80 = invalid lone UTF-8 continuation byte -> NOT thrown (bypass) ``` The path-traversal protection is **unaffected** -- it's exact byte-string comparison on `/`-delimited segments, independent of UTF-8 validity: ```php $n->normalizePath("\x80/../../etc/passwd"); // still throws PathTraversalDetected ``` ### Recommended Fix ```php public function normalizePath(string $path): string { $unixPath = str_replace('\\', '/', $path); $matched = preg_match('#\p{C}+#u', $unixPath); if ($matched !== 0) { // $matched === false means malformed UTF-8 -- must also be treated as corrupted, // not silently allowed through. throw CorruptedPathDetected::forPath($path); } ... ``` ### Verification Dynamically confirmed on `league/flysystem` HEAD `6837e1d` / tag `3.35.2`, PHP 8.4.22 CLI, end-to-end through `LocalFilesystemAdapter`: ``` [1] write() succeeded -- normalizer did NOT reject the path. [2] Actual bytes on disk: ...801b5b386d6e6f726d616c2d6c6f6f6b696e672d66696c652e7478741b5b306d... [3] Filesystem::listContents() path contains raw ESC (0x1b): YES [4] Raw terminal output (via `cat -v`): M-^@^[[8mnormal-looking-file.txt^[[0m^[[2K^[[1Aurgent-invoice.pdf

06

auch bekannt als (1)

Weitere Namen und Kennungen dieser Entität.

07

quellen

Welche Quellen diesen Datensatz belegen und wann.

veröffentlicht 2026-09-29geändert 2026-10-02
09

Referenzen (3) nvd

Externe Belege — Patches, Meldungen, Analysen.

scry

Angreifer nutzen Schwachstellen wie diese gegen im Internet exponierte Dienste aus. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.

Kostenloser Scan