CVE-2026-30915
MEDIUM 5.3CVSS 4.0SFTPGo improperly sanitizes placeholders in group home directories/key prefixes
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
- Published
- 13 Mar 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-20CWE-22
- Also known as
- GHSA-m83q-5wr4-4gfpGO-2026-4697
- Sources
- NVDJSONOSV GHSA-m83q-5wr4-4gfpJSONOSV GO-2026-4697JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 5.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sftpgo_project | sftpgocpe:2.3:a:sftpgo_project:sftpgo:*:*:*:*:*:*:*:* |
>= 2.3.0, < 2.7.1 | 2.7.1 |
| OSV | Go | github.com/drakkan/sftpgo/v2 | >= 2.3.0, < 2.7.1 | 2.7.1 |
| OSV | Go | github.com/drakkan/sftpgo | all versions |
References
- https://github.com/drakkan/sftpgo/security/advisories/GHSA-m83q-5wr4-4gfp · Vendor Advisory, WEB, ADVISORY
- 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
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 13 Mar 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Mar 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 13 Mar 2026)