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.

Severity (CVSS 4.0)5.3Medium
Exploit odds (30 days)0.3%top 73.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogithub.com/drakkan/sftpgono fix listedGO-2026-4697
Gogithub.com/drakkan/sftpgo/v22.7.1GHSA-m83q-5wr4-4gfp
Gogithub.com/drakkan/sftpgo/v22.7.1GO-2026-4697

Affected products (as reported)

VendorProductVersions
drakkan sftpgo >= 2.3.0, < 2.7.1

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