{"answers":{"affected":"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.","exploited":"There is no known exploitation of CVE-2023-35887 in the wild and no public exploit code.","fix":"Upgrade org.apache.sshd:sshd-common to 2.9.3 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2023-35887 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2023-35887 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.sshd:sshd-common (Maven): affected from 2.1.0; fixed in 2.9.3\n- org.apache.sshd:sshd-common (Maven): affected from 2.1.0; fixed in 2.9.3\n- org.apache.sshd:sshd-core (Maven): affected from 1.0.0; fixed in 2.1.0\n- org.apache.sshd:sshd-core (Maven): affected from 1.0.0; fixed in 2.1.0\n- org.apache.sshd:sshd-sftp (Maven): affected from 1.0.0; fixed in 2.9.3\n- org.apache.sshd:sshd-sftp (Maven): affected from 1.0.0; fixed in 2.9.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-35887/ (Markdown: https://insights.sbomify.com/CVE-2023-35887/index.md)","id":"CVE-2023-35887","markdown":"https://insights.sbomify.com/CVE-2023-35887/index.md","name":"CVE-2023-35887","record":{"aliases":["CLEANSTART-2026-DP56505","CLEANSTART-2026-EF36950","CLEANSTART-2026-PH67619","GHSA-mjmq-gwgm-5qhm","MINI-vw9x-whc4-x8rj","OESA-2024-1079"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Java SSH library","requires_auth":"low_privilege","summary":"Attackers can discover file existence outside the root directory in SFTP servers using Apache MINA SSHD with RootedFileSystem.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"sshd","vendor":"apache"}],"cvss":{"score":5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Software Foundation Apache MINA.\n\nIn 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.\n\nThis issue affects Apache MINA: from 1.0 before 2.10. Users are recommended to upgrade to 2.10","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-18","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-18T16:57:40Z","kind":"github_poc","ref":"https://github.com/shoucheng3/apache__mina-sshd_CVE-2023-35887_2-9-2","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Apache MINA SSHD: Information disclosure bugs with RootedFilesystem","id":"CVE-2023-35887","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":6,"n_references":1,"next":{"headline":"IBM Security Verify Governance information disclosure","id":"CVE-2023-35888"},"packages":[{"ecosystem":"Maven","fixed":["2.9.3"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.sshd:sshd-common","purl":null,"source":"GHSA-mjmq-gwgm-5qhm"},{"ecosystem":"Maven","fixed":["2.9.3"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.sshd:sshd-common","purl":"pkg:maven/org.apache.sshd/sshd-common","source":"GHSA-mjmq-gwgm-5qhm"},{"ecosystem":"Maven","fixed":["2.1.0"],"introduced":["1.0.0"],"last_affected":[],"package":"org.apache.sshd:sshd-core","purl":null,"source":"GHSA-mjmq-gwgm-5qhm"},{"ecosystem":"Maven","fixed":["2.1.0"],"introduced":["1.0.0"],"last_affected":[],"package":"org.apache.sshd:sshd-core","purl":"pkg:maven/org.apache.sshd/sshd-core","source":"GHSA-mjmq-gwgm-5qhm"},{"ecosystem":"Maven","fixed":["2.9.3"],"introduced":["1.0.0"],"last_affected":[],"package":"org.apache.sshd:sshd-sftp","purl":null,"source":"GHSA-mjmq-gwgm-5qhm"},{"ecosystem":"Maven","fixed":["2.9.3"],"introduced":["1.0.0"],"last_affected":[],"package":"org.apache.sshd:sshd-sftp","purl":"pkg:maven/org.apache.sshd/sshd-sftp","source":"GHSA-mjmq-gwgm-5qhm"}],"prev":{"headline":"Auth bypass in n/a","id":"CVE-2023-35885"},"products":["Apache MINA SSHD"],"published":"2023-07-10","related":[{"cvss_score":9.8,"headline":"Apache MINA SSHD: Java unsafe deserialization vulnerability","id":"CVE-2022-45047","kev_date_added":null,"published":"2022-11-16"},{"cvss_score":6.5,"headline":"DoS/OOM leak vulnerability in Apache Mina SSHD Server","id":"CVE-2021-30129","kev_date_added":null,"published":"2021-07-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-07","vendors":["Apache Software Foundation"]},"summary":"Attackers can discover file existence outside the root directory in SFTP servers using Apache MINA SSHD with RootedFileSystem.","url":"https://insights.sbomify.com/CVE-2023-35887/"}