{"schema_version":"1.9.0","id":"CVE-2026-30915","published":"2026-03-13T19:04:36.856Z","modified":"2026-08-12T03:51:47.298380762Z","aliases":["GHSA-m83q-5wr4-4gfp","GO-2026-4697"],"related":["SUSE-SU-2026:1042-1","openSUSE-SU-2026:21483-1"],"summary":"SFTPGo improperly sanitizes placeholders in group home directories/key prefixes","details":"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":[{"ranges":[{"type":"GIT","repo":"https://github.com/drakkan/sftpgo","events":[{"introduced":"9ae473fcdc401b1d31cfef9315f6f7ba509deb32"},{"fixed":"131234866cbfd2a05d0b35545eca6af032b69d88"}],"database_specific":{"cpe":"cpe:2.3:a:sftpgo_project:sftpgo:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"2.3.0"},{"fixed":"2.7.1"}],"source":["AFFECTED_FIELD","CPE_RANGE"]}}],"versions":["v2.7.0","v2.6.0","v2.5.1","v2.5.0","v2.4.0","v2.3.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-30915.json"}}],"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30915.json"},{"type":"ADVISORY","url":"https://github.com/drakkan/sftpgo/security/advisories/GHSA-m83q-5wr4-4gfp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30915"}],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30915.json"},"severity":[{"type":"CVSS_V4","score":"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"}]}