CVE-2026-56452

Apache MINA SSHD: Path traversal in SCP file reception

Published Jul 20, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

File names received via SCP in Apache MINA SSHD are not validated, allowing malicious senders to include directory traversal sequences such as '../'. This flaw permits an attacker to place files in arbitrary locations on the host, enabling overwriting critical files or installing malicious binaries, potentially leading to remote code execution or compromise of system integrity.

Affected Systems

Apache MINA SSHD clients or servers that use the older, unsupported releases below 2.0.0, and any applications built with MINA SSHD 2.0.0 or later that enable the SCP receive functionality. Hosts running MINA SSHD 2.0.0+ but that do not use the sshd-scp component are not affected.

Risk and Exploitability

The flaw is rated CVSS 7.5, indicating a high severity. The EPSS score is below 1 %, showing a low current exploitation probability, and the vulnerability is not listed in CISA KEV. The likely attack vector requires remote control of the SCP sender; the attacker must initiate a file transfer over SCP to exploit the path traversal. No known public exploits have been reported.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache MINA SSHD to version 2.19.0 or 3.0.0‑M5 or newer, which includes path validation for SCP file reception.
  • If SCP file reception is not required for your application, disable the sshd‑scp feature entirely to eliminate the attack surface.
  • If you must use SCP receive, add an additional path check in your application code to ensure file paths remain within an allowed directory before writing them to disk.

Generated by OpenCVE AI on July 30, 2026 at 18:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Apache
Apache mina Sshd
Vendors & Products Apache
Apache mina Sshd
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Apache MINA SSHD: Path traversal in SCP file reception
Weaknesses CWE-22
CWE-73
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Jul 21, 2026, 5:15 PM
Reserved
Jun 22, 2026, 1:31 PM
Status
Analyzed
Published
Jul 20, 2026, 9:16 PM
Modified
Oct 24, 2026, 1:10 PM