CVE-2026-58624
published medium CVSS 3.1 · 5.4Apache MINA SSHD: Remote execution of JGit commands can write files on the server
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | org.apache.sshd:sshd-gitApache MINA SSHD · 2.0.0 through 2.18.0 · 3.0.0-M1 through 3.0.0-M4 · Other versions: unaffected | Affected | Not stated | apache |
| SUSE / openSUSE | SLE-15-SP4 | apache-sshdnoarch | Advisory build | 2.19.0-150200.5.16.1 | SUSE-SU-2026:3339-1 |
| SUSE / openSUSE | SLE-15-SP5 | apache-sshdnoarch | Advisory build | 2.19.0-150200.5.16.1 | SUSE-SU-2026:3339-1 |
| SUSE / openSUSE | SLE-15-SP6 | apache-sshdnoarch | Advisory build | 2.19.0-150200.5.16.1 | SUSE-SU-2026:3339-1 |
| SUSE / openSUSE | SLE-15-SP7 | apache-sshdnoarch | Advisory build | 2.19.0-150200.5.16.1 | SUSE-SU-2026:3339-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-sshdaarch64 | Advisory build | 2.19.0-2.1 | OPENSUSE-SU-2026:11327-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-sshdppc64le | Advisory build | 2.19.0-2.1 | OPENSUSE-SU-2026:11327-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-sshds390x | Advisory build | 2.19.0-2.1 | OPENSUSE-SU-2026:11327-1 |
Show 5 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-sshdx86_64 | Advisory build | 2.19.0-2.1 | OPENSUSE-SU-2026:11327-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-sshd-javadocaarch64 | Advisory build | 2.19.0-2.1 | OPENSUSE-SU-2026:11327-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-sshd-javadocppc64le | Advisory build | 2.19.0-2.1 | OPENSUSE-SU-2026:11327-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-sshd-javadocs390x | Advisory build | 2.19.0-2.1 | OPENSUSE-SU-2026:11327-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-sshd-javadocx86_64 | Advisory build | 2.19.0-2.1 | OPENSUSE-SU-2026:11327-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- apache · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache MINA SSHD | 2.0.0 through 2.18.0 (affected · maven)3.0.0-M1 through 3.0.0-M4 (affected · maven)Default: unaffected | apache · cna |
Weaknesses
1- CWE-20 CWE-20 Improper Input Validation
References
2Provider assertions
3apache · cna
Apache MINA SSHD: Remote execution of JGit commands can write files on the server
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 496d39fa4032199079542dd3d1eb0f5205de21672ac019c92ef97672a204da98
- Ingested
- 23 Sep 2026, 09:22:29 UTC
- Source record
- Official CVE record