mediumCVE-2026-58624

CVE-2026-58624 Apache MINA SSHD vulnerability

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.

Browse Java security risks
ProductApache MINA SSHD
CVSS5.4
EPSSNot scored yet
UpdatedJuly 21, 2026

Quick answer

Apache Software Foundation Apache MINA SSHD should be reviewed and updated if it matches the affected versions. The recommended fix is to apply the vendor-supported patched version or the mitigation steps below, then retest the public website with Fixnx.

Who is affected

Affected versions

  • <= 2.18.0
  • <= 3.0.0-M4

Fixed versions

  • Apply the latest vendor-supported patched version.

How to fix it

CVE-2026-58624 affects Apache MINA SSHD and involves file access or path traversal. Successful exploitation may disclose files outside the intended directory, including configuration or secret data. Prioritize deployments that process untrusted input, expose the affected feature, or hold sensitive data. Upgrade Apache MINA SSHD to 2.19.0, 3.0.0-M5, or a later fixed release for the deployed branch.

  1. Inventory every deployment, device, package, plugin, container, build, and environment that uses Apache MINA SSHD.
  2. Compare the installed version with the recorded affected range: <= 2.18.0, <= 3.0.0-M4.
  3. Upgrade Apache MINA SSHD to 2.19.0, 3.0.0-M5, or a later fixed release for the deployed branch.
  4. Until patched, reduce public exposure, disable the affected workflow where practical, and allow access only from trusted users and systems.
  5. Review configuration, roles, tokens, network paths, and exposed endpoints connected to Apache MINA SSHD; remove access that is not required.
  6. Review application, system, proxy, and audit logs for requests and behavior linked to the affected feature and CVE.
  7. If exploitation is suspected, isolate affected assets, preserve evidence, rotate exposed credentials or keys, restore trusted data, and rebuild compromised systems before returning them to service.

Scan now. Google sign-in is only needed to unlock fix guidance.

Verify the fix

  • Confirm every affected asset now runs the fixed vendor-supported release or has the documented mitigation for CVE-2026-58624 in place.
  • Use a safe regression test to confirm the affected file access or path traversal path no longer produces the vulnerable behavior.
  • Confirm temporary access controls, endpoint restrictions, network blocks, and least-privilege settings remain effective after the update.
  • Review post-remediation logs and rerun Fixnx plus the relevant package, dependency, firmware, browser, or product-specific security check.
  • Document affected assets, versions, changes, validation evidence, reviewed logs, and any credential rotation, cleanup, or replacement completed.

Related categories

Related security risks

More published guidance from the same primary category.

Trusted references

FAQ

What is affected by CVE-2026-58624?

Apache Software Foundation Apache MINA SSHD versions listed as affected should be reviewed: <= 2.18.0, <= 3.0.0-M4.

What should I fix first?

Start with internet-facing sites, admin panels, login flows, plugins, themes, modules, packages, and systems that process user-controlled input or sensitive data.

How do I confirm the fix worked?

Apply the patched version or mitigation, clear caches where relevant, retest the affected workflow, and run a new Fixnx scan to verify public website exposure signals.

How are Fixnx security risk categories chosen?

Fixnx keeps one canonical risk page and assigns only broad, relevant categories such as ecosystem, technology area, or vulnerability class.