CVE-2026-48827 Apache MINA SSHD: Path traversal in org.apache.sshd:sshd-git

High 7.1 Published Updated

Authenticated users can access git repositories outside the configured root directory due to missing path validation in Apache MINA SSHD's git module.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-48827?

CVE-2026-48827 is a high-severity path traversal vulnerability in Apache MINA SSHD, published on 1 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

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

Weakness: CWE-22

Which versions are affected by CVE-2026-48827?

4 open source packages ship an affected version, including org.apache.sshd:sshd-git. It affects 1 product.

PackageAffectedFixed in
org.apache.sshd:sshd-git MavenAll versions2.18.0
org.apache.sshd:sshd-git MavenAll versions2.18.0
org.apache.sshd:sshd-git MavenFrom 3.0.0-M13.0.0-M4
org.apache.sshd:sshd-git MavenFrom 3.0.0-M13.0.0-M4

Products include Apache Mina Sshd.

How do I fix CVE-2026-48827?

Upgrade org.apache.sshd:sshd-git to a fixed version for your release line: 2.18.0 or 3.0.0-M4.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-48827 being exploited?

There is no known exploitation of CVE-2026-48827 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-48827, GHSA-mw4m-qhpg-j82m, UBUNTU-CVE-2026-48827.

Is CVE-2026-48827 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free