CVE-2026-56452
JSON

7.5high

Apache MINA SSHD: Path traversal in SCP file reception

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

Description

Path traversal in the sshd-scp component of Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH. The implementation of receiving files or directories via SCP did not validate filenames in SCP "C" or "D" commands. A malicious sender could send filenames containing paths, resulting in files to be written in attacker-controlled places. The issue affects only * applications that use no longer supported Apache MINA SSHD versions < 2.0.0 and use the SCP functions to receive files, * or applications using sshd-scp in Apache MINA SSHD >= 2.0.0 to receive files. Applications using Apache MINA SSHD >= 2.0.0 not using sshd-scp are not affected. The issue is fixed in Apache MINA 2.19.0 and 3.0.0-M5. Affected applications are advised to upgrade to these versions.

Affected

Product or packageVersionsReported by
org.apache.sshd:sshd-scpup 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-22CWE-73

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Path traversal in the sshd-scp component of Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH. The implementation of receiving files or directories via SCP did not validate filenames in SCP "C" or "D" commands. A malicious sender could send filenames containing paths, resulting in files to be written in attacker-controlled places. The issue affects only * applications that use no longer supported Apache MINA SSHD versions < 2.0.0 and use the SCP functions to receive files, * or applications using sshd-scp in Apache MINA SSHD >= 2.0.0 to receive files. Applications using Apache MINA SSHD >= 2.0.0 not using sshd-scp are not affected. The issue is fixed in Apache MINA 2.19.0 and 3.0.0-M5. Affected applications are advised to upgrade to these versions.

NVD (es)

Salto de ruta en el componente sshd-scp de Apache MINA SSHD. Apache MINA SSHD es una biblioteca Java para SSH del lado del cliente y del lado del servidor. La implementación de recepción de archivos o directorios vía SCP no validaba los nombres de archivo en los comandos SCP 'C' o 'D'. Un remitente malicioso podría enviar nombres de archivo que contengan rutas, lo que resultaría en que los archivos se escribieran en lugares controlados por el atacante. El problema afecta solo * aplicaciones que usan versiones de Apache MINA SSHD anterior a 2.0.0 que ya no son compatibles y usan las funciones SCP para recibir archivos, * o aplicaciones que usan sshd-scp en Apache MINA SSHD >= 2.0.0 para recibir archivos. Las aplicaciones que usan Apache MINA SSHD >= 2.0.0 que no usan sshd-scp no se ven afectadas. El problema está solucionado en Apache MINA 2.19.0 y 3.0.0-M5. Se aconseja a las aplicaciones afectadas que actualicen a estas versiones.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-56452 changed 2026-07-21CVE Terms of Use
NVDCVE-2026-56452 changed 2026-10-24Public domain