Advisory

GHSA-h64p-8h4r-6gfh

Also known as: CVE-2026-49244, GO-2026-5902

Summary

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

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-07-02 19:09 UTC
Modified
2026-07-07 16:11 UTC

Affected packages and fixes

github.com/drakkan/sftpgo/v2

Go · All systems

Affected

  • introduced 2.2.0, fixed 2.7.3 (semver)

Fixed versions

2.7.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences