CVE-2026-58624: Apache MINA SSHD - Broken Access Control
- Cve: CVE-2026-58624
- Name: Apache MINA SSHD - Broken Access Control
- Description: 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.
- Impact: Authenticated SSH users can write files arbitrarily on the server, potentially leading to data tampering or system compromise.
- Remediation: Upgrade to Apache MINA SSHD 2.19.0 or 3.0.0-M5 or later.
- Vulnerability type: broken_access_control
- Vulnerability impact: data_tampering
- Requirement type: logged_in
- Requirements: Attacker must be authenticated via SSH and GitPgmCommandFactory must be configured
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
- Epss score: 0.00635
- Epss percentile: 0.51404
- Assignee: [email protected]
- Published at: 2026-07-20T21:16:49Z
- Age in days: 127
- Modified at: 2026-10-24T20:10:00Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-58624
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
References
| Url | Source | Tags |
|---|---|---|
| https://lists.apache.org/thread/7c3cry6pdy6hj1q0f28rc72x4o4tlyjo | nvd | Vendor Advisory |
| http://www.openwall.com/lists/oss-security/2026/07/20/18 | nvd | Mailing List, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| apache:mina_sshd | = 3.0.0 m4; = 3.0.0 m1; = 3.0.0 m2; = 3.0.0 m3; >= 2.0.0, < 2.19.0 | no | nvd | /v1/products/apache/mina_sshd |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts