CVE-2026-58624 Details
Description
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.
A vulnerability exists in the Apache MINA SSHD Git component (sshd-git) versions 2.0.0 through 2.18.0 and 3.0.0-M1 through 3.0.0-M4. This vulnerability arises from improper input validation, allowing authenticated SSH users to execute any JGit command on Git repositories stored on the server. This includes commands that can write files to arbitrary locations, such as 'git archive' with the '--output' option. The issue affects servers using the GitPgmCommandFactory to enable remote execution of Git commands via SSH. Servers not configured with this factory are not vulnerable.
Users are advised to upgrade to Apache MINA SSHD versions 2.19.0 or 3.0.0-M5. After upgrading, the GitPgmCommandFactory should be configured to restrict available commands to a whitelist of uncritical options, such as 'git log'. 'git archive' can still be used, but its '--output' argument will be ignored, with the archive sent through the SSH channel to the client.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2026/07/20/18 | CVE | Mailing ListThird Party Advisory |
| https://lists.apache.org/thread/7c3cry6pdy6hj1q0f28rc72x4o4tlyjo | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apache mina sshd | >= 2.0.0, < 2.19.0 3.0.0 m1 3.0.0 m2 3.0.0 m3 3.0.0 m4 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 27, 2026 | Initial Analysis | [email protected] |
| Jul 21, 2026 | CVE Modified | CISA-ADP |
| Jul 20, 2026 | CVE Modified | CVE |
| Jul 20, 2026 | New CVE Received | [email protected] |