{"cve":"CVE-2026-30915","nvd":{"published":"2026-03-13T19:54:35.410","modified":"2026-06-17T10:33:08.630","status":"Analyzed","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","cvss_v4":{"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","score":5.3},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3},"cwes":["CWE-22"],"references":["https://github.com/drakkan/sftpgo/security/advisories/GHSA-m83q-5wr4-4gfp"],"products":["sftpgo_project:sftpgo"],"source":"nvd","synced_at":"2026-10-19T22:25:53.701907451+00:00"},"epss":{"cve":"CVE-2026-30915","score":0.00329,"percentile":0.26013,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-m83q-5wr4-4gfp","url":"https://osv.dev/vulnerability/GHSA-m83q-5wr4-4gfp","summary":"SFTPGo improperly sanitizes placeholders in group home directories/key prefixes","modified":"2026-03-24T21:16:21.075212Z","packages":[{"ecosystem":"Go","name":"github.com/drakkan/sftpgo/v2","purl":"pkg:golang/github.com/drakkan/sftpgo/v2","ranges":[">=2.3.0 <2.7.1"],"fixed":["2.7.1"]}]},{"id":"GO-2026-4697","url":"https://osv.dev/vulnerability/GO-2026-4697","summary":"SFTPGo improperly sanitizes placeholders in group home directories/key prefixes in github.com/drakkan/sftpgo","modified":"2026-03-23T04:52:57.076480Z","packages":[{"ecosystem":"Go","name":"github.com/drakkan/sftpgo","purl":"pkg:golang/github.com/drakkan/sftpgo","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/drakkan/sftpgo/v2","purl":"pkg:golang/github.com/drakkan/sftpgo/v2","ranges":[">=2.3.0 <2.7.1"],"fixed":["2.7.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}