CVE-2026-48827: Sshd git Path Traversal Vulnerability
HIGHCVE-2026-48827 is a HIGH (CVSS 7.1) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Sshd git libraries in the Maven ecosystem. The issue involves apache mina sshd bundle sshd-git has a path traversal vulnerability. Remediation is available by upgrading affected packages to version 2.18.0, 3.0.0-M4.
CVE-2026-48827 at a Glance
Security Impact
CVSS: 7.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N).
How to Fix CVE-2026-48827
To remediate this vulnerability, upgrade all affected Sshd git dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.sshd</groupId>
<artifactId>sshd-git</artifactId>
<version>2.18.0</version>
</dependency>
<dependency>
<groupId>org.apache.sshd</groupId>
<artifactId>sshd-git</artifactId>
<version>3.0.0-M4</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.sshd
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-48827, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.sshd
Analyze the terminal output to locate any version of Sshd git in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.18.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.sshd command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
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 Sshd git, 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-48827 Affected Sshd git Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.sshd:sshd-git
|
Maven |
< 2.18.0
|
2.18.0
|
|
org.apache.sshd:sshd-git
|
Maven |
≥ 3.0.0-M1
< 3.0.0-M4
|
3.0.0-M4
|
References
Frequently Asked Questions
What is CVE-2026-48827?
Which Sshd git versions are affected?
What version fixes CVE-2026-48827?
Is sshd-git affected?
What is the CVSS score of CVE-2026-48827?
What CWE is associated with CVE-2026-48827?
How can I check Maven dependencies for CVE-2026-48827?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mw4m-qhpg-j82m",
"modified" : "2026-07-09T21:08:00Z",
"published" : "2026-06-01T09:31:15Z",
"aliases" : [ "CVE-2026-48827" ],
"summary" : "Apache MINA SSHD bundle sshd-git has a path traversal vulnerability",
"details" : "There is a path traversal vulnerability in Apache MINA SSHD bundle sshd-git. Lack of path validation in git-upload-pack, git-receive-pack, and other git operations allows users authenticated over SSH access to git repositories outside the configured git server root directory.\n\nApplications are affected if they use org.apache.sshd:sshd-git. Applications not using sshd-git are not affected.\n\nUsers are advised to upgrade affected applications to Apche MINA SSHD 2.18.0, which fixes the issue.\n\nThe issue also is present in the pre-release milestones 3.0.0-M1 to 3.0.0-M3 for a new upcoming new major version 3.0.0. Again, applications are affected only if they use sshd-git. Upgrade affected applications to 3.0.0-M4.\n\nApache MINA SSHD bundle sshd-git would like to point out that a professional git server should not rely solely on file system layout and permissions, but should implement additional security controls to govern access to git repositories and operations allowed on particular git repositories.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.sshd:sshd-git"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.18.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.sshd:sshd-git"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0-M1"
}, {
"fixed" : "3.0.0-M4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-48827"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/mina-sshd"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/910kq9ghm6js0k1yhhbrdm9sf5tqq9c9"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2026/05/30/1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-09T21:08:00Z",
"nvd_published_at" : "2026-06-01T09:16:20Z"
}
}