{"id":"CVE-2026-50568","published":"2026-06-10T17:31:49Z","modified":"2026-06-11T13:59:45Z","title":"Fission: SanitizeFilePath lexical HasPrefix bypass permits sibling-directory escape","vendor":"fission","product":"fission","tier":"tail","description":{"text":"Fission is an open-source, Kubernetes-native serverless framework that simplifies the deployment of functions and applications on Kubernetes. Prior to version 1.25.0, 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. This issue has been patched in version 1.25.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00138,"percentile":0.01608,"provenance":"source"},"cwes":[{"id":"CWE-41","name":"Improper Resolution of Path Equivalence"}],"references":[{"url":"https://github.com/fission/fission/security/advisories/GHSA-r5jh-q2mw-gcx4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/fission/fission/pull/3445","tags":["x_refsource_MISC"]},{"url":"https://github.com/fission/fission/pull/3446","tags":["x_refsource_MISC"]},{"url":"https://github.com/fission/fission/releases/tag/v1.25.0","tags":["x_refsource_MISC"]}],"priority":{"score":2.8,"factors":[{"name":"EPSS percentile","points":0.32},{"name":"CVSS severity","points":2.52}]},"vendorSlug":"fission","affectedVersions":[{"vendor":"fission","product":"fission","versions":["< 1.25.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-11T13:59:24.283843Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/fission/fission","vulnerableRanges":["<1.25.0"],"patched":["1.25.0"],"from":["GHSA-r5jh-q2mw-gcx4","GO-2026-6130"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-36072","exploited":false,"provenance":"source"}}