CVE-2026-49244: Github.com/drakkan/sftpgo/v2 SFTPGo Has Path Confinement Bypass Vulnerability
MODERATECVE-2026-49244 is a MODERATE (CVSS 5.9) sftpgo has path confinement bypass 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 has path confinement bypass in public browsable share partial zip download. Remediation is available by upgrading affected packages to version 2.7.3.
CVE-2026-49244 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-49244
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.3
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-49244, 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.3), 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-49244 Affected Github.com/drakkan/sftpgo/v2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/drakkan/sftpgo/v2
|
Go |
≥ 2.2.0
< 2.7.3
|
2.7.3
|
References
Frequently Asked Questions
What is CVE-2026-49244?
Which Github.com/drakkan/sftpgo/v2 versions are affected?
What version fixes CVE-2026-49244?
Is github.com/drakkan/sftpgo/v2 affected?
What is the CVSS score of CVE-2026-49244?
What CWE is associated with CVE-2026-49244?
How can I check Go dependencies for CVE-2026-49244?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h64p-8h4r-6gfh",
"modified" : "2026-07-02T19:09:13Z",
"published" : "2026-07-02T19:09:13Z",
"aliases" : [ "CVE-2026-49244" ],
"summary" : "SFTPGo has path confinement bypass in public browsable share partial ZIP download",
"details" : "## Summary\n\nThe public web-client endpoint for partial ZIP downloads of a browsable share did not correctly confine the client-supplied files entries to the shared directory. A requester able to reach a public share could read files located outside the shared directory, as long as the target's canonical path begins with the shared directory's name.\n\n## Patches\n\nFixed in v2.7.3. The fix replaces the raw prefix check with a directory-boundary–aware check.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/drakkan/sftpgo/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.7.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.7.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/drakkan/sftpgo/security/advisories/GHSA-h64p-8h4r-6gfh"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/drakkan/sftpgo"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-02T19:09:13Z",
"nvd_published_at" : null
}
}