GitHub Advisoryadvisory · Go

GHSA-h64p-8h4r-6gfh SFTPGo has path confinement bypass in public browsable share partial ZIP download

MEDIUM Published 2026-07-02 Modified 2026-07-02 Official page ↗
Aliases
CVE-2026-49244
Ecosystem
Go
Packages
github.com/drakkan/sftpgo/v2
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-22
Reviewed
2026-07-02

Affected packages

• Go github.com/drakkan/sftpgo/v2: >= 2.2.0, < 2.7.3 → fixed in 2.7.3

Description

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.

Related

Alias · CVE (1)

  • CVE-2026-49244 SFTPGo is an open source, event-driven file transfer solution. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References