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.
Published: 2026-07-20
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Tue, 21 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache mina Sshd
Vendors & Products Apache
Apache mina Sshd

Tue, 21 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 20 Jul 2026 21:00:00 +0000

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'}


Subscriptions

Apache Mina Sshd
cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-07-21T17:15:49.562Z

Reserved: 2026-06-22T13:31:17.496Z

Link: CVE-2026-56452

cve-icon Vulnrichment

Updated: 2026-07-20T22:20:00.765Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T18:30:05Z

Weaknesses
  • CWE-22

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

  • CWE-73

    External Control of File Name or Path