{"id":82308,"date":"2026-07-21T00:46:49","date_gmt":"2026-07-20T21:16:49","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-58624-apache-mina-sshd-remote-execution-of-jgit-commands-can-write-files-on-the-server\/"},"modified":"2026-07-21T00:46:49","modified_gmt":"2026-07-20T21:16:49","slug":"cve-2026-58624-apache-mina-sshd-remote-execution-of-jgit-commands-can-write-files-on-the-server","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-58624-apache-mina-sshd-remote-execution-of-jgit-commands-can-write-files-on-the-server\/","title":{"rendered":"CVE-2026-58624 &#8211; Apache MINA SSHD: Remote execution of JGit commands can write files on the server"},"content":{"rendered":"<p>CVE ID :CVE-2026-58624<\/p>\n<p>  Published : July 20, 2026, 9:16 p.m. | 28\u00a0minutes ago<\/p>\n<p>  Description :Improper input validation in sshd-git in Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH.<\/p>\n<p>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.<\/p>\n<p>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 &#8211;output option.<\/p>\n<p>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.<\/p>\n<p>It is recommended to upgrade affected servers to Apache MINA SSHD 2.19.0 or 3.0.0-M5, which fix this issue.<\/p>\n<p>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 &#8211;output argument is ignored and the archive is always sent through the SSH channel to the client.<\/p>\n<p>  Severity: 5.4 | MEDIUM<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-58624 Published : July 20, 2026, 9:16 p.m. | 28\u00a0minutes ago Description :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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-82308","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=82308"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82308\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=82308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=82308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=82308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}