Every CVE Search/ Get API key

CVE-2026-58624

Apache MINA SSHD: Remote execution of JGit commands can write files on the server

5.4 Medium

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
Low
Availability
Low

Exploit likelihood

0.64%Up 0.4 points since Jul 21, 2026
90%50%10%1%

What each source reports

CVE List Score used 5.4

Apache MINA SSHD: Remote execution of JGit commands can write files on the server

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.

Record
CVE-2026-58624
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Weakness
CWE-20
Updated
2026-11-02
EUVDEUVD-2026-46101 5.4

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.

Record
EUVD-2026-46101
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Updated
2026-11-02
GitHub AdvisoriesGHSA-7229-w5mh-32hm 5.4

Improper input validation in sshd-git in Apache MINA SSHD. Apache MINA SSHD is a Java library for...

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.

Record
GHSA-7229-w5mh-32hm
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Weakness
CWE-20
Updated
2026-11-02
NVD 5.4

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.

Record
CVE-2026-58624
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Weakness
CWE-20
Updated
2026-11-02
OSV 5.4

Apache MINA SSHD: Remote execution of JGit commands can write files on the server

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.

Record
CVE-2026-58624
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Weakness
CWE-20
Updated
2026-11-02
OSVDEBIAN-CVE-2026-58624 5.4

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.

Record
DEBIAN-CVE-2026-58624
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Updated
2026-11-02
OSVUBUNTU-CVE-2026-58624 5.4

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.

Record
UBUNTU-CVE-2026-58624
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Updated
2026-11-02
OSVopenSUSE-SU-2026:11327-1 No score

apache-sshd-2.19.0-2.1 on GA media

These are all security issues fixed in the apache-sshd-2.19.0-2.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:11327-1
Updated
2026-11-02
OSVSUSE-SU-2026:3339-1 No score

Security update for apache-sshd

This update for apache-sshd fixes the following issues:

Update to upstream version 2.19.0.

Security issues fixed:

  • CVE-2026-56452: remote users can use SCP to send filenames that lead to arbitrary file writes due to a path traversal issue in the sshd-scp component of Apache MINA SSHD. (bsc#1272158).
  • CVE-2026-56623: remote users can obtain access to git repositories outside of the configured server-side root directory on Windows systems due to path traversal issue in org.apache.sshd:sshd-git (bsc#1271993).
  • CVE-2026-56624: users can authenticate with certificates containing the force-command option but still execute other commands due to improper validation of certificate options in Apache MINA SSHD (bsc#1271992).
  • CVE-2026-58624: remote execution of JGit commands can lead to arbitrary file writes due to improper input validation in sshd-git of Apache MINA SSHD (bsc#1271991).

Other updates and bugfixes:

  • Version 2.19.0:
    • Bug Fixes
      • GH-899 Fix ProcessShellFactory on Linux.
      • GH-902 Fix client-side handling of sk-* public key signatures (also in the agent interfaces).
      • Limit size of decompressed SSH packets.
      • Improve checking SSH user certificates in public-key authentication.
      • Improve handling of repository paths in sshd-git on Windows.
      • Validate file names in SCP.
      • Escape newlines in filenames in the SCP protocol.
      • Restrict JGit commands accessible via GitPgmCommandFactory in sshd-git.
Record
SUSE-SU-2026:3339-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libmina-sshd-java
Debian:13
All versions, plus listed versions
2.13.2-22.13.2-3
None known
libmina-sshd-java
Debian:14
All versions, plus listed versions
2.13.2-22.13.2-3
None known
apache-sshd
SUSE:Linux Enterprise Module for Development Tools 15 SP7
From an advisory covering 4 CVEs
before 2.19.0-150200.5.16.1
2.19.0-150200.5.16.1
apache-sshd
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS
From an advisory covering 4 CVEs
before 2.19.0-150200.5.16.1
2.19.0-150200.5.16.1
apache-sshd
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS
From an advisory covering 4 CVEs
before 2.19.0-150200.5.16.1
2.19.0-150200.5.16.1
apache-sshd
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS
From an advisory covering 4 CVEs
before 2.19.0-150200.5.16.1
2.19.0-150200.5.16.1
apache-sshd
SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS
From an advisory covering 4 CVEs
before 2.19.0-150200.5.16.1
2.19.0-150200.5.16.1
apache-sshd
SUSE:Linux Enterprise Server 15 SP4-LTSS
From an advisory covering 4 CVEs
before 2.19.0-150200.5.16.1
2.19.0-150200.5.16.1
apache-sshd
SUSE:Linux Enterprise Server 15 SP5-LTSS
From an advisory covering 4 CVEs
before 2.19.0-150200.5.16.1
2.19.0-150200.5.16.1
apache-sshd
SUSE:Linux Enterprise Server 15 SP6-LTSS
From an advisory covering 4 CVEs
before 2.19.0-150200.5.16.1
2.19.0-150200.5.16.1
Show 16 moreShow less
Affected packages
PackageAffectedFixed
apache-sshd
SUSE:Linux Enterprise Server for SAP Applications 15 SP4
From an advisory covering 4 CVEs
before 2.19.0-150200.5.16.1
2.19.0-150200.5.16.1
apache-sshd
SUSE:Linux Enterprise Server for SAP Applications 15 SP5
From an advisory covering 4 CVEs
before 2.19.0-150200.5.16.1
2.19.0-150200.5.16.1
apache-sshd
SUSE:Linux Enterprise Server for SAP Applications 15 SP6
From an advisory covering 4 CVEs
before 2.19.0-150200.5.16.1
2.19.0-150200.5.16.1
mina
Ubuntu:16.04:LTS
All versions, plus listed versions
1.1.7.dfsg-11
None known
mina2
Ubuntu:16.04:LTS
All versions, plus listed versions
2.0.7+dfsg-22.0.9-12.0.9-2
None known
mina
Ubuntu:18.04:LTS
All versions, plus listed versions
1.1.7.dfsg-111.1.7.dfsg-12
None known
mina2
Ubuntu:18.04:LTS
All versions, plus listed versions
2.0.16-2
None known
mina
Ubuntu:20.04:LTS
All versions, plus listed versions
1.1.7.dfsg-13
None known
mina2
Ubuntu:20.04:LTS
All versions, plus listed versions
2.0.19-2
None known
mina
Ubuntu:22.04:LTS
All versions, plus listed versions
1.1.7.dfsg-13
None known
mina2
Ubuntu:Pro:22.04:LTS
All versions, plus listed versions
2.1.4-22.1.5-12.1.5-1ubuntu0.1~esm1
None known
mina
Ubuntu:24.04:LTS
All versions, plus listed versions
1.1.7.dfsg-131.1.7.dfsg-13ubuntu1
None known
mina2
Ubuntu:Pro:24.04:LTS
All versions, plus listed versions
2.2.1-32.2.1-3ubuntu0.1~esm1
None known
mina2
Ubuntu:26.10
All versions, plus listed versions
2.2.1-42.2.1-4ubuntu12.2.9-1
None known
mina2
Ubuntu:Pro:26.04:LTS
All versions, plus listed versions
2.2.1-42.2.1-4ubuntu0.1~esm1
None known
apache-sshd
openSUSE:Tumbleweed
From an advisory covering 4 CVEs
before 2.19.0-2.1
2.19.0-2.1

History

History
RecordedChangedSources
affected, facts
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-58624 is a medium vulnerability (CVSS 5.4) in Apache Mina Sshd, published July 20, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.64%, the 50th percentile. No source names a fixed version.

References

Show 12 moreShow less
MoveEnter Open