Apache MINA SSHD: Path traversal in SCP file reception (Apache Software Foundation Apache MINA SSHD)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.77 % · percentile 56 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- apache
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-22 — Improper Limitation of a Pathname to a Restricted Directory
- CWE-73 — External Control of File Name or Path
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N | apache |
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N | NVD · security@apache.org (Secondary) |
European references
- ENISA EUVD · EUVD-2026-46099
- GCVE · GCVE-0-2026-56452
Affected configurations (NVD CPE)
cpe:2.3:a:apache:mina_sshd:*:*:*:*:*:*:*:*≥ 2.0.0 < 2.19.0cpe: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:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| Apache Software Foundation · Apache MINA SSHD | affected 0 ≤ 2.18.0 ; affected 3.0.0-M1 ≤ 3.0.0-M4 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |