CVE-2026-30914: Github.com/drakkan/sftpgo/v2 Path Traversal Vulnerability
MODERATECVE-2026-30914 is a MODERATE path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Github.com/drakkan/sftpgo/v2 libraries in the Go ecosystem. The issue involves sftpgo vulnerable to path traversal and permission bypass via path normalization discrepancy. Remediation is available by upgrading affected packages to version 2.7.1.
CVE-2026-30914 at a Glance
How to Fix CVE-2026-30914
To remediate this vulnerability, upgrade all affected Github.com/drakkan/sftpgo/v2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/drakkan/sftpgo/v2 to 2.7.1
Upgrade github.com/drakkan/sftpgo to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/drakkan/sftpgo/v2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-30914, inspect your project dependencies for Github.com/drakkan/sftpgo/v2:
inspect dependencies for github.com/drakkan/sftpgo/v2
Analyze the terminal output to locate any version of Github.com/drakkan/sftpgo/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where 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. In Github.com/drakkan/sftpgo/v2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-30914 Affected Github.com/drakkan/sftpgo/v2 Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/drakkan/sftpgo/v2
|
Go |
< 2.7.1
|
2.7.1
|
|
github.com/drakkan/sftpgo
|
Go |
≤ 1.2.2
|
|
References
Frequently Asked Questions
What is CVE-2026-30914?
Which Github.com/drakkan/sftpgo/v2 versions are affected?
What version fixes CVE-2026-30914?
Is github.com/drakkan/sftpgo/v2 affected?
Is github.com/drakkan/sftpgo affected?
What CWE is associated with CVE-2026-30914?
How can I check Go dependencies for CVE-2026-30914?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x8qh-7475-c5mp",
"modified" : "2026-03-24T20:57:44Z",
"published" : "2026-03-13T18:55:52Z",
"aliases" : [ "CVE-2026-30914" ],
"summary" : "SFTPGo Vulnerable to Path Traversal and Permission Bypass via Path Normalization Discrepancy",
"details" : "### Impact\n\nIn SFTPGo versions prior to 2.7.1, a path normalization discrepancy between the protocol handlers and the internal Virtual Filesystem routing can lead to an authorization bypass. An authenticated attacker can craft specific file paths to bypass folder-level permissions or escape the boundaries of a configured Virtual Folder.\n\n\n### Patches\n\nThis issue has been addressed in SFTPGo version 2.7.1. The fix introduces strict edge-level path normalization, ensuring that all protocol inputs are fully sanitized and resolved to canonical POSIX paths before any routing or permission evaluations occur.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/drakkan/sftpgo/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.7.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.7.0"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/drakkan/sftpgo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/drakkan/sftpgo/security/advisories/GHSA-x8qh-7475-c5mp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-30914"
}, {
"type" : "WEB",
"url" : "https://github.com/drakkan/sftpgo/commit/2f092d128917e2c059520a2ce3e22c3b5ea7ffd6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/drakkan/sftpgo"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2026-4699"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-13T18:55:52Z",
"nvd_published_at" : "2026-03-13T19:54:35Z"
}
}