# CVE-2026-30915: SFTPGo improperly sanitizes placeholders in group home directories/key prefixes

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-03-13T18:56:14.000Z
- Modified: 2026-06-17T10:33:08.630Z
- Also known as: GHSA-m83q-5wr4-4gfp, GO-2026-4697
- Weaknesses: CWE-20, CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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

(As written by CVE List.)

## Affected

- drakkan sftpgo: >= 2.3.0, < 2.7.1
- github.com/drakkan/sftpgo/v2 (Go): from 2.3.0 before 2.7.1
- github.com/drakkan/sftpgo (Go): all versions
- sftpgo_project sftpgo: from 2.3.0 before 2.7.1

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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: CVSS:4.0 Medium `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: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`

## 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

- CVE List: [CVE-2026-30915](https://www.cve.org/CVERecord?id=CVE-2026-30915), CVE Terms of Use, modified 2026-03-13
- GitHub Advisory Database: [GHSA-m83q-5wr4-4gfp](https://github.com/advisories/GHSA-m83q-5wr4-4gfp), CC-BY-4.0, modified 2026-03-24
- Go Vulnerability Database: [GO-2026-4697](https://pkg.go.dev/vuln/GO-2026-4697), CC-BY-4.0, modified 2026-03-23
- NVD: [CVE-2026-30915](https://nvd.nist.gov/vuln/detail/CVE-2026-30915), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-30915 · Whole record: https://cve.day/CVE-2026-30915.json · Rebuilt by cve.day 2026-11-25T22:59:15.880Z
