CVE-2026-49244
JSON

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 packageVersionsReported by
drakkan sftpgo>= 2.2.0 < 2.7.2CVE List
github.com/drakkan/sftpgo/v2 (Go)from 2.2.0 before 2.7.3GitHub Advisory Database, Go Vulnerability Database
github.com/drakkan/sftpgo (Go)all versionsGo Vulnerability Database

All scores

GitHub_M5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-22

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

SourceRecordLicence
CVE ListCVE-2026-49244 changed 2026-08-21CVE Terms of Use
GitHub Advisory DatabaseGHSA-h64p-8h4r-6gfh changed 2026-07-07CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5902 changed 2026-07-07CC-BY-4.0
NVDCVE-2026-49244 changed 2026-10-18Public domain