{"id":"GHSA-m83q-5wr4-4gfp","summary":"SFTPGo improperly sanitizes placeholders in group home directories/key prefixes","details":"### Impact\n\nSFTPGo versions before v2.7.1 contain an input validation issue in the handling of dynamic group paths, for example, home directories or key prefixes.\n\nWhen 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.\n\n### Patches\n\nThis issue is fixed in version v2.7.1","aliases":["CVE-2026-30915","GO-2026-4697"],"modified":"2026-03-24T21:16:29.824809Z","published":"2026-03-13T18:56:14Z","database_specific":{"cwe_ids":["CWE-20","CWE-22"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-03-13T18:56:14Z","nvd_published_at":"2026-03-13T19:54:35Z"},"references":[{"type":"WEB","url":"https://github.com/drakkan/sftpgo/security/advisories/GHSA-m83q-5wr4-4gfp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30915"},{"type":"PACKAGE","url":"https://github.com/drakkan/sftpgo"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2026-4697"}],"affected":[{"package":{"name":"github.com/drakkan/sftpgo/v2","ecosystem":"Go","purl":"pkg:golang/github.com/drakkan/sftpgo/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.3.0"},{"fixed":"2.7.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-m83q-5wr4-4gfp/GHSA-m83q-5wr4-4gfp.json","last_known_affected_version_range":"\u003c= 2.7.0"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}