Apache · Apache Mina Sshd · CVE-2026-58624
**Name of the Vulnerable Software and Affected Versions**
Apache MINA SSHD versions prior to 2.19.0
Apache MINA SSHD versions prior to 3.0.0-M5
**Description**
Improper input validation in the `sshd-git` component of Apache MINA SSHD, specifically within the `GitPgmCommandFactory`, allows an authenticated SSH user to execute arbitrary JGit commands. This can lead to unauthorized file writes at arbitrary locations on the server, for example, by using the `git archive` command with the `--output` option.
**Recommendations**
Upgrade to version 2.19.0.
Upgrade to version 3.0.0-M5.
As a temporary mitigation, avoid configuring the `GitPgmCommandFactory` on the server.