Improper Input Validation in Apache MINA SSHD's GitPgmCommandFactory
CVE-2026-58624

5.4MEDIUM

Key Information:

Vendor

Apache

Vendor
CVE Published:
20 July 2026

What is CVE-2026-58624?

A vulnerability exists in Apache MINA SSHD's GitPgmCommandFactory that allows authenticated users to execute arbitrary JGit commands on git repositories. This includes the potential for executing commands that can manipulate files on the server without proper restrictions. Although the GitPgmCommandFactory can be used to facilitate SSH access for executing git commands, if the server is not properly configured to limit the commands available, it poses a significant security risk. Recommended mitigation includes upgrading to Apache MINA SSHD version 2.19.0 or 3.0.0-M5, which implements a command whitelist to restrict operations and improve security.

Affected Version(s)

Apache MINA SSHD 2.0.0 <= 2.18.0

Apache MINA SSHD 3.0.0-M1 <= 3.0.0-M4

References

CVSS V3.1

Score:
5.4
Severity:
MEDIUM
Confidentiality:
None
Integrity:
Low
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Unbbal
.