CVE-2026-59995: CWE-23 Relative Path Traversal in OpenBSD OpenSSH
A relative path traversal vulnerability exists in the sftp component of OpenSSH versions prior to 10.4. This flaw allows an attacker controlling the sftp server to influence the location where files are downloaded when using the command "sftp server:/path .". The vulnerability could lead to limited integrity and availability impacts but does not affect confidentiality.
AI Analysis
Technical Summary
CVE-2026-59995 is a CWE-23 relative path traversal vulnerability in OpenSSH's sftp client before version 10.4. When a user runs the command "sftp server:/path ." with a malicious or attacker-controlled server, the client does not properly restrict where downloaded files are saved locally. This improper constraint could allow files to be written outside the intended directory, potentially overwriting or corrupting local files. The vulnerability has a CVSS 3.1 base score of 4.2, indicating medium severity, with network attack vector, high attack complexity, no privileges required, user interaction required, unchanged scope, no confidentiality impact, low integrity impact, and low availability impact.
Potential Impact
The vulnerability may allow an attacker controlling the sftp server to cause the client to write files to unintended locations on the local system, potentially leading to limited integrity and availability issues such as overwriting or corrupting local files. There is no confidentiality impact reported. No known exploits are currently in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the OpenBSD vendor advisory for current remediation guidance. Until an official fix is available, users should exercise caution when using sftp with untrusted servers, especially with commands that specify remote paths and local destination directories. Avoid running sftp commands that download files from untrusted servers to local directories without verifying the server's trustworthiness.
CVE-2026-59995: CWE-23 Relative Path Traversal in OpenBSD OpenSSH
Description
A relative path traversal vulnerability exists in the sftp component of OpenSSH versions prior to 10.4. This flaw allows an attacker controlling the sftp server to influence the location where files are downloaded when using the command "sftp server:/path .". The vulnerability could lead to limited integrity and availability impacts but does not affect confidentiality.
CVSS v3.1
Score 4.2medium
Affected software
Run 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-59995 is a CWE-23 relative path traversal vulnerability in OpenSSH's sftp client before version 10.4. When a user runs the command "sftp server:/path ." with a malicious or attacker-controlled server, the client does not properly restrict where downloaded files are saved locally. This improper constraint could allow files to be written outside the intended directory, potentially overwriting or corrupting local files. The vulnerability has a CVSS 3.1 base score of 4.2, indicating medium severity, with network attack vector, high attack complexity, no privileges required, user interaction required, unchanged scope, no confidentiality impact, low integrity impact, and low availability impact.
Potential Impact
The vulnerability may allow an attacker controlling the sftp server to cause the client to write files to unintended locations on the local system, potentially leading to limited integrity and availability issues such as overwriting or corrupting local files. There is no confidentiality impact reported. No known exploits are currently in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the OpenBSD vendor advisory for current remediation guidance. Until an official fix is available, users should exercise caution when using sftp with untrusted servers, especially with commands that specify remote paths and local destination directories. Avoid running sftp commands that download files from untrusted servers to local directories without verifying the server's trustworthiness.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-07-08T00:04:49.591Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4da0cec9d9e3dbe333a496
Added to database: 07/08/2026, 00:58:54 UTC
Last enriched: 07/08/2026, 01:14:11 UTC
Last updated: 07/08/2026, 01:14:11 UTC
Views: 2
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.