CVE-2026-93995Apache MINA SSHD: Remote execution of JGit "archive -o=file.zip" can write file on the…
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | mina2 | Fix pending | UBUNTU-CVE-2026-93995 | |
| Ubuntu 26.04 | mina2 | Fix pending | UBUNTU-CVE-2026-93995 | |
| Ubuntu 24.04 | mina | Under investigation | UBUNTU-CVE-2026-93995 | |
| Ubuntu 24.04 | mina2 | Fix pending | UBUNTU-CVE-2026-93995 | |
| Ubuntu 22.04 | mina | Under investigation | UBUNTU-CVE-2026-93995 | |
| Ubuntu 22.04 | mina2 | Fix pending | UBUNTU-CVE-2026-93995 | |
| Ubuntu 20.04 | mina | Fix pending | UBUNTU-CVE-2026-93995 | |
| Ubuntu 20.04 | mina2 | Fix pending | UBUNTU-CVE-2026-93995 | |
| Ubuntu 18.04 | mina | Fix pending | UBUNTU-CVE-2026-93995 | |
| Ubuntu 18.04 | mina2 | Fix pending | UBUNTU-CVE-2026-93995 | |
| Ubuntu 16.04 | mina | Fix pending | UBUNTU-CVE-2026-93995 | |
| Ubuntu 16.04 | mina2 | Fix pending | UBUNTU-CVE-2026-93995 | |
| Debian 14 | libmina-sshd-java | Fixed | 2.20.1-1 | DEBIAN-CVE-2026-93995 |
| Debian 13 | libmina-sshd-java | Fix pending | DEBIAN-CVE-2026-93995 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache MINA SSHD: affected: before 2.20.0, 3.0.0-M1 to before 3.0.0-M6; fixed in
2.20.0,3.0.0-M6
Vendor advisories:
- https://lists.apache.org/thread.html/k13ox2xlry38h9gh6rhmh1d9zs345clk (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.