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 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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56452.json",
"cwe_ids": [
"CWE-22",
"CWE-73"
],
"cna_assigner": "apache",
"unresolved_ranges": [
{
"source": "AFFECTED_FIELD",
"extracted_events": [
{
"last_affected": "2.18.0"
},
{
"introduced": "3.0.0-M1"
},
{
"last_affected": "3.0.0-M4"
}
]
}
]
}{
"cpe": [
"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:*:*:*:*:*:*"
],
"source": [
"CPE_RANGE",
"CPE_STRING"
],
"extracted_events": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.19.0"
},
{
"introduced": "3.0.0-m1"
},
{
"last_affected": "3.0.0-m1"
},
{
"introduced": "3.0.0-m2"
},
{
"last_affected": "3.0.0-m2"
},
{
"introduced": "3.0.0-m3"
},
{
"last_affected": "3.0.0-m3"
},
{
"introduced": "3.0.0-m4"
},
{
"last_affected": "3.0.0-m4"
}
]
}