# CVE-2026-56452: Apache MINA SSHD: Path traversal in SCP file reception

> A malicious SCP sender can write files to arbitrary locations due to lack of filename validation in Apache MINA SSHD.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 20 Jul 2026
- **Updated:** 21 Jul 2026
- **Also known as:** DEBIAN-CVE-2026-56452, GHSA-2vf2-jm4x-2gj4, UBUNTU-CVE-2026-56452

## What is CVE-2026-56452?

CVE-2026-56452 is a high-severity path traversal vulnerability in Apache MINA SSHD, published on 20 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official 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.

Weakness: CWE-73 (External Control of File Name or Path), CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2026-56452?

It affects 1 product.


Products: Apache Mina Sshd.

## How do I fix CVE-2026-56452?

Upgrade to a fixed version.

## Is CVE-2026-56452 being exploited?

There is no known exploitation of CVE-2026-56452 in the wild and no public exploit code.

## Other vulnerabilities in Apache MINA SSHD

- [CVE-2026-56624](https://insights.sbomify.com/CVE-2026-56624/): Apache MINA SSHD: SSH certificate options lack validations (high 7.3)
- [CVE-2026-56623](https://insights.sbomify.com/CVE-2026-56623/): Apache MINA SSHD: Path traversal in org.apache.sshd:sshd-git on Windows (high 7.1)
- [CVE-2026-48827](https://insights.sbomify.com/CVE-2026-48827/): Apache MINA SSHD: Path traversal in org.apache.sshd:sshd-git (high 7.1)
- [CVE-2024-41909](https://insights.sbomify.com/CVE-2024-41909/): Apache MINA SSHD: integrity check bypass (medium 5.9)
- [CVE-2019-6111](https://insights.sbomify.com/CVE-2019-6111/): Path traversal in n/a (medium 5.9)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-56452 and fix it if it is affected.

What it is: CVE-2026-56452 is a high-severity path traversal vulnerability in Apache MINA SSHD, published on 20 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-56452 in the wild and no public exploit code.

Affected product: Apache MINA SSHD. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-56452/ (Markdown: https://insights.sbomify.com/CVE-2026-56452/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-56452
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-56452
- OSV: https://osv.dev/vulnerability/CVE-2026-56452

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-56452/
Summaries are generated and may contain mistakes; the official description above is the record.
