{"id":"CVE-2026-30915","published":"2026-03-13T19:04:36Z","modified":"2026-03-13T19:41:17Z","title":"SFTPGo improperly sanitizes placeholders in group home directories/key prefixes","vendor":"drakkan","product":"sftpgo","tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00393,"percentile":0.25077,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/drakkan/sftpgo/security/advisories/GHSA-m83q-5wr4-4gfp","tags":["x_refsource_CONFIRM"]}],"priority":{"score":8.7,"factors":[{"name":"EPSS percentile","points":5.02},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"drakkan","affectedVersions":[{"vendor":"drakkan","product":"sftpgo","versions":[">= 2.3.0, < 2.7.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-13T19:41:05.203975Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/drakkan/sftpgo/v2","vulnerableRanges":[">=2.3.0, <2.7.1"],"patched":["2.7.1"],"from":["GHSA-m83q-5wr4-4gfp","GO-2026-4697"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/drakkan/sftpgo","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-4697"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-12073","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-52801","published":"2024-11-29","fixed":"2.6.4","kev":false},{"cve":"CVE-2025-24366","published":"2025-02-07","fixed":"2.6.5","kev":false,"link":{"from":"CVE-2025-24366","to":"CVE-2026-30915","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/drakkan/sftpgo/v2","fromFixed":"2.6.5","toFixed":"2.7.1","daysApart":399}]}},{"cve":"CVE-2026-30914","published":"2026-03-13","fixed":"2.7.1","kev":false},{"cve":"CVE-2026-30915","published":"2026-03-13","fixed":"2.7.1","kev":false},{"cve":"CVE-2026-49244","published":"2026-08-20","fixed":"2.7.3","kev":false},{"cve":"CVE-2026-49245","published":"2026-08-20","fixed":"2.7.3","kev":false},{"cve":"CVE-2026-77375","published":"2026-10-13","fixed":"2.7.5","kev":false}],"package":"Go:github.com/drakkan/sftpgo/v2"}}