Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-58624: CWE-20 Improper Input Validation in Apache Software Foundation Apache MINA SSHD

0
Medium
VulnerabilityCVE-2026-58624cvecve-2026-58624cwe-20
Published: 07/20/2026 (07/20/2026, 20:27:39 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache MINA SSHD

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.

CVSS v3.1

Score 5.4medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

Affected software

Apache Software Foundation/org.apache.sshd:sshd-git
pkg:maven/Apache Software Foundation/org.apache.sshd:sshd-git
Affected versions
>=2.0.0 <=2.18.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/20/2026, 21:12:43 UTC

Technical Analysis

CVE-2026-58624 describes an improper input validation vulnerability (CWE-20) in the GitPgmCommandFactory of Apache MINA SSHD, a Java SSH library. The vulnerable component allows authenticated SSH clients to execute any JGit command remotely, including commands capable of writing files to arbitrary locations on the server filesystem. This occurs because the factory did not restrict the set of executable commands, enabling potentially unsafe operations like 'git archive' with an --output parameter. The issue affects Apache MINA SSHD versions 2.0.0, 3.0.0-M1, and all versions from 2.0.0 through 2.18.0. The vulnerability is fixed in versions 2.19.0 and 3.0.0-M5 by enforcing a whitelist of safe commands and ignoring the --output argument for 'git archive', ensuring archives are sent only through the SSH channel to the client. Servers not configured with GitPgmCommandFactory are not vulnerable.

Potential Impact

An authenticated SSH user on a vulnerable Apache MINA SSHD server configured with GitPgmCommandFactory can execute arbitrary JGit commands, including those that write files to arbitrary locations on the server. This can lead to unauthorized modification of server files and potential denial of service. The CVSS score of 5.4 (medium) reflects limited impact on confidentiality but notable integrity and availability impacts.

Mitigation Recommendations

Upgrade affected Apache MINA SSHD servers to version 2.19.0 or 3.0.0-M5 or later, where this vulnerability is fixed by restricting executable commands to a safe whitelist and ignoring unsafe command arguments. If GitPgmCommandFactory is not used on the server, no action is required. Patch status is not explicitly stated but recommended versions indicate an official fix is available.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2026-07-01T19:10:57.224Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a5e8bb32a4a8d5989b8f9b9

Added to database: 07/20/2026, 20:57:23 UTC

Last enriched: 07/20/2026, 21:12:43 UTC

Last updated: 07/21/2026, 03:44:14 UTC

Views: 19

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses