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

High 7.5 Published Updated

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

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

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, CWE-22

Which versions are affected by CVE-2026-56452?

It affects 1 product.

Products include Apache Mina Sshd.

How do I fix CVE-2026-56452?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-56452 being exploited?

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

Sources

Also known as DEBIAN-CVE-2026-56452, GHSA-2vf2-jm4x-2gj4, UBUNTU-CVE-2026-56452.

Is CVE-2026-56452 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free