5.9medium
SFTPGo: Path confinement bypass in public browsable share partial ZIP download
- Severity
- 5.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.45% (higher than 31% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-h64p-8h4r-6gfhGO-2026-5902
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| drakkan sftpgo | >= 2.2.0 < 2.7.2 | CVE List |
| github.com/drakkan/sftpgo/v2 (Go) | from 2.2.0 before 2.7.3 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/drakkan/sftpgo (Go) | all versions | Go Vulnerability Database |
All scores
| GitHub_M | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
Go Vulnerability Database
SFTPGo has path confinement bypass in public browsable share partial ZIP download in github.com/drakkan/sftpgo
NVD (es)
SFTPGo es una solución de transferencia de archivos de código abierto e impulsada por eventos. Desde la versión 2.2.0 hasta la 2.7.3, el punto final de descarga parcial de ZIP del cliente web público para un recurso compartido navegable valida las entradas de archivos proporcionadas por el cliente con una comparación de prefijo de bytes en bruto en lugar de una verificación consciente de los límites del directorio. Un solicitante no autenticado que puede acceder a un recurso compartido público puede seleccionar una ruta canónica fuera del directorio compartido cuando la ruta de destino comienza con el nombre del directorio compartido, como una ruta hermana que comparte el mismo prefijo. El punto final incluye entonces el archivo fuera de alcance en la descarga generada, revelando su contenido. Este problema está corregido en la versión 2.7.3.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-49244 changed 2026-08-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-h64p-8h4r-6gfh changed 2026-07-07 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5902 changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2026-49244 changed 2026-10-18 | Public domain |