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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache MINA SSHD | 2.0.0 – ≤ 2.17.1, 3.0.0-M1 – ≤ 3.0.0-M3 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libmina-sshd-java | 2.19.0-1 | — |
| Debian 13 | libmina-sshd-java | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mina2 | No fix yet | — |
| Ubuntu 25.10 | mina2 | No fix yet | — |
| Ubuntu 24.04 LTS | mina | No fix yet | — |
| Ubuntu 22.04 LTS | mina | No fix yet | — |
| Ubuntu 20.04 LTS | mina +1 | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | mina +1 | No fix yet | — |
| Ubuntu 16.04 LTS | mina +1 | No fix yet | — |
| Ubuntu Pro 26.04 LTS | mina2 | No fix yet | — |
| Ubuntu Pro 24.04 LTS | mina2 | No fix yet | — |
| Ubuntu Pro 22.04 LTS | mina2 | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | apache-sshd | 2.18.0-150200.5.11.1 | SUSE-SU-2026:2472-1 |
| SLES 15 SP7 | jpgpj | 1.3-150200.5.3.1 | SUSE-SU-2026:2472-1 |
| SLES 15 SP6 | apache-sshd | 2.18.0-150200.5.11.1 | SUSE-SU-2026:2472-1 |
| SLES 15 SP6 | jpgpj | 1.3-150200.5.3.1 | SUSE-SU-2026:2472-1 |
| SLES 15 SP5 | apache-sshd | 2.18.0-150200.5.11.1 | SUSE-SU-2026:2472-1 |
| SLES 15 SP5 | jpgpj | 1.3-150200.5.3.1 | SUSE-SU-2026:2472-1 |
| SLES 15 SP4 | apache-sshd | 2.18.0-150200.5.11.1 | SUSE-SU-2026:2472-1 |
| SLES 15 SP4 | jpgpj | 1.3-150200.5.3.1 | SUSE-SU-2026:2472-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP6 | apache-sshd | 2.18.0-150200.5.11.1 | SUSE-SU-2026:2472-1 |
| SLES for SAP 15 SP6 | jpgpj | 1.3-150200.5.3.1 | SUSE-SU-2026:2472-1 |
| SLES for SAP 15 SP5 | apache-sshd | 2.18.0-150200.5.11.1 | SUSE-SU-2026:2472-1 |
| SLES for SAP 15 SP5 | jpgpj | 1.3-150200.5.3.1 | SUSE-SU-2026:2472-1 |
| SLES for SAP 15 SP4 | apache-sshd | 2.18.0-150200.5.11.1 | SUSE-SU-2026:2472-1 |
| SLES for SAP 15 SP4 | jpgpj | 1.3-150200.5.3.1 | SUSE-SU-2026:2472-1 |
| SLE HPC 15 SP5 | apache-sshd | 2.18.0-150200.5.11.1 | SUSE-SU-2026:2472-1 |
| SLE HPC 15 SP5 | jpgpj | 1.3-150200.5.3.1 | SUSE-SU-2026:2472-1 |
| SLE HPC 15 SP4 | apache-sshd | 2.18.0-150200.5.11.1 | SUSE-SU-2026:2472-1 |
| SLE HPC 15 SP4 | jpgpj | 1.3-150200.5.3.1 | SUSE-SU-2026:2472-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | apache-sshd | 2.18.0-1.1 | openSUSE-SU-2026:10919-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.sshd:sshd-git | < 2.18.0 | 2.18.0 | GHSA-mw4m-qhpg-j82m |
| Maven | org.apache.sshd:sshd-git | >= 3.0.0-M1, < 3.0.0-M4 | 3.0.0-M4 | GHSA-mw4m-qhpg-j82m |
Advisories 2
- SUSE-SU-2026:2472-1 Security update for apache-sshd, jpgpj SUSE / openSUSE Security Updates · Jun 20, 2026
- openSUSE-SU-2026:10919-1 apache-sshd-2.18.0-1.1 on GA media SUSE / openSUSE Security Updates · Jun 2, 2026
References
- https://lists.apache.org/thread/910kq9ghm6js0k1yhhbrdm9sf5tqq9c9 vendor-advisory