{"id":"CVE-2026-49244","aliases":["CVE-2026-49244","GHSA-h64p-8h4r-6gfh","GO-2026-5902"],"related":[],"kind":"vulnerability","state":"published","title":"SFTPGo: Path confinement bypass in public browsable share partial ZIP download","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nThe 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.\n\n## Patches\n\nFixed in v2.7.3. The fix replaces the raw prefix check with a directory-boundary–aware check.","format":"markdown","source":"ghsa"},{"lang":"en","text":"SFTPGo has path confinement bypass in public browsable share partial ZIP download in github.com/drakkan/sftpgo","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-07-02T19:09:13.000Z","modified":"2026-10-18T20:10:00.110Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":">= 2.2.0 < 2.7.2","status":"affected"}],"vendor":"drakkan","product":"sftpgo","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.7.3"}],"ecosystem":"Go","package":"github.com/drakkan/sftpgo/v2","purl":"pkg:golang/github.com/drakkan/sftpgo/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/drakkan/sftpgo","purl":"pkg:golang/github.com/drakkan/sftpgo","source":"go"},{"ranges":[{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.7.3"}],"ecosystem":"Go","package":"github.com/drakkan/sftpgo/v2","purl":"pkg:golang/github.com/drakkan/sftpgo/v2","source":"go"}],"references":[{"url":"https://github.com/drakkan/sftpgo/security/advisories/GHSA-h64p-8h4r-6gfh","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/drakkan/sftpgo/commit/52a56584c417e325aea35ab23849422a90ba512f","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/drakkan/sftpgo/releases/tag/v2.7.3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/drakkan/sftpgo","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-21T20:58:27.136Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-49244","url":"https://www.cve.org/CVERecord?id=CVE-2026-49244","licence":"CVE Terms of Use","modified":"2026-08-21T21:44:58.013Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h64p-8h4r-6gfh","url":"https://github.com/advisories/GHSA-h64p-8h4r-6gfh","licence":"CC-BY-4.0","modified":"2026-07-07T16:11:33.267Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5902","url":"https://pkg.go.dev/vuln/GO-2026-5902","licence":"CC-BY-4.0","modified":"2026-07-07T16:00:36.718Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-49244","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49244","licence":"Public domain","modified":"2026-10-18T20:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:34.733Z","epss":{"score":0.00448,"percentile":0.3076,"date":"2026-11-30T12:00:22.000Z"}}