CVE-2026-59995: OpenBSD OpenSSH path traversal in sftp client

CVE-2026-59995 · Severity: medium · CVSS 4.2 · Published 2026-07-08

OpenSSH is a widely used suite of secure networking utilities for remote login and file transfer. A vulnerability in the SFTP client allows a malicious server to trick a user into downloading files to an incorrect location on their computer. This could lead to important files being overwritten or the placement of malicious files in sensitive directories if a user connects to a compromised or untrusted server.

Technologies: OpenBSD Openssh. Vendors: OpenBSD.

Quick answers

Is CVE-2026-59995 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-59995 being exploited in the wild.
How severe is CVE-2026-59995?
Medium severity, with a CVSS score of 4.2, published 8 July 2026.
Which products and versions are affected?
OpenBSD Openssh before 10.4.
Is there a fix for CVE-2026-59995?
A patch was published on 2026-07-06: OpenSSH 10.4 released with security fixes. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-59995 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-59995?
Check whether you run OpenBSD Openssh at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A relative path traversal vulnerability (CWE-23) exists in the OpenSSH sftp client when using the command-line syntax 'sftp server:/path .'. The client fails to properly constrain the download location, allowing an attacker-controlled server to influence the local destination path. An attacker can exploit this by hosting a malicious SFTP server and enticing a user to connect and perform a download, resulting in files being written outside the intended directory. This issue is resolved in OpenSSH version 10.4.

Affected products

  • OpenBSD OpenSSH before 10.4

Timeline

  • 2026-07-06: patched: OpenSSH 10.4 released with security fixes.
  • 2026-07-08: disclosed: CVE-2026-59995 published.

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.