Read the docs
TI-2026-42194 Aliases CVE-2026-58624GHSA-7229-w5mh-32hm

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

Priority LOW 25CWE-20Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
None · Low · Low
Fix status
No fix listed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00635 50th percentileScored 2026-11-07
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
ApacheApache MINA SSHD2.0.0 – 2.18.0; 3.0.0-M1 – 3.0.0-M4—No fix listedCNA
  • Apache MINA SSHD VendorApache Affected 2.0.0 – 2.18.0; 3.0.0-M1 – 3.0.0-M4 Fixed in — No fix listed CNA

CPE configurations NVD · 5

CPEVersionsRoleVendor
cpe:2.3:a:apache:mina_sshd:*:*:*:*:*:*:*:*2.0.0 to before 2.19.0VulnerableApache
cpe:2.3:a:apache:mina_sshd:3.0.0:m1:*:*:*:*:*:*3.0.0 m1VulnerableApache
cpe:2.3:a:apache:mina_sshd:3.0.0:m2:*:*:*:*:*:*3.0.0 m2VulnerableApache
cpe:2.3:a:apache:mina_sshd:3.0.0:m3:*:*:*:*:*:*3.0.0 m3VulnerableApache
cpe:2.3:a:apache:mina_sshd:3.0.0:m4:*:*:*:*:*:*3.0.0 m4VulnerableApache
  • cpe:2.3:a:apache:mina_sshd:*:*:*:*:*:*:*:* Versions 2.0.0 to before 2.19.0 Vulnerable ·Apache
  • cpe:2.3:a:apache:mina_sshd:3.0.0:m1:*:*:*:*:*:* Versions 3.0.0 m1 Vulnerable ·Apache
  • cpe:2.3:a:apache:mina_sshd:3.0.0:m2:*:*:*:*:*:* Versions 3.0.0 m2 Vulnerable ·Apache
  • cpe:2.3:a:apache:mina_sshd:3.0.0:m3:*:*:*:*:*:* Versions 3.0.0 m3 Vulnerable ·Apache
  • cpe:2.3:a:apache:mina_sshd:3.0.0:m4:*:*:*:*:*:* Versions 3.0.0 m4 Vulnerable ·Apache

Remediation

No fixed version listed by the sources yet.

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-58624
  2. 2026-10-03 Alias added: GHSA-7229-w5mh-32hm
  3. 2026-10-25 EPSS moved to the 50th–90th percentile

References

  • TI-2019-04327 An issue was discovered in OpenSSH 7.9. CVSS 3.1MEDIUM 5.9
  • TI-2026-40791 Apache MINA SSHD: Path traversal in SCP file reception CVSS 3.1HIGH 7.5
  • TI-2026-40830 Apache MINA SSHD: SSH certificate options lack validations CVSS 3.1HIGH 7.3
  • TI-2026-40829 Apache MINA SSHD: Path traversal in org.apache.sshd:sshd-git on Windows CVSS 3.1HIGH 7.1
  • TI-2026-36095 Apache MINA SSHD: Path traversal in org.apache.sshd:sshd-git CVSS 3.1HIGH 7.1
  • TI-2024-27935 Apache MINA SSHD: integrity check bypass CVSS 3.1MEDIUM 5.9

Sources