CVE-2023-35887 is a medium-severity (CVSS 5) Path Traversal vulnerability in org.apache.sshd:sshd-common. A fix is available for org.apache.sshd:sshd-common — see the affected versions and patch details below.
Apache MINA SSHD: Information disclosure bugs with RootedFilesystem
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2023-35887.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.apache.sshd:sshd-common☕org.apache.sshd:sshd-sftp☕org.apache.sshd:sshd-coreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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.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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.sshd:sshd-common | ≥ 2.1.0&&< 2.9.3 | 2.9.3org.apache.sshd:sshd-common:2.9.3 |
| ☕Maven | org.apache.sshd:sshd-sftp | ≥ 1.0.0&&< 2.9.3 | 2.9.3org.apache.sshd:sshd-sftp:2.9.3 |
| ☕Maven | org.apache.sshd:sshd-core | ≥ 1.0.0&&< 2.1.0 | 2.1.0org.apache.sshd:sshd-core:2.1.0 |
Affected Products
sshdapacheDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.sshd:sshd-common, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.sshd:sshd-common to 2.9.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2023-35887 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| EAP 8.0.1 | sshd-common | RHSA-2024:1194 |
| Red Hat build of Quarkus 2.13.9 | sshd-common | RHSA-2023:7700 |
| Red Hat Data Grid 8.4.4 | apache-mina | RHSA-2023:5396 |
| Red Hat JBoss Enterprise Application Platform | org.apache.sshd/sshd-common:2.9.3.redhat-00001 | RHSA-2023:7641 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-undertow-0:2.2.28-1.SP1_redhat_00001.1.el8eap | RHSA-2023:7638 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-undertow-0:2.2.28-1.SP1_redhat_00001.1.el9eap | RHSA-2023:7639 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-undertow-0:2.2.28-1.SP1_redhat_00001.1.el7eap | RHSA-2023:7637 |
| Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8 | eap8-apache-sshd-0:2.12.0-1.redhat_00001.1.el8eap | RHSA-2024:1192 |
Frequently Asked Questions
Is CVE-2023-35887 in your dependencies?
Find it across Maven, including transitive dependencies.