5.3medium
SFTPGo improperly sanitizes placeholders in group home directories/key prefixes
- Severity
- 5.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.35% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-m83q-5wr4-4gfpGO-2026-4697
Description
SFTPGo is an open source, event-driven file transfer solution. SFTPGo versions before v2.7.1 contain an input validation issue in the handling of dynamic group paths, for example, home directories or key prefixes. When a group is configured with a dynamic home directory or key prefix using placeholders like %username%, the value replacing the placeholder is not strictly sanitized against relative path components. Consequently, if a user is created with a specially crafted username the resulting path may resolve to a parent directory instead of the intended sub-directory. This issue is fixed in version v2.7.1
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| drakkan sftpgo | >= 2.3.0, < 2.7.1 | CVE List |
| github.com/drakkan/sftpgo/v2 (Go) | from 2.3.0 before 2.7.1 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/drakkan/sftpgo (Go) | all versions | Go Vulnerability Database |
| sftpgo_project sftpgo | from 2.3.0 before 2.7.1 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Classification
What each source says
CVE List
SFTPGo is an open source, event-driven file transfer solution. SFTPGo versions before v2.7.1 contain an input validation issue in the handling of dynamic group paths, for example, home directories or key prefixes. When a group is configured with a dynamic home directory or key prefix using placeholders like %username%, the value replacing the placeholder is not strictly sanitized against relative path components. Consequently, if a user is created with a specially crafted username the resulting path may resolve to a parent directory instead of the intended sub-directory. This issue is fixed in version v2.7.1
GitHub Advisory Database
Impact
SFTPGo versions before v2.7.1 contain an input validation issue in the handling of dynamic group paths, for example, home directories or key prefixes.
When a group is configured with a dynamic home directory or key prefix using placeholders like %username%, the value replacing the placeholder is not strictly sanitized against relative path components. Consequently, if a user is created with a specially crafted username the resulting path may resolve to a parent directory instead of the intended sub-directory.
Patches
This issue is fixed in version v2.7.1
Go Vulnerability Database
SFTPGo improperly sanitizes placeholders in group home directories/key prefixes in github.com/drakkan/sftpgo
NVD (es)
SFTPGo es una solución de transferencia de archivos de código abierto y basada en eventos. Las versiones de SFTPGo anteriores a la v2.7.1 contienen un problema de validación de entrada en el manejo de rutas de grupo dinámicas, por ejemplo, directorios de inicio o prefijos de clave. Cuando un grupo se configura con un directorio de inicio o prefijo de clave dinámico utilizando marcadores de posición como %username%, el valor que reemplaza el marcador de posición no se sanea estrictamente contra componentes de ruta relativa. En consecuencia, si se crea un usuario con un nombre de usuario especialmente diseñado, la ruta resultante puede resolverse en un directorio padre en lugar del subdirectorio previsto. Este problema se corrige en la versión v2.7.1.
References
| https://github.com/drakkan/sftpgo/security/advisories/GHSA-m83q-5wr4-4gfp | advisory, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-30915 | advisory | |
| https://github.com/drakkan/sftpgo | package | |
| https://pkg.go.dev/vuln/GO-2026-4697 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-30915 changed 2026-03-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m83q-5wr4-4gfp changed 2026-03-24 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4697 changed 2026-03-23 | CC-BY-4.0 |
| NVD | CVE-2026-30915 changed 2026-06-17 | Public domain |