CVE-2023-35887 Apache MINA SSHD: Information disclosure bugs with RootedFilesystem

Medium 5.0 Published Updated

Attackers can discover file existence outside the root directory in SFTP servers using Apache MINA SSHD with RootedFileSystem.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-35887?

CVE-2023-35887 is a medium-severity path traversal vulnerability in Apache MINA SSHD, published on 10 Jul 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Software Foundation Apache MINA.

In SFTP servers implemented using Apache MINA SSHD that use a RootedFileSystem, logged users may be able to discover "exists/does not exist" information about items outside the rooted tree via paths including parent navigation ("..") beyond the root, or involving symlinks.

This issue affects Apache MINA: from 1.0 before 2.10. Users are recommended to upgrade to 2.10

Weakness: CWE-22

Which versions are affected by CVE-2023-35887?

6 open source packages ship an affected version, including org.apache.sshd:sshd-common, org.apache.sshd:sshd-core and org.apache.sshd:sshd-sftp. It affects 1 product.

PackageAffectedFixed in
org.apache.sshd:sshd-common MavenFrom 2.1.02.9.3
org.apache.sshd:sshd-common MavenFrom 2.1.02.9.3
org.apache.sshd:sshd-core MavenFrom 1.0.02.1.0
org.apache.sshd:sshd-core MavenFrom 1.0.02.1.0
org.apache.sshd:sshd-sftp MavenFrom 1.0.02.9.3
org.apache.sshd:sshd-sftp MavenFrom 1.0.02.9.3

Products include Apache Sshd.

How do I fix CVE-2023-35887?

Upgrade org.apache.sshd:sshd-common to 2.9.3 or later.

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

Is CVE-2023-35887 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as CLEANSTART-2026-DP56505, CLEANSTART-2026-EF36950, CLEANSTART-2026-PH67619, GHSA-mjmq-gwgm-5qhm, MINI-vw9x-whc4-x8rj, OESA-2024-1079.

Is CVE-2023-35887 in your software?

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

Check your SBOMs for free