CVE-2026-59995 Path traversal in OpenSSH
An attacker-controlled SFTP server can write files to arbitrary locations on the client system during download operations.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-59995?
CVE-2026-59995 is a medium-severity path traversal vulnerability in OpenSSH, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
sftp in OpenSSH before 10.4 does not properly constrain the location of downloaded files when "sftp server:/path ." is used with an attacker-controlled server.
Weakness: CWE-23
Which versions are affected by CVE-2026-59995?
It affects 1 product.
Products include OpenSSH.
How do I fix CVE-2026-59995?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-59995 being exploited?
There is no known exploitation of CVE-2026-59995 in the wild and no public exploit code.
Other vulnerabilities in OpenSSH
Sources
Also known as ALPINE-CVE-2026-59995, AZL-92042, BELL-CVE-2026-59995, DEBIAN-CVE-2026-59995, ECHO-086a-cd07-bc73, GHSA-2prh-86cw-fm96 and 5 more.