SFTPGo improperly sanitizes placeholders in group home directories/key prefixes
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
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-30915
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 12:46 UTC · Revision 1
Source evidence
SFTPGo improperly sanitizes placeholders in group home directories/key prefixes
core-osv · Original sourcePublished 13 Mar 2026, 19:04 UTC
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
osv:CVE-2026-30915
Complete source record
{
"id": "ada70c535310c919a9c15dbb46487628d1efd80894a530d35726483c02e4c6d4",
"url": "https://osv.dev/vulnerability/CVE-2026-30915",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "SFTPGo improperly sanitizes placeholders in group home directories/key prefixes",
"summary": "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",
"evidence": "osv:CVE-2026-30915",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-30915",
"aliases": [
"CVE-2026-30915",
"GHSA-m83q-5wr4-4gfp",
"GO-2026-4697"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/drakkan/sftpgo",
"type": "GIT",
"events": [
{
"introduced": "9ae473fcdc401b1d31cfef9315f6f7ba509deb32"
},
{
"fixed": "131234866cbfd2a05d0b35545eca6af032b69d88"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "2.3.0"
},
{
"fixed": "2.7.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"cpe": "cpe:2.3:a:sftpgo_project:sftpgo:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.3.0"
},
{
"fixed": "2.7.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.7.0",
"v2.6.0",
"v2.5.1",
"v2.5.0",
"v2.4.0",
"v2.3.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-30915.json"
}
}
],
"modified": "2026-10-28T02:30:50.886571356Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30915.json",
"https://github.com/drakkan/sftpgo/security/advisories/GHSA-m83q-5wr4-4gfp",
"https://nvd.nist.gov/vuln/detail/CVE-2026-30915"
],
"provider_metadata": {
"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"
}
},
"related_cves": [
{
"value": "CVE-2026-30915",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 519331,
"published_at": "2026-03-13T19:04:36.856+00:00"
}