{"id":"CVE-2026-93995","revision":"6d1e1d7cbaac458f9fef90429d38f1e4","records":[{"revision":"6d1e1d7cbaac458f9fef90429d38f1e4","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-93995","aliases":[],"title":"Apache MINA SSHD: Remote execution of JGit \"archive -o=file.zip\" can write file on the server","description":"Improper input validation in sshd-git in Apache MINA SSHD, versions up to 2.19.0 and 3.0.0-M1 to 3.0.0-M5. Apache \nMINA SSHD is a Java library for client-side and server-side SSH.\n\n\n\n\nComponent org.apache.sshd:sshd-git provides though class GitPgmCommandFactory a way to configure an Apache MINA SSHD server such \nthat authenticated SSH clients can remotely execute git commands via the JGit library \non git repositories stored on the server. In\u00A0CVE-2026-58624 this mechanism was restricted to only a few git commands, including \"git archive\" without \"--output\" or \"-o\" options such that the resulting archive would not be written on the server but instead sent back to the client over the SSH connection.\n\n\n\n\nThe fix done for\u00A0CVE-2026-58624 was insufficient as it missed removing the single-argument \"-o=file.zip\"\u00A0version of the command parameter\u00A0from the \"archive\" command.\n\n\n\n\nUsers are recommended to upgrade to version 2.20.0 or 3.0.0-M6, which fix this issue.","state":0,"publishedAt":"2026-09-30T09:38:47.654+00:00","modifiedAt":"2026-09-30T14:30:58.296+00:00","affected":[{"ecosystem":"https://repo.maven.apache.org/maven2","name":"org.apache.sshd:sshd-git","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Apache Software Foundation\",\n                    \"product\": \"Apache MINA SSHD\",\n                    \"packageURL\": \"pkg:maven/org.apache.sshd/sshd-git\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"lessThan\": \"2.20.0\",\n                            \"versionType\": \"maven\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"3.0.0-M1\",\n                            \"lessThan\": \"3.0.0-M6\",\n                            \"versionType\": \"maven\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"collectionURL\": \"https://repo.maven.apache.org/maven2\",\n                    \"packageName\": \"org.apache.sshd:sshd-git\"\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"severity":"MEDIUM"}],"references":["https://lists.apache.org/thread.html/k13ox2xlry38h9gh6rhmh1d9zs345clk"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-93995","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-93995","identifiers":["CVE-2026-93995"]},"retained":false,"historicalAffected":[]}],"coverage":[]}