NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2026-49244: SFTPGo has path confinement bypass in public browsable share partial ZIP download

mediumCVSS 3.1 5.9GHSA-h64p-8h4r-6gfh

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.

Published Jul 2, 2026

Affected packages

github.com/drakkan/sftpgo/v2

Ecosystem
Go
Affected
>= 2.2.0, <= 2.7.1
Fixed in
2.7.3
Check
go list -m github.com/drakkan/sftpgo/v2

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to celinke97.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries