mediumCVSS 6.8Vulnerability

CVE-2026-62843

## Summary The fix for `GHSA-gxjx-7m74-hcq8` / `CVE-2026-54093` (shipped in v2.63.6) added a `strings.ReplaceAll(nameInArchive, "\\", "/")` step to the archive builder; this was the advisory's recommended "Primary Fix." On a Linux host a backslash is a legal, non-separator filename character, so replacing it with the real POSIX separator `/` **manufactures** a `/`-delimited traversal sequence out of a benign single file name. The fix neutralized the Windows-only vector but reintroduced the same class of bug on POSIX systems, and the advisory's "Secondary Mitigation" (reject backslash filenames at creation time) was never implemented, so the malicious file can still be planted. A file named `..\..\evil.sh`, one ordinary regular file on a Linux server, is emitted into generated zip/tar archives as the entry `../../evil.sh`. Any user with upload (Create) permission can plant such a file; when anyone later downloads the containing folder as an archive and extracts it, the entry escapes the extraction directory on the victim's machine. The original advisory's own payload `..\..\..\Windows\System32\evil.txt` now becomes `../../../Windows/System32/evil.txt`, which, unlike before the fix, also traverses on Linux and macOS extractors. The fix turned a Windows-only zip-slip into a cross-platform one. ## Details **1. The archive builder rewrites backslashes into path separators (`http/raw.go:133`)** ```go nameInArchive := strings.TrimPrefix(path, commonPath) nameInArchive = strings.TrimPrefix(nameInArchive, string(filepath.Separator)) nameInArchive = filepath.ToSlash(nameInArchive) // line 127, host separator only // ... comment explaining the intent to strip Windows separators ... nameInArchive = strings.ReplaceAll(nameInArchive, "\\", "/") // line 133, creates traversal ``` `filepath.ToSlash` only rewrites the host separator, so on Linux a stored backslash survives until this explicit `ReplaceAll`. Replacing `\` with the real separator `/` produces traversal r

Properties

severity
medium
summary
File Browser: Archive builder turns backslash filenames into path traversal (zip-slip)
epss_score
0.00391
cvss_score
6.8
ghsa_published
2026-07-20T22:16:09Z
source_url
https://github.com/advisories/GHSA-83xp-526h-j3ww
ghsa_updated
2026-07-20T22:16:10Z
ghsa_id
GHSA-83xp-526h-j3ww
cve_id
CVE-2026-62843
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
is_ghsa_only
false
epss_percentile
0.32257

Related Entities (6)

ENRICHED_BY (1)

[Source]FIRST EPSS

VULNERABLE_TO (1)

[Software]go/github.com/filebrowser/filebrowser/v2

AFFECTS (1)

[Software]go/github.com/filebrowser/filebrowser/v2

HAS_WEAKNESS (2)

[Weakness]Relative Path Traversal
[Weakness]Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-62843 (CVSS 6.8) — Ninja Signal Threat Intelligence | Ninja Signal