low

CVE-2026-50568

Go · github.com/fission/fission

Summary

Fission: SanitizeFilePath lexical HasPrefix bypass permits sibling-directory escape

Severity
low
CVSS
3.6
EPSS
0.1% (p2)
CWE
CWE-41
Also known as
GHSA-r5jh-q2mw-gcx4
Published
2026-07-28
Updated
2026-07-28

Advisory details

SanitizeFilePath in pkg/utils/utils.go validated that a path stayed under a safe directory by calling strings.HasPrefix(path, safedir). This is a lexical check, not a directory boundary check: /packages-extra/evil starts with /packages, so it passed. The function did not enforce a path-separator boundary, so any sibling directory whose name began with the safe-directory string was accepted.

Callers included the builder's Clean handler (pkg/builder/builder.go:208) and the fetcher's Fetch / Upload handlers (pkg/fetcher/fetcher.go). A tenant who could pre-create or control a sibling directory under the fetcher / builder's shared volume could induce a write or read outside the intended safe directory.

Affected

Fix section (paste into the Fix / Patches field)

Fixed in v1.25.0 by:

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.