Skip to main content

Suse CVE-2026-32758

MEDIUM
Path Traversal (CWE-22)
2026-03-16 https://github.com/filebrowser/filebrowser GHSA-9f3r-2vgw-m8xp
6.5
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

While the CVSS score of 6.5 (Medium-High) reflects the integrity impact and low attack complexity, the real-world risk is elevated by several factors. The vulnerability requires only low privilege (an authenticated user with Create/Rename permissions) and has network-level attack vector with no user interaction required. The proof-of-concept is publicly available via the GitHub security advisory (GHSA-9f3r-2vgw-m8xp), increasing the likelihood of weaponization. However, the scope of impact is limited: the attacker cannot escape the user's BasePathFs sandbox (filesystem containment prevents privilege escalation to root-level directories), and read operations are unaffected because the GET handler uses pre-cleaned paths. This is not a critical vulnerability for all deployments, but organizations using FileBrowser to manage sensitive files with strict permission policies should treat it as high priority. The EPSS score and KEV status would further refine this assessment, but the combination of public POC, low privilege requirements, and documented bypass technique warrants immediate patching.

Exploit ScenarioDerived

An authenticated FileBrowser user with Copy permissions on the /public directory crafts a PATCH request with destination parameter set to /public/../restricted/sensitive.txt when copying a file from /public/test.txt. Because the rules check engine evaluates the uncleaned path /public/../restricted/sensitive.txt against a deny rule for /restricted/, it does not match the prefix and the request is allowed. The file operation subsequently normalizes the path to /restricted/sensitive.txt and executes the copy, placing the attacker's file in a protected directory. A proof-of-concept demonstrating this bypass is available in the GitHub advisory, making this vulnerability straightforward for an authenticated attacker with basic HTTP knowledge to exploit.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 16, 2026

Path traversal in the resourcePatchHandler allows authenticated users with Create or Rename permissions to bypass access control rules by injecting path traversal sequences (..\) into PATCH requests, since validation occurs before path normalization. An attacker can exploit this to copy or rename files to restricted directories that should be protected by administrator-configured deny rules. No patch is currently available.

Earlier versions of this analysis (1)
v1 Mar 16, 2026 - 20:56 CVSS 6.5

A path traversal vulnerability in FileBrowser's resourcePatchHandler allows authenticated users with Copy or Rename permissions to bypass administrator-configured access control rules by injecting path traversal sequences (../) into the destination parameter of PATCH requests. The vulnerability affects FileBrowser v2 (github.com/filebrowser/filebrowser), enabling attackers to write files to restricted directories that should be protected by deny rules. A proof-of-concept has been published via the GitHub security advisory, and the vulnerability carries a CVSS score of 6.5 with an attack vector of Network, low attack complexity, and low privilege requirements.

RemediationAI

Upgrade FileBrowser to the patched version specified in the official security advisory at https://github.com/filebrowser/filebrowser/security/advisories/GHSA-9f3r-2vgw-m8xp. The recommended fix is to normalize all paths using path.Clean() immediately after URL unescaping and before any access control checks, as detailed in the CVE description. Organizations unable to patch immediately should implement the following workarounds: restrict PATCH request access via reverse proxy to trusted users only, disable Copy/Rename functionality for users who do not require it by modifying FileBrowser's permission configuration, and monitor access logs for PATCH requests containing ../ sequences in the destination parameter. Additionally, ensure FileBrowser runs with minimal filesystem permissions and use OS-level access controls to further restrict the scope of any successful bypass.

Affected Packages

go github.com/filebrowser/filebrowser no fix
go github.com/filebrowser/filebrowser/v2 fix: 2.62.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability stems from a time-of-check-time-of-use (TOCTOU) flaw in the FileBrowser resource handler (pkg:go/github.com_filebrowser_filebrowser_v2). The application validates access rules in http/resource.go against the raw, unencoded destination path before path normalization occurs. The rules engine in rules/rules.go uses either literal string prefix matching via strings.HasPrefix() or regex pattern matching against the uncleaned path. However, the actual file operation in fileutils/copy.go invokes path.Clean() after the validation check, which resolves path traversal sequences like .. to their canonical forms. This creates a mismatch: a path like /public/../restricted/file.txt fails the prefix rule check for /restricted/ but normalizes to /restricted/file.txt during the copy operation. The root cause is classified under CWE-22 (Improper Limitation of a Pathname to a Restricted Directory).

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
SUSE MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 16, 2026 - 20:45 nvd
MEDIUM 6.5

DescriptionGitHub Advisory

Description

The resourcePatchHandler in http/resource.go validates the destination path against configured access rules before the path is cleaned/normalized. The rules engine (rules/rules.go) uses literal string prefix matching (strings.HasPrefix) or regex matching against the raw path. The actual file operation (fileutils.Copy, patchAction) subsequently calls path.Clean() which resolves .. sequences, producing a different effective path than the one validated.

This allows an authenticated user with Create or Rename permissions to bypass administrator-configured deny rules by including .. (dot-dot) path traversal sequences in the destination query parameter of a PATCH request.

Steps to Reproduce

1. Verify the rule works normally

bash
# This should return 403 Forbidden
curl -X PATCH \
  -H "X-Auth: <alice_jwt>" \
  "http://host/api/resources/public/test.txt?action=copy&destination=%2Frestricted%2Fcopied.txt"

2. Exploit the bypass

bash
# This should succeed despite the deny rule
curl -X PATCH \
  -H "X-Auth: <alice_jwt>" \
  "http://host/api/resources/public/test.txt?action=copy&destination=%2Fpublic%2F..%2Frestricted%2Fcopied.txt"

3. Result

The file test.txt is copied to /restricted/copied.txt despite the deny rule for /restricted/.

Root Cause Analysis

In http/resource.go:209-257:

go
dst := r.URL.Query().Get("destination")       // line 212
dst, err := url.QueryUnescape(dst)             // line 214 - dst contains ".."
if !d.Check(src) || !d.Check(dst) {            // line 215 - CHECK ON UNCLEANED PATH
    return http.StatusForbidden, nil
}

In rules/rules.go:29-35:

go
func (r *Rule) Matches(path string) bool {
    if r.Regex {
        return r.Regexp.MatchString(path)      // regex on literal path
    }
    return strings.HasPrefix(path, r.Path)     // prefix on literal path
}

In fileutils/copy.go:12-17:

go
func Copy(afs afero.Fs, src, dst string, ...) error {
    if dst = path.Clean("/" + dst); dst == "" { // CLEANING HAPPENS HERE, AFTER CHECK
        return os.ErrNotExist
    }

The rules check sees /public/../restricted/copied.txt (no match for /restricted/ prefix). The file operation resolves it to /restricted/copied.txt (within the restricted path).

Secondary Issue

In the same handler, the error from url.QueryUnescape is checked after d.Check() runs (lines 214-220), meaning the rules check executes on a potentially malformed string if unescaping fails.

Impact

An authenticated user with Copy (Create) or Rename permission can write or move files into any path within their scope that is protected by deny rules. This bypasses both:

  • Prefix-based rules: strings.HasPrefix on uncleaned path misses the match
  • Regex-based rules: Standard patterns like ^/restricted/.* fail on uncleaned path

Cannot be used to:

  • Escape the user's BasePathFs scope (afero prevents this)
  • Read from restricted paths (GET handler uses cleaned r.URL.Path)

Suggested Fix

Clean the destination path before the rules check:

go
dst, err := url.QueryUnescape(dst)
if err != nil {
    return errToStatus(err), err
}
dst = path.Clean("/" + dst)
src = path.Clean("/" + src)
if !d.Check(src) || !d.Check(dst) {
    return http.StatusForbidden, nil
}
if dst == "/" || src == "/" {
    return http.StatusForbidden, nil
}

Executive ViewAI

Why It Matters

CVE-2026-32758 presents notable security risk, a path traversal vulnerability rated CVSS 6.5. This could allow unauthorized file access. Organizations should apply vendor updates when available and monitor for exploitation.

Business Impact: Moderate
Compensating Controls

Apply vendor patch. If patching is delayed: restrict file access via WAF, implement allowlists.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)GitHub Advisory

pkg:go/github.com_filebrowser_filebrowser_v2

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
openSUSE Leap 15.6 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP5 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP6 Fixed
openSUSE Leap 15.5 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy