Vulnerability · Published Mar 13, 2026 · Assigned by GitHub_M
CVE-2026-30915SFTPGo improperly sanitizes placeholders in group home directories/key prefixes
Medium 5.3
In plain English
A medium-severity path traversal in sftpgo from drakkan. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/drakkan/sftpgo | no fix listed | GO-2026-4697 |
| Go | github.com/drakkan/sftpgo/v2 | 2.7.1 | GHSA-m83q-5wr4-4gfp |
| Go | github.com/drakkan/sftpgo/v2 | 2.7.1 | GO-2026-4697 |
Affected products (as reported)
Weakness: CWE-22 · Vector: 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
References
- https://github.com/drakkan/sftpgo/security/advisories/GHSA-m83q-5wr4-4gfp x_refsource_CONFIRM