Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-93995 Overview
CVE-2026-93995 is an improper input validation vulnerability [CWE-20] in the sshd-git component of Apache MINA SSHD. The flaw affects versions up to 2.19.0 and 3.0.0-M1 through 3.0.0-M5. Apache MINA SSHD is a Java library that implements client-side and server-side SSH functionality.
The issue represents an incomplete fix for the earlier CVE-2026-58624. Authenticated SSH clients can abuse the git archive command to write arbitrary files on the server through the single-argument -o=file.zip parameter form. This parameter form was not filtered by the prior remediation.
Critical Impact
Authenticated attackers can write arbitrary archive files to the server file system through the git archive command, compromising integrity of git repositories and adjacent files.
Affected Products
- Apache MINA SSHD versions up to and including 2.19.0
- Apache MINA SSHD versions 3.0.0-M1 through 3.0.0-M5
- Deployments using the org.apache.sshd:sshd-git component with GitPgmCommandFactory
Discovery Timeline
- 2026-09-30 - CVE-2026-93995 published to the National Vulnerability Database (NVD)
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-93995
Vulnerability Analysis
The sshd-git module exposes git operations over SSH by wiring GitPgmCommandFactory into an Apache MINA SSHD server. Authenticated clients can invoke a restricted set of git commands executed through the JGit library against repositories hosted on the server.
After CVE-2026-58624, maintainers narrowed the allowed command set. The git archive command remained available, provided the client did not supply --output or -o options that would cause the archive to be written to the server file system rather than streamed back to the client.
The remediation filtered the two-token option forms but overlooked the single-token -o=file.zip variant. An authenticated attacker can therefore instruct the server to write the generated archive to an attacker-controlled path on disk. This subverts the intended behavior of returning archive content only to the SSH client.
Root Cause
The root cause is incomplete input validation of git command arguments passed through GitPgmCommandFactory. The parameter parser handled -o file.zip and --output file.zip forms but did not recognize -o=file.zip as functionally equivalent. JGit still honors the single-argument form and writes the archive to the specified path.
Attack Vector
An attacker requires valid SSH credentials to a server that exposes the vulnerable sshd-git command factory. The attacker connects over SSH and issues a git archive invocation containing the -o=<path> option. JGit produces the archive and writes it to the specified server-side location, controlled entirely by the attacker.
The vulnerability manifests in the git command argument parser within sshd-git. See the Apache Mailing List Thread for maintainer discussion.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-93995
Indicators of Compromise
- SSH session logs recording git archive invocations that include the -o= argument form from authenticated remote clients.
- Unexpected archive files (.zip, .tar, .tar.gz) appearing in repository directories or writable paths on the SSHD host.
- File integrity monitoring alerts on git repository directories owned by the SSHD service account.
Detection Strategies
- Inspect Apache MINA SSHD access and command logs for git commands whose arguments match the pattern -o= or contain suspicious output paths.
- Correlate authenticated SSH sessions with new file creation events in git-served directories using endpoint or host telemetry.
- Audit deployed dependency versions of org.apache.sshd:sshd-git in build manifests and running JVMs to identify vulnerable installations.
Monitoring Recommendations
- Enable verbose command logging in the SSHD process to capture full argument vectors passed to GitPgmCommandFactory.
- Forward SSHD and file system audit events to a central log store for correlation and retention.
- Alert on process arguments containing git archive combined with -o= on hosts running Apache MINA SSHD.
How to Mitigate CVE-2026-93995
Immediate Actions Required
- Upgrade Apache MINA SSHD to version 2.20.0 or 3.0.0-M6, which remove the -o=file.zip form from the accepted git archive arguments.
- Inventory all applications embedding org.apache.sshd:sshd-git and identify those exposing GitPgmCommandFactory to authenticated users.
- Rotate credentials for accounts that had SSH access to affected servers if compromise is suspected.
Patch Information
Upgrade org.apache.sshd:sshd-git to 2.20.0 or 3.0.0-M6. These releases extend the argument filter to reject the single-token -o=<path> form of the git archive output option. Refer to the Apache Mailing List Thread for the maintainer advisory.
Workarounds
- Remove GitPgmCommandFactory from the SSHD server configuration if remote git command execution is not required.
- Restrict SSH access to the server to trusted operators only, reducing the population of authenticated principals that can invoke git commands.
- Run the SSHD process under a least-privileged service account with write access limited to specific repository directories.
# Verify installed Apache MINA SSHD version in a Maven project
mvn dependency:tree -Dincludes=org.apache.sshd:sshd-git
# Update the dependency in pom.xml to the fixed version
# <dependency>
# <groupId>org.apache.sshd</groupId>
# <artifactId>sshd-git</artifactId>
# <version>2.20.0</version>
# </dependency>
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

