CVE-2026-56624
JSON

7.3high

Apache MINA SSHD: SSH certificate options lack validations

Severity
7.3high CVSS:3.1 by apache
Exploit likelihood
0.17% (higher than 6% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache

Description

Improper certificate validation in Apache MINA SSHD (server-side). Apache MINA SSHD is a Java library for client-side and server-side SSH. Server-side OpenSSH user certificate validation during user authentication in an Apache MINA SSHD server did not check for the unsupported force-command or verify-required options that could be embedded in the certificate, nor did it validate these options. As a result it was possible that a user could authenticate with such a certificate that included a force-command option but still was able to execute other commands. What other command exactly would be available to the user depends on the implementation of the server. This issue is fixed in Apache MINA SSHD 2.19.0 and 3.0.0-M5. Applications are advised to upgrade to these versions. The fix rejects OpenSSH user certificates that include these options, since Apache MINA SSHD implements neither force-command nor sk-*-cert-v01@openssh.com user certificates (which are the only ones for which verify-required would make sense).

Affected

Product or packageVersionsReported by
org.apache.sshd:sshd-corefrom 2.0.0 up to 2.18.0, from 3.0.0-M1 up to 3.0.0-M4CVE List
apache mina_sshdfrom 2.0.0 before 2.19.0, 3.0.0NVD

Classification

CWE-295

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Improper certificate validation in Apache MINA SSHD (server-side). Apache MINA SSHD is a Java library for client-side and server-side SSH. Server-side OpenSSH user certificate validation during user authentication in an Apache MINA SSHD server did not check for the unsupported force-command or verify-required options that could be embedded in the certificate, nor did it validate these options. As a result it was possible that a user could authenticate with such a certificate that included a force-command option but still was able to execute other commands. What other command exactly would be available to the user depends on the implementation of the server. This issue is fixed in Apache MINA SSHD 2.19.0 and 3.0.0-M5. Applications are advised to upgrade to these versions. The fix rejects OpenSSH user certificates that include these options, since Apache MINA SSHD implements neither force-command nor sk-*-cert-v01@openssh.com user certificates (which are the only ones for which verify-required would make sense).

NVD (es)

Validación de certificado incorrecta en Apache MINA SSHD (lado del servidor). Apache MINA SSHD es una biblioteca Java para SSH del lado del cliente y del lado del servidor. La validación de certificados de usuario de OpenSSH del lado del servidor durante la autenticación de usuario en un servidor Apache MINA SSHD no verificó las opciones no compatibles force-command o verify-required que podrían estar incrustadas en el certificado, ni validó estas opciones. Como resultado, fue posible que un usuario pudiera autenticarse con un certificado que incluía una opción force-command pero aún así pudo ejecutar otros comandos. Qué otro comando exactamente estaría disponible para el usuario depende de la implementación del servidor. Este problema está solucionado en Apache MINA SSHD 2.19.0 y 3.0.0-M5. Se aconseja a las aplicaciones actualizar a estas versiones. La solución rechaza los certificados de usuario de OpenSSH que incluyen estas opciones, ya que Apache MINA SSHD no implementa ni force-command ni los certificados de usuario sk-*-cert-v01@openssh.com (que son los únicos para los que verify-required tendría sentido).

References

Sources

SourceRecordLicence
CVE ListCVE-2026-56624 changed 2026-07-23CVE Terms of Use
NVDCVE-2026-56624 changed 2026-10-24Public domain