GHSA-h64p-8h4r-6gfh

Suggest an improvement
Source
https://github.com/advisories/GHSA-h64p-8h4r-6gfh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-h64p-8h4r-6gfh/GHSA-h64p-8h4r-6gfh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-h64p-8h4r-6gfh
Aliases
  • CVE-2026-49244
Published
2026-07-02T19:09:13Z
Modified
2026-07-02T19:15:07.678365150Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
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.

Database specific
{
    "github_reviewed_at": "2026-07-02T19:09:13Z",
    "nvd_published_at": null,
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "MODERATE"
}
References

Affected packages

Go / github.com/drakkan/sftpgo/v2

Package

Name
github.com/drakkan/sftpgo/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/drakkan/sftpgo/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.2.0
Fixed
2.7.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-h64p-8h4r-6gfh/GHSA-h64p-8h4r-6gfh.json"
last_known_affected_version_range
"<= 2.7.1"