Vulnerabilities in pkg:maven/org.apache.sshd/sshd-git

PACKAGE
Advisory Identifier: GHSA-mw4m-qhpg-j82m
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.sshd/sshd-git

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.sshd/sshd-git. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-mw4m-qhpg-j82m CVE-2026-48827 HIGH Apache MINA SSHD bundle sshd-git has a path traversal vulnerability

CVE-2026-48827 at a Glance

CVE Identifier CVE-2026-48827
GHSA Identifier GHSA-mw4m-qhpg-j82m
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Sshd git
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (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.

org.apache.sshd:sshd-git fixed: 2.18.0
<dependency>
    <groupId>org.apache.sshd</groupId>
    <artifactId>sshd-git</artifactId>
    <version>2.18.0</version>
</dependency>
org.apache.sshd:sshd-git fixed: 3.0.0-M4
<dependency>
    <groupId>org.apache.sshd</groupId>
    <artifactId>sshd-git</artifactId>
    <version>3.0.0-M4</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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. Applications are affected if they use org.apache.sshd:sshd-git. Applications not using sshd-git are not affected. Users are advised to upgrade affected applications to Apche MINA SSHD 2.18.0, which fixes the issue. The 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. Apache 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.

CVE-2026-48827 Affected Sshd git Versions

2 component(s)
Fixed Versions:
2.18.03.0.0-M4
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?
CVE-2026-48827 is a security vulnerability in Sshd git involving Apache MINA SSHD bundle sshd-git has a path traversal vulnerability under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Sshd git versions are affected?
Affected versions include releases prior to 2.18.0, 3.0.0-M4 across affected packages: org.apache.sshd:sshd-git.
What version fixes CVE-2026-48827?
Upgrading to 2.18.0, 3.0.0-M4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sshd-git affected?
Yes, org.apache.sshd:sshd-git is affected in releases prior to 2.18.0, 3.0.0-M4. Upgrade your dependency to 2.18.0, 3.0.0-M4 or later.
What is the CVSS score of CVE-2026-48827?
CVE-2026-48827 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2026-48827?
CVE-2026-48827 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (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.).
How can I check Maven dependencies for CVE-2026-48827?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.sshd'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}