Arbitrary Argument Injection Affecting org.apache.sshd:sshd-git package, versions [2.0.0, 2.19.0)[3.0.0-M1, 3.0.0-M5)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.64% (48th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGAPACHESSHD-19352512
  • published27 Aug 2026
  • disclosed20 Jul 2026
  • creditUnbbal

Introduced: 20 Jul 2026

CVE-2026-58624  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade org.apache.sshd:sshd-git to version 2.19.0, 3.0.0-M5 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Argument Injection through GitPgmCommand and EmbeddedCommandRunner in the SSH Git command execution path. An attacker who authenticates to an SSH server configured with GitPgmCommandFactory can run arbitrary JGit subcommands by sending a git --git-dir <repo> <command> ... request, including commands that write files on the server such as git archive --output. This lets the attacker create or overwrite files in server-accessible directories, breaking the intended isolation for repositories hosted over SSH and exposing server-side data or filesystem integrity to misuse.

CVSS Base Scores

version 4.0
version 3.1