{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-58624 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-58624 is a medium-severity path traversal vulnerability in Apache MINA SSHD, published on 20 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-58624 and fix it if it is affected.\n\nWhat it is: CVE-2026-58624 is a medium-severity path traversal vulnerability in Apache MINA SSHD, published on 20 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-58624 in the wild and no public exploit code.\n\nAffected product: Apache MINA SSHD. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2026-58624/ (Markdown: https://insights.sbomify.com/CVE-2026-58624/index.md)","id":"CVE-2026-58624","markdown":"https://insights.sbomify.com/CVE-2026-58624/index.md","name":"CVE-2026-58624","record":{"aliases":["DEBIAN-CVE-2026-58624","GHSA-7229-w5mh-32hm","UBUNTU-CVE-2026-58624"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Java SSH library","requires_auth":"low_privilege","summary":"Authenticated SSH users can write files to arbitrary server locations via unrestricted JGit commands in Apache MINA SSHD when GitPgmCommandFactory is enabled.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"mina_sshd","vendor":"apache"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"Improper input validation in sshd-git in Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH.\n\nComponent org.apache.sshd:sshd-git provides though its GitPgmCommandFactory a way to configure an Apache MINA SSHD server such that SSH clients can remotely execute git commands via the JGit library on git repositories stored on the server.\n\nThis GitPgmCommandFactory allowed a user authenticated via SSH to run any JGit command available, including commands that could write files at arbitrary places such as git archive with the --output option.\n\nAffected are SSH servers implemented with Apache MINA SSHD and using the GitPgmCommandFactory. If the GitPgmCommandFactory is not configured on the server, the server is not affected.\n\nIt is recommended to upgrade affected servers to Apache MINA SSHD 2.19.0 or 3.0.0-M5, which fix this issue.\n\nThe issue is fixed by restricting the available commands to a small whitelist of uncritical commands (such as git log). git archive is also allowed, but its --output argument is ignored and the archive is always sent through the SSH channel to the client.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache MINA SSHD: Remote execution of JGit commands can write files on the server","id":"CVE-2026-58624","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Windows Remote Desktop Services Remote Code Execution Vulnerability","id":"CVE-2026-58626"},"packages":[],"prev":{"headline":"Windows Sensor Data Service Elevation of Privilege Vulnerability","id":"CVE-2026-58619"},"products":["Apache MINA SSHD"],"published":"2026-07-20","related":[{"cvss_score":7.5,"headline":"Apache MINA SSHD: Path traversal in SCP file reception","id":"CVE-2026-56452","kev_date_added":null,"published":"2026-07-20"},{"cvss_score":7.3,"headline":"Apache MINA SSHD: SSH certificate options lack validations","id":"CVE-2026-56624","kev_date_added":null,"published":"2026-07-20"},{"cvss_score":7.1,"headline":"Apache MINA SSHD: Path traversal in org.apache.sshd:sshd-git on Windows","id":"CVE-2026-56623","kev_date_added":null,"published":"2026-07-20"},{"cvss_score":7.1,"headline":"Apache MINA SSHD: Path traversal in org.apache.sshd:sshd-git","id":"CVE-2026-48827","kev_date_added":null,"published":"2026-06-01"},{"cvss_score":5.9,"headline":"Apache MINA SSHD: integrity check bypass","id":"CVE-2024-41909","kev_date_added":null,"published":"2024-08-12"},{"cvss_score":5.9,"headline":"Path traversal in n/a","id":"CVE-2019-6111","kev_date_added":null,"published":"2019-01-31"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-21","vendors":["Apache Software Foundation"]},"summary":"Authenticated SSH users can write files to arbitrary server locations via unrestricted JGit commands in Apache MINA SSHD when GitPgmCommandFactory is enabled.","url":"https://insights.sbomify.com/CVE-2026-58624/"}