medium

CVE-2026-49244

Go · github.com/drakkan/sftpgo/v2

Summary

SFTPGo has path confinement bypass in public browsable share partial ZIP download

Severity
medium
CVSS
5.9
EPSS
0.4% (p30)
CWE
CWE-22
Also known as
GHSA-h64p-8h4r-6gfh
Published
2026-07-02
Updated
2026-07-02

Advisory details

Summary

The public web-client endpoint for partial ZIP downloads of a browsable share did not correctly confine the client-supplied files entries to the shared directory. A requester able to reach a public share could read files located outside the shared directory, as long as the target's canonical path begins with the shared directory's name.

Patches

Fixed in v2.7.3. The fix replaces the raw prefix check with a directory-boundary–aware check.

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.