Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid SSH account on target server
-
DeliveryConnect via SSH to MINA SSHD with GitPgmCommandFactory
-
ExploitIssue git archive --output=/sensitive/path HEAD
-
ExecutionJGit writes archive to arbitrary server-side path
-
ImpactOverwrite authorized_keys or git hook to achieve persistence or code execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires three concurrent conditions: (1) the attacker must hold a valid SSH account on the target server - CVSS PR:L confirms authentication is mandatory and no unauthenticated path exists; (2) the server must be explicitly configured to use GitPgmCommandFactory from org.apache.sshd:sshd-git - this is a non-default, opt-in deployment choice and is the single most significant limiting factor, as all standard MINA SSHD deployments are entirely unaffected; (3) the SSH-authenticated user must have network connectivity to the SSH port. The practical impact of arbitrary file writes is further bounded by the OS-level permissions of the SSHD process - writes are constrained to paths writable by the server process user. These conditions collectively restrict the vulnerable population to teams who have built custom git-hosting solutions on MINA SSHD using this specific factory. |
| Impact | The vendor CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L) correctly reflects network accessibility and required SSH authentication (PR:L), but the Integrity:Low rating likely understates real-world impact for deployments where the SSH process has write access to sensitive paths such as ~/.ssh/authorized_keys, git hook directories, or web roots - scenarios common in self-hosted git infrastructure. The Availability:Low rating appears to reflect potential disk exhaustion from archive writes rather than a primary attack goal. No EPSS data was supplied and no KEV listing exists, indicating no confirmed active exploitation. The non-default configuration prerequisite (GitPgmCommandFactory must be explicitly enabled) substantially limits the exposed population - this is not a vulnerability in core MINA SSHD. Risk is real but scoped: highest for teams running custom git-hosting services on MINA SSHD with this factory enabled, negligible for all other MINA SSHD deployments. |
| Exploit ScenarioDerived | An attacker with valid SSH credentials connects to a MINA SSHD server configured with GitPgmCommandFactory and issues a git archive --output=/home/git/.ssh/authorized_keys HEAD command, overwriting the server's authorized_keys file with attacker-controlled content and gaining persistent SSH access without credentials. No public exploit code has been identified, but the attack requires only standard SSH and git client tooling available on any developer workstation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 20, 2026
Arbitrary file write in Apache MINA SSHD's sshd-git component enables any SSH-authenticated user to write files to arbitrary server filesystem paths via the JGit git archive --output argument. Servers are only affected when explicitly configured with GitPgmCommandFactory; the vulnerability does not exist in default MINA SSHD deployments. No public exploit code or CISA KEV listing exists at time of analysis; vendor-confirmed fixes are available in versions 2.19.0 and 3.0.0-M5.
RemediationAI
Upgrade to Apache MINA SSHD 2.19.0 (stable) or 3.0.0-M5 (milestone), which are the vendor-confirmed fixed releases per the advisory at https://lists.apache.org/thread/7c3cry6pdy6hj1q0f28rc72x4o4tlyjo. These versions restrict JGit command execution to a whitelist of safe, read-oriented commands and suppress the --output argument in git archive invocations, returning archive data through the SSH channel instead. As an immediate compensating control prior to patching, remove GitPgmCommandFactory from the SSH server configuration entirely - this eliminates the attack surface with the trade-off of disabling all git-over-SSH functionality. If git access cannot be suspended, restrict SSH authorized_keys entries using the command= directive to limit which git operations individual keys may invoke, and ensure the SSHD process runs under a minimally privileged OS user account without write access to sensitive directories.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache MINA SSHD (CPE: cpe:2.3:a:apache_software_foundation:apache_mina_sshd) is a Java library providing SSH client and server functionality. The affected subcomponent org.apache.sshd:sshd-git exposes a GitPgmCommandFactory that proxies JGit commands to SSH clients, enabling git-over-SSH hosting. CWE-20 (Improper Input Validation) identifies the root cause: the factory applied no allowlist on which JGit commands or arguments were permitted, so the full JGit command surface was accessible. Critically, git archive accepts an --output flag that redirects archive content to a local filesystem path rather than through the SSH channel - a capability that is legitimate in local git usage but dangerous when exposed to remote SSH clients without sanitization. The fix explicitly allowlists safe commands and strips the --output argument from git archive invocations, routing archive output back through the SSH channel exclusively.
Know when Apache Mina Sshd gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Arbitrary file write to any OS-accessible path warrants I:H; SSH authentication is mandatory (PR:L); no confidentiality or availability impact is described.
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
Lifecycle Timeline
3DescriptionCVE.org
Improper input validation in sshd-git in Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH.
Component 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.
This 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.
Affected 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.
It is recommended to upgrade affected servers to Apache MINA SSHD 2.19.0 or 3.0.0-M5, which fix this issue.
The 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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Apache Mina Sshd
View allArbitrary file write in Apache MINA SSHD's sshd-scp component lets a malicious SCP sender place files outside the intend
Command-restriction bypass in Apache MINA SSHD (server-side) lets a user who authenticates with an OpenSSH user certific
Path traversal in Apache MINA SSHD's sshd-git component lets an authenticated remote user on Windows-hosted git servers
Improper input validation in the sshd-git component of Apache MINA SSHD lets authenticated SSH clients write arbitrary f
Same weakness CWE-20 – Improper Input Validation
View allSame technique Information Disclosure
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Desktop 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Affected |
| SUSE Linux Enterprise Desktop 15 SP7 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP4 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP6 | Affected |
| SUSE Linux Enterprise Server 15 SP4 | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5 | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6 | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Affected |
| SUSE Manager Proxy 4.3 | Affected |
| SUSE Manager Retail Branch Server 4.3 | Affected |
| SUSE Manager Server 4.3 | Affected |
| SUSE Enterprise Storage 7.1 | Affected |
| SUSE Linux Enterprise Desktop 15 SP3 | Affected |
| SUSE Linux Enterprise Desktop 15 SP4 | Affected |
| SUSE Linux Enterprise Desktop 15 SP5 | Affected |
| SUSE Linux Enterprise Desktop 15 SP6 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP3 | Affected |
| SUSE Linux Enterprise Real Time 15 SP3 | Affected |
| SUSE Linux Enterprise Real Time 15 SP4 | Affected |
| SUSE Linux Enterprise Server 15 SP2-BCL | Affected |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP3 | Affected |
| SUSE Linux Enterprise Server 15 SP3-BCL | Affected |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Affected |
| SUSE Manager Proxy 4.2 | Affected |
| SUSE Manager Retail Branch Server 4.2 | Affected |
| SUSE Manager Server 4.2 | Affected |
| openSUSE Leap 15.4 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-46101
GHSA-7229-w5mh-32hm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB