{"id":"CVE-2026-30915","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","aliases":["GHSA-m83q-5wr4-4gfp","GO-2026-4697"],"modified":"2026-04-10T05:41:57.644930Z","published":"2026-03-13T19:04:36.856Z","related":["SUSE-SU-2026:1042-1"],"database_specific":{"cwe_ids":["CWE-22"],"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/drakkan/sftpgo","events":[{"introduced":"9ae473fcdc401b1d31cfef9315f6f7ba509deb32"},{"fixed":"131234866cbfd2a05d0b35545eca6af032b69d88"}]}],"versions":["v2.3.0","v2.4.0","v2.5.0","v2.5.1","v2.6.0","v2.7.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-30915.json"}}],"schema_version":"1.7.5","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"}]}