Description
Improper input validation in sshd-git in Apache MINA SSHD, versions up to 2.19.0 and 3.0.0-M1 to 3.0.0-M5. Apache
MINA SSHD is a Java library for client-side and server-side SSH.




Component org.apache.sshd:sshd-git provides though class GitPgmCommandFactory a way to configure an Apache MINA SSHD server such
that authenticated SSH clients can remotely execute git commands via the JGit library
on git repositories stored on the server. In CVE-2026-58624 this mechanism was restricted to only a few git commands, including "git archive" without "--output" or "-o" options such that the resulting archive would not be written on the server but instead sent back to the client over the SSH connection.




The fix done for CVE-2026-58624 was insufficient as it missed removing the single-argument "-o=file.zip" version of the command parameter from the "archive" command.




Users are recommended to upgrade to version 2.20.0 or 3.0.0-M6, which fix this issue.
Published: 2026-09-30
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Remote file write via JGit archive
Action: Patch Immediately
AI Analysis

Impact

Apache MINA SSHD contains an improper input validation flaw in the sshd-git component that allows authenticated SSH users to run the git archive command with the single‑argument '-o=file.zip'. This causes the JGit library to create or overwrite a ZIP file directly on the server filesystem. The ability to write arbitrary files from a remote client can be leveraged to deploy malicious binaries, alter configuration files, or otherwise compromise the integrity of the server. The weakness is a classic case of CWE‑20: Improper Input Validation.

Affected Systems

Affected products are Apache Software Foundation's Apache MINA SSHD, specifically versions up to and including 2.19.0 and the milestone releases 3.0.0‑M1 through 3.0.0‑M5. The vulnerability resides in the sshd-git module which is used to enable remote git command execution on a server.

Risk and Exploitability

The CVSS base score of 6.5 indicates a moderate severity. The EPSS score is not available, suggesting a lack of recent exploitation data, and the vulnerability is not listed in the CISA KEV catalog. An attacker must be able to authenticate to the SSH server and have permissions to run git commands on an existing repository; there are no known public exploits, so the risk level remains moderate but not negligible.

Generated by OpenCVE AI on September 30, 2026 at 11:49 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache MINA SSHD to 2.20.0 or 3.0.0-M6 or later, which removes the vulnerable command handling.
  • Restrict the sshd-git GitPgmCommandFactory to limit or remove the use of git archive commands until the patch is deployed.
  • Ensure that only trusted users have SSH and git repository access and monitor repository activity for anomalous archive operations.

Generated by OpenCVE AI on September 30, 2026 at 11:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 30 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 30 Sep 2026 11:45:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache mina Sshd
Vendors & Products Apache
Apache mina Sshd

Wed, 30 Sep 2026 10:00:00 +0000

Type Values Removed Values Added
Description Improper input validation in sshd-git in Apache MINA SSHD, versions up to 2.19.0 and 3.0.0-M1 to 3.0.0-M5. Apache MINA SSHD is a Java library for client-side and server-side SSH. Component org.apache.sshd:sshd-git provides though class GitPgmCommandFactory a way to configure an Apache MINA SSHD server such that authenticated SSH clients can remotely execute git commands via the JGit library on git repositories stored on the server. In CVE-2026-58624 this mechanism was restricted to only a few git commands, including "git archive" without "--output" or "-o" options such that the resulting archive would not be written on the server but instead sent back to the client over the SSH connection. The fix done for CVE-2026-58624 was insufficient as it missed removing the single-argument "-o=file.zip" version of the command parameter from the "archive" command. Users are recommended to upgrade to version 2.20.0 or 3.0.0-M6, which fix this issue.
Title Apache MINA SSHD: Remote execution of JGit "archive -o=file.zip" can write file on the server
Weaknesses CWE-20
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'}


Subscriptions

Apache Mina Sshd
cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-09-30T14:30:58.296Z

Reserved: 2026-09-19T12:55:41.059Z

Link: CVE-2026-93995

cve-icon Vulnrichment

Updated: 2026-09-30T14:30:55.366Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-30T10:17:17.597

Modified: 2026-09-30T16:13:13.493

Link: CVE-2026-93995

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-30T12:00:16Z

Weaknesses
  • CWE-20

    Improper Input Validation