CVE-2023-35887: Apache MINA SSHD: Information disclosure bugs with RootedFilesystem
Apache MINA SSHD could allow a remote authenticated attacker to obtain sensitive information, caused by improper authorization validation by the RootedFilesystem. By sending a specially crafted request, an attacker could exploit this vulnerability to obtain information about items outside the rooted tree, and use this information to launch further attacks against the affected system.
Other sources
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
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.9.3 Users are recommended to upgrade to 2.9.3
Until version 2.1.0, some of the code affected by this vulnerability appeared in org.apache.sshd:sshd-core. Version 2.1.0 contains a commit where the code was moved to the package org.apache.sshd:sshd-common, which did not exist until version 2.1.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.apache.sshd:sshd-sftpto a version that resolves this vulnerability.Fixed in 2.9.3 - Upgrade
Upgrade
maven/org.apache.sshd:sshd-commonto a version that resolves this vulnerability.Fixed in 2.9.3 - Upgrade
Upgrade
maven/org.apache.sshd:sshd-coreto a version that resolves this vulnerability.Fixed in 2.1.0 - Upgrade
Upgrade
redhat/apache-minato a version that resolves this vulnerability.Fixed in 2.10 - Upgrade
Upgrade
org.apache.mina:mina-sshdto a version that resolves this vulnerability.Fixed in 2.9.3 - Upgrade
Upgrade
org.apache.mina:mina-sshdto a version that resolves this vulnerability.Fixed in 2.10
Event History
Frequently Asked Questions
What is CVE-2023-35887?
CVE-2023-35887 is a vulnerability known as Exposure of Sensitive Information to an Unauthorized Actor in Apache MINA.
How does CVE-2023-35887 affect Apache MINA?
CVE-2023-35887 affects Apache MINA by allowing logged users to discover "exists/does not exist" information about items outside the rooted file system in SFTP servers implemented using Apache MINA SSHD that use a RootedFileSystem.
What is the severity of CVE-2023-35887?
CVE-2023-35887 has a medium severity rating.
What software is affected by CVE-2023-35887?
Apache MINA versions 1.0.0 to 2.10.0, as well as specific versions of the packages org.apache.sshd:sshd-core, org.apache.sshd:sshd-common, and org.apache.sshd:sshd-sftp are affected by CVE-2023-35887.
How can I mitigate the CVE-2023-35887 vulnerability?
To mitigate the CVE-2023-35887 vulnerability, it is recommended to upgrade to Apache MINA version 2.10.0 or later, and to upgrade the affected packages to their respective remedied versions.