CVE-2026-58624

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:apache:mina_sshd:*:*:*:*:*:*:*:*
cpe:2.3:a:apache:mina_sshd:3.0.0:m1:*:*:*:*:*:*
cpe:2.3:a:apache:mina_sshd:3.0.0:m2:*:*:*:*:*:*
cpe:2.3:a:apache:mina_sshd:3.0.0:m3:*:*:*:*:*:*
cpe:2.3:a:apache:mina_sshd:3.0.0:m4:*:*:*:*:*:*

History

24 Oct 2026, 20:10

Type Values Removed Values Added
Summary
  • (es) Validación de entrada incorrecta en sshd-git en Apache MINA SSHD. Apache MINA SSHD es una biblioteca Java para SSH del lado del cliente y del lado del servidor. El componente org.apache.sshd:sshd-git proporciona, a través de su GitPgmCommandFactory, una forma de configurar un servidor Apache MINA SSHD de modo que los clientes SSH puedan ejecutar comandos git de forma remota a través de la biblioteca JGit en repositorios git almacenados en el servidor. Este GitPgmCommandFactory permitía a un usuario autenticado vía SSH ejecutar cualquier comando JGit disponible, incluyendo comandos que podían escribir archivos en lugares arbitrarios, como git archive con la opción --output. Se ven afectados los servidores SSH implementados con Apache MINA SSHD y que utilizan el GitPgmCommandFactory. Si el GitPgmCommandFactory no está configurado en el servidor, el servidor no se ve afectado. Se recomienda actualizar los servidores afectados a Apache MINA SSHD 2.19.0 o 3.0.0-M5, que solucionan este problema. El problema se soluciona restringiendo los comandos disponibles a una pequeña lista blanca de comandos no críticos (como git log). git archive también está permitido, pero su argumento --output es ignorado y el archivo siempre se envía a través del canal SSH al cliente.

Information

Published : 2026-07-20 21:16

Updated : 2026-10-24 20:10


NVD link : CVE-2026-58624

Mitre link : CVE-2026-58624

CVE.ORG link : CVE-2026-58624


JSON object : View

Products Affected

apache

  • mina_sshd
CWE
CWE-20

Improper Input Validation