CVE-2026-58624
Apache MINA SSHD: Remote execution of JGit commands can write files on the server
Improper input validation in sshd-git in Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH.
Component org.apache.sshd:sshd-git provides though its GitPgmCommandFactory a way to configure an Apache MINA SSHD server such that SSH clients can remotely execute git commands via the JGit library on git repositories stored on the server.
This GitPgmCommandFactory allowed a user authenticated via SSH to run any JGit command available, including commands that could write files at arbitrary places such as git archive with the --output option.
Affected are SSH servers implemented with Apache MINA SSHD and using the GitPgmCommandFactory. If the GitPgmCommandFactory is not configured on the server, the server is not affected.
It is recommended to upgrade affected servers to Apache MINA SSHD 2.19.0 or 3.0.0-M5, which fix this issue.
The issue is fixed by restricting the available commands to a small whitelist of uncritical commands (such as git log). git archive is also allowed, but its --output argument is ignored and the archive is always sent through the SSH channel to the client.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
5.4
Apache MINA SSHD: Remote execution of JGit commands can write files on the server
Improper input validation in sshd-git in Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH.
Component org.apache.sshd:sshd-git provides though its GitPgmCommandFactory a way to configure an Apache MINA SSHD server such that SSH clients can remotely execute git commands via the JGit library on git repositories stored on the server.
This GitPgmCommandFactory allowed a user authenticated via SSH to run any JGit command available, including commands that could write files at arbitrary places such as git archive with the --output option.
Affected are SSH servers implemented with Apache MINA SSHD and using the GitPgmCommandFactory. If the GitPgmCommandFactory is not configured on the server, the server is not affected.
It is recommended to upgrade affected servers to Apache MINA SSHD 2.19.0 or 3.0.0-M5, which fix this issue.
The issue is fixed by restricting the available commands to a small whitelist of uncritical commands (such as git log). git archive is also allowed, but its --output argument is ignored and the archive is always sent through the SSH channel to the client.
- Record
CVE-2026-58624- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L - Weakness
- CWE-20
- Updated
- 2026-11-02
EUVDEUVD-2026-46101
5.4
Improper input validation in sshd-git in Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH.
Component org.apache.sshd:sshd-git provides though its GitPgmCommandFactory a way to configure an Apache MINA SSHD server such that SSH clients can remotely execute git commands via the JGit library on git repositories stored on the server.
This GitPgmCommandFactory allowed a user authenticated via SSH to run any JGit command available, including commands that could write files at arbitrary places such as git archive with the --output option.
Affected are SSH servers implemented with Apache MINA SSHD and using the GitPgmCommandFactory. If the GitPgmCommandFactory is not configured on the server, the server is not affected.
It is recommended to upgrade affected servers to Apache MINA SSHD 2.19.0 or 3.0.0-M5, which fix this issue.
The issue is fixed by restricting the available commands to a small whitelist of uncritical commands (such as git log). git archive is also allowed, but its --output argument is ignored and the archive is always sent through the SSH channel to the client.
- Record
EUVD-2026-46101- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-7229-w5mh-32hm
5.4
Improper input validation in sshd-git in Apache MINA SSHD. Apache MINA SSHD is a Java library for...
Improper input validation in sshd-git in Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH.
Component org.apache.sshd:sshd-git provides though its GitPgmCommandFactory a way to configure an Apache MINA SSHD server such that SSH clients can remotely execute git commands via the JGit library on git repositories stored on the server.
This GitPgmCommandFactory allowed a user authenticated via SSH to run any JGit command available, including commands that could write files at arbitrary places such as git archive with the --output option.
Affected are SSH servers implemented with Apache MINA SSHD and using the GitPgmCommandFactory. If the GitPgmCommandFactory is not configured on the server, the server is not affected.
It is recommended to upgrade affected servers to Apache MINA SSHD 2.19.0 or 3.0.0-M5, which fix this issue.
The issue is fixed by restricting the available commands to a small whitelist of uncritical commands (such as git log). git archive is also allowed, but its --output argument is ignored and the archive is always sent through the SSH channel to the client.
- Record
GHSA-7229-w5mh-32hm- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L - Weakness
- CWE-20
- Updated
- 2026-11-02
NVD
5.4
Improper input validation in sshd-git in Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH.
Component org.apache.sshd:sshd-git provides though its GitPgmCommandFactory a way to configure an Apache MINA SSHD server such that SSH clients can remotely execute git commands via the JGit library on git repositories stored on the server.
This GitPgmCommandFactory allowed a user authenticated via SSH to run any JGit command available, including commands that could write files at arbitrary places such as git archive with the --output option.
Affected are SSH servers implemented with Apache MINA SSHD and using the GitPgmCommandFactory. If the GitPgmCommandFactory is not configured on the server, the server is not affected.
It is recommended to upgrade affected servers to Apache MINA SSHD 2.19.0 or 3.0.0-M5, which fix this issue.
The issue is fixed by restricting the available commands to a small whitelist of uncritical commands (such as git log). git archive is also allowed, but its --output argument is ignored and the archive is always sent through the SSH channel to the client.
- Record
CVE-2026-58624- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L - Weakness
- CWE-20
- Updated
- 2026-11-02
OSV
5.4
Apache MINA SSHD: Remote execution of JGit commands can write files on the server
Improper input validation in sshd-git in Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH.
Component org.apache.sshd:sshd-git provides though its GitPgmCommandFactory a way to configure an Apache MINA SSHD server such that SSH clients can remotely execute git commands via the JGit library on git repositories stored on the server.
This GitPgmCommandFactory allowed a user authenticated via SSH to run any JGit command available, including commands that could write files at arbitrary places such as git archive with the --output option.
Affected are SSH servers implemented with Apache MINA SSHD and using the GitPgmCommandFactory. If the GitPgmCommandFactory is not configured on the server, the server is not affected.
It is recommended to upgrade affected servers to Apache MINA SSHD 2.19.0 or 3.0.0-M5, which fix this issue.
The issue is fixed by restricting the available commands to a small whitelist of uncritical commands (such as git log). git archive is also allowed, but its --output argument is ignored and the archive is always sent through the SSH channel to the client.
- Record
CVE-2026-58624- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L - Weakness
- CWE-20
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-58624
5.4
Improper input validation in sshd-git in Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH. Component org.apache.sshd:sshd-git provides though its GitPgmCommandFactory a way to configure an Apache MINA SSHD server such that SSH clients can remotely execute git commands via the JGit library on git repositories stored on the server. This GitPgmCommandFactory allowed a user authenticated via SSH to run any JGit command available, including commands that could write files at arbitrary places such as git archive with the --output option. Affected are SSH servers implemented with Apache MINA SSHD and using the GitPgmCommandFactory. If the GitPgmCommandFactory is not configured on the server, the server is not affected. It is recommended to upgrade affected servers to Apache MINA SSHD 2.19.0 or 3.0.0-M5, which fix this issue. The issue is fixed by restricting the available commands to a small whitelist of uncritical commands (such as git log). git archive is also allowed, but its --output argument is ignored and the archive is always sent through the SSH channel to the client.
- Record
DEBIAN-CVE-2026-58624- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-58624
5.4
Improper input validation in sshd-git in Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH. Component org.apache.sshd:sshd-git provides though its GitPgmCommandFactory a way to configure an Apache MINA SSHD server such that SSH clients can remotely execute git commands via the JGit library on git repositories stored on the server. This GitPgmCommandFactory allowed a user authenticated via SSH to run any JGit command available, including commands that could write files at arbitrary places such as git archive with the --output option. Affected are SSH servers implemented with Apache MINA SSHD and using the GitPgmCommandFactory. If the GitPgmCommandFactory is not configured on the server, the server is not affected. It is recommended to upgrade affected servers to Apache MINA SSHD 2.19.0 or 3.0.0-M5, which fix this issue. The issue is fixed by restricting the available commands to a small whitelist of uncritical commands (such as git log). git archive is also allowed, but its --output argument is ignored and the archive is always sent through the SSH channel to the client.
- Record
UBUNTU-CVE-2026-58624- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L - Updated
- 2026-11-02
OSVopenSUSE-SU-2026:11327-1 No score
apache-sshd-2.19.0-2.1 on GA media
These are all security issues fixed in the apache-sshd-2.19.0-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:11327-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:3339-1 No score
Security update for apache-sshd
This update for apache-sshd fixes the following issues:
Update to upstream version 2.19.0.
Security issues fixed:
- CVE-2026-56452: remote users can use SCP to send filenames that lead to arbitrary file writes due to a path traversal
issue in the
sshd-scpcomponent of Apache MINA SSHD. (bsc#1272158). - CVE-2026-56623: remote users can obtain access to git repositories outside of the configured server-side root
directory on Windows systems due to path traversal issue in
org.apache.sshd:sshd-git(bsc#1271993). - CVE-2026-56624: users can authenticate with certificates containing the
force-commandoption but still execute other commands due to improper validation of certificate options in Apache MINA SSHD (bsc#1271992). - CVE-2026-58624: remote execution of JGit commands can lead to arbitrary file writes due to improper input validation
in
sshd-gitof Apache MINA SSHD (bsc#1271991).
Other updates and bugfixes:
- Version 2.19.0:
- Bug Fixes
- GH-899 Fix ProcessShellFactory on Linux.
- GH-902 Fix client-side handling of sk-* public key signatures (also in the agent interfaces).
- Limit size of decompressed SSH packets.
- Improve checking SSH user certificates in public-key authentication.
- Improve handling of repository paths in sshd-git on Windows.
- Validate file names in SCP.
- Escape newlines in filenames in the SCP protocol.
- Restrict JGit commands accessible via GitPgmCommandFactory in sshd-git.
- Bug Fixes
- Record
SUSE-SU-2026:3339-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libmina-sshd-javaDebian:13 |
All versions, plus listed versions 2.13.2-22.13.2-3 |
None known |
libmina-sshd-javaDebian:14 |
All versions, plus listed versions 2.13.2-22.13.2-3 |
None known |
apache-sshdSUSE:Linux Enterprise Module for Development Tools 15 SP7 From an advisory covering 4 CVEs |
before 2.19.0-150200.5.16.1 | 2.19.0-150200.5.16.1 |
apache-sshdSUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS From an advisory covering 4 CVEs |
before 2.19.0-150200.5.16.1 | 2.19.0-150200.5.16.1 |
apache-sshdSUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS From an advisory covering 4 CVEs |
before 2.19.0-150200.5.16.1 | 2.19.0-150200.5.16.1 |
apache-sshdSUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS From an advisory covering 4 CVEs |
before 2.19.0-150200.5.16.1 | 2.19.0-150200.5.16.1 |
apache-sshdSUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS From an advisory covering 4 CVEs |
before 2.19.0-150200.5.16.1 | 2.19.0-150200.5.16.1 |
apache-sshdSUSE:Linux Enterprise Server 15 SP4-LTSS From an advisory covering 4 CVEs |
before 2.19.0-150200.5.16.1 | 2.19.0-150200.5.16.1 |
apache-sshdSUSE:Linux Enterprise Server 15 SP5-LTSS From an advisory covering 4 CVEs |
before 2.19.0-150200.5.16.1 | 2.19.0-150200.5.16.1 |
apache-sshdSUSE:Linux Enterprise Server 15 SP6-LTSS From an advisory covering 4 CVEs |
before 2.19.0-150200.5.16.1 | 2.19.0-150200.5.16.1 |
Show 16 moreShow less
| Package | Affected | Fixed |
|---|---|---|
apache-sshdSUSE:Linux Enterprise Server for SAP Applications 15 SP4 From an advisory covering 4 CVEs |
before 2.19.0-150200.5.16.1 | 2.19.0-150200.5.16.1 |
apache-sshdSUSE:Linux Enterprise Server for SAP Applications 15 SP5 From an advisory covering 4 CVEs |
before 2.19.0-150200.5.16.1 | 2.19.0-150200.5.16.1 |
apache-sshdSUSE:Linux Enterprise Server for SAP Applications 15 SP6 From an advisory covering 4 CVEs |
before 2.19.0-150200.5.16.1 | 2.19.0-150200.5.16.1 |
minaUbuntu:16.04:LTS |
All versions, plus listed versions 1.1.7.dfsg-11 |
None known |
mina2Ubuntu:16.04:LTS |
All versions, plus listed versions 2.0.7+dfsg-22.0.9-12.0.9-2 |
None known |
minaUbuntu:18.04:LTS |
All versions, plus listed versions 1.1.7.dfsg-111.1.7.dfsg-12 |
None known |
mina2Ubuntu:18.04:LTS |
All versions, plus listed versions 2.0.16-2 |
None known |
minaUbuntu:20.04:LTS |
All versions, plus listed versions 1.1.7.dfsg-13 |
None known |
mina2Ubuntu:20.04:LTS |
All versions, plus listed versions 2.0.19-2 |
None known |
minaUbuntu:22.04:LTS |
All versions, plus listed versions 1.1.7.dfsg-13 |
None known |
mina2Ubuntu:Pro:22.04:LTS |
All versions, plus listed versions 2.1.4-22.1.5-12.1.5-1ubuntu0.1~esm1 |
None known |
minaUbuntu:24.04:LTS |
All versions, plus listed versions 1.1.7.dfsg-131.1.7.dfsg-13ubuntu1 |
None known |
mina2Ubuntu:Pro:24.04:LTS |
All versions, plus listed versions 2.2.1-32.2.1-3ubuntu0.1~esm1 |
None known |
mina2Ubuntu:26.10 |
All versions, plus listed versions 2.2.1-42.2.1-4ubuntu12.2.9-1 |
None known |
mina2Ubuntu:Pro:26.04:LTS |
All versions, plus listed versions 2.2.1-42.2.1-4ubuntu0.1~esm1 |
None known |
apache-sshdopenSUSE:Tumbleweed From an advisory covering 4 CVEs |
before 2.19.0-2.1 | 2.19.0-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-58624 is a medium vulnerability (CVSS 5.4) in Apache Mina Sshd, published July 20, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.64%, the 50th percentile. No source names a fixed version.
References
lists.apache.org/thread/7c3cry6pdy6hj1q0f28rc72x4o4tlyjo
openwall.com/lists/oss-security/2026/07/20/18
nvd.nist.gov/vuln/detail/CVE-2026-58624
github.com/advisories/GHSA-7229-w5mh-32hm
repo.maven.apache.org/maven2
github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58624.json
Show 12 moreShow less
security-tracker.debian.org/tracker/CVE-2026-58624
suse.com/support/update/announcement/2026/suse-su-20263339-1
bugzilla.suse.com/1271991
bugzilla.suse.com/1271992
bugzilla.suse.com/1271993
bugzilla.suse.com/1272158
suse.com/security/cve/CVE-2026-56452
suse.com/security/cve/CVE-2026-56623
suse.com/security/cve/CVE-2026-56624
suse.com/security/cve/CVE-2026-58624
ubuntu.com/security/CVE-2026-58624
cve.org/CVERecord?id=CVE-2026-58624