CVE-2026-30915
Received Received - Intake
Path Traversal in SFTPGo Dynamic Group Paths Allows Directory Escape

Publication date: 2026-03-13

Last updated on: 2026-03-18

Assigner: GitHub, Inc.

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 Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-13
Last Modified
2026-03-18
Generated
2026-06-16
AI Q&A
2026-03-13
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
sftpgo_project sftpgo From 2.3.0 (inc) to 2.7.1 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in SFTPGo versions before v2.7.1 and involves improper input validation when handling dynamic group paths such as home directories or key prefixes. Specifically, when placeholders like %username% are used to define these paths, the value replacing the placeholder is not properly sanitized against relative path components. This means that if a user is created with a specially crafted username, the resulting path could point to a parent directory instead of the intended sub-directory.

The issue allows path traversal through crafted usernames, potentially leading to unauthorized access or manipulation of files outside the intended directory structure.

Impact Analysis

This vulnerability can impact you by allowing an attacker to bypass intended directory restrictions. By exploiting the input validation flaw with a crafted username, an attacker could cause the system to resolve file paths to parent directories, potentially accessing or modifying files outside their authorized area.

Such unauthorized access could lead to data exposure, data corruption, or other security breaches depending on the files accessible through the path traversal.

Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

To mitigate this vulnerability, upgrade SFTPGo to version v2.7.1 or later, where the input validation issue with dynamic group paths has been fixed.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-30915. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart