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.
Attack Parameters
Impact Assessment
CVSS Vector v3.1
Weakness Type (CWE)
Vulnerable Products 5
| Configuration | From (including) | Up to (excluding) |
|---|---|---|
|
Apache Mina_Sshd
cpe:2.3:a:apache:mina_sshd:*:*:*:*:*:*:*:*
|
2.0.0
|
2.19.0
|
|
Apache Mina_Sshd
cpe:2.3:a:apache:mina_sshd:3.0.0:m1:*:*:*:*:*:*
|
— | — |
|
Apache Mina_Sshd
cpe:2.3:a:apache:mina_sshd:3.0.0:m2:*:*:*:*:*:*
|
— | — |
|
Apache Mina_Sshd
cpe:2.3:a:apache:mina_sshd:3.0.0:m3:*:*:*:*:*:*
|
— | — |
|
Apache Mina_Sshd
cpe:2.3:a:apache:mina_sshd:3.0.0:m4:*:*:*:*:*:*
|
— | — |