Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/drakkan/sftpgo/v2
  4. ›
  5. CVE-2026-30915

CVE-2026-30915: SFTPGo improperly sanitizes placeholders in group home directories/key prefixes

March 13, 2026 (updated March 16, 2026)

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.

References

  • github.com/advisories/GHSA-m83q-5wr4-4gfp
  • github.com/drakkan/sftpgo
  • github.com/drakkan/sftpgo/security/advisories/GHSA-m83q-5wr4-4gfp
  • nvd.nist.gov/vuln/detail/CVE-2026-30915

Code Behaviors & Features

Detect and mitigate CVE-2026-30915 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.3.0 before 2.7.1

Fixed versions

  • 2.7.1

Solution

Upgrade to version 2.7.1 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/drakkan/sftpgo/v2/CVE-2026-30915.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:33 +0000.