Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-30915 EUVD-2026-12073GHSA-m83q-5wr4-4gfpGO-2026-4697

SFTPGo improperly sanitizes placeholders in group home directories/key prefixes

Published Mar 13, 2026 · Updated Mar 13, 2026 · 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

Affected products

VendorProductAffectedFixed
drakkan sftpgo >= 2.3.0, < 2.7.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20260317T205859-150000.1.152.1 SUSE-SU-2026:1042-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/drakkan/sftpgo all versions — GO-2026-4697
Go github.com/drakkan/sftpgo/v2 >= 2.3.0, < 2.7.1 2.7.1 GHSA-m83q-5wr4-4gfp

Advisories 2

References