cve.bz

CVE-2026-58624 apache mina sshd: Improper Input Validation

5.4 mediumEPSS 0.6%

Medium (5.4) in apache mina sshd. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-07-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-58624 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-58624?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-58624?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-58624 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-58624

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-58624](https://cve.bz/cve/badge/CVE-2026-58624.svg)](https://cve.bz/cve/CVE-2026-58624)

HTML:

<a href="https://cve.bz/cve/CVE-2026-58624"><img src="https://cve.bz/cve/badge/CVE-2026-58624.svg" alt="CVE-2026-58624"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache MINA SSHDfrom 2.0.0 through 2.18.0
Apache Software Foundation Apache MINA SSHDfrom 3.0.0-M1 through 3.0.0-M4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13libmina-sshd-javano fix listedDEBIAN-CVE-2026-58624
Debian14libmina-sshd-java2.19.0-1DEBIAN-CVE-2026-58624
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTSmina, mina2no fix listedUBUNTU-CVE-2026-58624
Ubuntu22.04:LTS, 24.04:LTSminano fix listedUBUNTU-CVE-2026-58624
Ubuntu26.10, Pro:22.04:LTS, Pro:24.04:LTS and 1 moremina2no fix listedUBUNTU-CVE-2026-58624
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreapache-sshd2.19.0-150200.5.16.1SUSE-SU-2026:3339-1
openSUSETumbleweedapache-sshd2.19.0-2.1openSUSE-SU-2026:11327-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A flaw was found in the sshd-git component of Apache MINA SSHD, specifically within its GitPgmCommandFactory. An authenticated SSH user could exploit improper input validation to execute arbitrary JGit commands, including those that can write files to arbitrary locations on the server, such as git archive with the --output option. This vulnerability only affects SSH servers that have the GitPgmCommandFactory explicitly configured; servers without this configuration are not affected.

Red Hat's mitigation

This vulnerability only affects Apache MINA SSHD servers that have the GitPgmCommandFactory configured. If your application does not use GitPgmCommandFactory, it is not affected. Removing or disabling the GitPgmCommandFactory configuration mitigates this issue.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-58624.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON