Apache MINA SSHD: Remote execution of JGit commands can write files on the server
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · Low
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache MINA SSHD | 2.0.0 – 2.18.0; 3.0.0-M1 – 3.0.0-M4 | — | No fix listed | CNA |
- Apache MINA SSHD VendorApache Affected 2.0.0 – 2.18.0; 3.0.0-M1 – 3.0.0-M4 Fixed in — No fix listed CNA
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:apache:mina_sshd:*:*:*:*:*:*:*:* | 2.0.0 to before 2.19.0 | Vulnerable | Apache |
| cpe:2.3:a:apache:mina_sshd:3.0.0:m1:*:*:*:*:*:* | 3.0.0 m1 | Vulnerable | Apache |
| cpe:2.3:a:apache:mina_sshd:3.0.0:m2:*:*:*:*:*:* | 3.0.0 m2 | Vulnerable | Apache |
| cpe:2.3:a:apache:mina_sshd:3.0.0:m3:*:*:*:*:*:* | 3.0.0 m3 | Vulnerable | Apache |
| cpe:2.3:a:apache:mina_sshd:3.0.0:m4:*:*:*:*:*:* | 3.0.0 m4 | Vulnerable | Apache |
- cpe:2.3:a:apache:mina_sshd:*:*:*:*:*:*:*:* Versions 2.0.0 to before 2.19.0 Vulnerable ·Apache
- cpe:2.3:a:apache:mina_sshd:3.0.0:m1:*:*:*:*:*:* Versions 3.0.0 m1 Vulnerable ·Apache
- cpe:2.3:a:apache:mina_sshd:3.0.0:m2:*:*:*:*:*:* Versions 3.0.0 m2 Vulnerable ·Apache
- cpe:2.3:a:apache:mina_sshd:3.0.0:m3:*:*:*:*:*:* Versions 3.0.0 m3 Vulnerable ·Apache
- cpe:2.3:a:apache:mina_sshd:3.0.0:m4:*:*:*:*:*:* Versions 3.0.0 m4 Vulnerable ·Apache
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-58624
- 2026-10-03 Alias added: GHSA-7229-w5mh-32hm
- 2026-10-25 EPSS moved to the 50th–90th percentile
References
More Apache Mina Sshd vulnerabilities
- TI-2019-04327 An issue was discovered in OpenSSH 7.9. CVSS 3.1MEDIUM 5.9
- TI-2026-40791 Apache MINA SSHD: Path traversal in SCP file reception CVSS 3.1HIGH 7.5
- TI-2026-40830 Apache MINA SSHD: SSH certificate options lack validations CVSS 3.1HIGH 7.3
- TI-2026-40829 Apache MINA SSHD: Path traversal in org.apache.sshd:sshd-git on Windows CVSS 3.1HIGH 7.1
- TI-2026-36095 Apache MINA SSHD: Path traversal in org.apache.sshd:sshd-git CVSS 3.1HIGH 7.1
- TI-2024-27935 Apache MINA SSHD: integrity check bypass CVSS 3.1MEDIUM 5.9
Sources
- CVE-2026-58624 · CVE Program
- CVE-2026-58624 · NVD
- FIRST EPSS
- GHSA-7229-w5mh-32hm · GitHub Advisory Database · CC BY 4.0
- CVE-2026-58624 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences