SFTPGo improperly sanitizes placeholders in group home directories/key prefixes
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
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/drakkan/sftpgo/v2Go | >= 2.3.0, < 2.7.1 | 2.7.1 |
Affected products
3- ghsa-coords2 versionspkg:golang/github.com/drakkan/sftpgo/v2pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2015.6
>= 2.3.0, < 2.7.1+ 1 more
- (no CPE)range: >= 2.3.0, < 2.7.1
- (no CPE)range: < 0.0.20260317T205859-150000.1.152.1
Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-m83q-5wr4-4gfpghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-30915ghsaADVISORY
- github.com/drakkan/sftpgo/security/advisories/GHSA-m83q-5wr4-4gfpghsax_refsource_CONFIRMWEB
- pkg.go.dev/vuln/GO-2026-4697ghsaWEB
News mentions
0No linked articles in our index yet.