CVE-2026-48827: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Apache Software Foundation Apache MINA SSHD
A path traversal vulnerability (CWE-22) exists in Apache MINA SSHD's sshd-git bundle, allowing authenticated SSH users to access git repositories outside the configured server root directory due to insufficient path validation in git-upload-pack, git-receive-pack, and related operations. This affects applications using org.apache.sshd:sshd-git. The issue is fixed in Apache MINA SSHD version 2.18.0 and in milestone 3.0.0-M4. Users should upgrade to these versions to mitigate the vulnerability. Additional security controls beyond file system permissions are recommended for professional git servers.
AI Analysis
Technical Summary
CVE-2026-48827 is a path traversal vulnerability in the Apache MINA SSHD sshd-git bundle. It arises from a lack of proper path validation in git-related operations such as git-upload-pack and git-receive-pack, which allows authenticated SSH users to access git repositories outside the intended root directory. This vulnerability affects only applications that use the sshd-git component (org.apache.sshd:sshd-git). The flaw is present in version 2.0.0 and pre-release milestones 3.0.0-M1 through 3.0.0-M3. The Apache Software Foundation has fixed this issue in version 2.18.0 and milestone 3.0.0-M4. The advisory also notes that relying solely on file system layout and permissions is insufficient for securing git servers and recommends implementing additional access controls.
Potential Impact
The vulnerability allows an authenticated SSH user to perform path traversal attacks, potentially accessing git repositories outside the configured server root directory. This can lead to unauthorized read access to sensitive repositories. The CVSS 3.1 score is 7.1 (high), reflecting network attack vector, low attack complexity, required privileges, no user interaction, and high confidentiality impact with limited integrity impact and no availability impact.
Mitigation Recommendations
Upgrade affected applications using org.apache.sshd:sshd-git to Apache MINA SSHD version 2.18.0 or later, or to milestone 3.0.0-M4 or later for the upcoming major version. Since the vendor advisory does not explicitly state the remediation level, patch status is inferred from the upgrade recommendation. Additionally, implement security controls beyond file system permissions to govern access to git repositories and restrict allowed operations. Patch status is not explicitly confirmed in the advisory; therefore, check the vendor advisory for the latest remediation guidance.
CVE-2026-48827: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Apache Software Foundation Apache MINA SSHD
Description
A path traversal vulnerability (CWE-22) exists in Apache MINA SSHD's sshd-git bundle, allowing authenticated SSH users to access git repositories outside the configured server root directory due to insufficient path validation in git-upload-pack, git-receive-pack, and related operations. This affects applications using org.apache.sshd:sshd-git. The issue is fixed in Apache MINA SSHD version 2.18.0 and in milestone 3.0.0-M4. Users should upgrade to these versions to mitigate the vulnerability. Additional security controls beyond file system permissions are recommended for professional git servers.
CVSS v3.1
Score 7.1high
Affected software
pkg:maven/org.apache.sshd/sshd-gitRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-48827 is a path traversal vulnerability in the Apache MINA SSHD sshd-git bundle. It arises from a lack of proper path validation in git-related operations such as git-upload-pack and git-receive-pack, which allows authenticated SSH users to access git repositories outside the intended root directory. This vulnerability affects only applications that use the sshd-git component (org.apache.sshd:sshd-git). The flaw is present in version 2.0.0 and pre-release milestones 3.0.0-M1 through 3.0.0-M3. The Apache Software Foundation has fixed this issue in version 2.18.0 and milestone 3.0.0-M4. The advisory also notes that relying solely on file system layout and permissions is insufficient for securing git servers and recommends implementing additional access controls.
Potential Impact
The vulnerability allows an authenticated SSH user to perform path traversal attacks, potentially accessing git repositories outside the configured server root directory. This can lead to unauthorized read access to sensitive repositories. The CVSS 3.1 score is 7.1 (high), reflecting network attack vector, low attack complexity, required privileges, no user interaction, and high confidentiality impact with limited integrity impact and no availability impact.
Mitigation Recommendations
Upgrade affected applications using org.apache.sshd:sshd-git to Apache MINA SSHD version 2.18.0 or later, or to milestone 3.0.0-M4 or later for the upcoming major version. Since the vendor advisory does not explicitly state the remediation level, patch status is inferred from the upgrade recommendation. Additionally, implement security controls beyond file system permissions to govern access to git repositories and restrict allowed operations. Patch status is not explicitly confirmed in the advisory; therefore, check the vendor advisory for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-05-23T09:06:08.581Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a1d4e75e29bf47b50cd4a20
Added to database: 06/01/2026, 09:18:45 UTC
Last enriched: 07/10/2026, 09:50:51 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 101
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.