CVE-2023-35887:
Apache MINA SSHD information disclosure vulnerability
5
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
7/10/2023
Updated
12/7/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.sshd:sshd-core | maven | >= 1.0.0, < 2.1.0 | 2.1.0 |
org.apache.sshd:sshd-common | maven | >= 2.1.0, < 2.9.3 | 2.9.3 |
org.apache.sshd:sshd-sftp | maven | >= 1.0.0, < 2.9.3 | 2.9.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper path validation in RootedFileSystemProvider. Key issues included: 1) resolveLocalPath didn't properly normalize paths against the root, allowing traversal. 2) createSymbolicLink didn't validate symlink targets. 3) Directory stream handling leaked absolute paths. The commit adds chroot path normalization, symlink validation, and secure directory stream wrappers to contain paths within the root. The affected functions are clearly identified in the diff through security-critical changes like IoUtils.chroot calls and validateSafeRelativeSymlink checks.