CVE-2026-59996 Path traversal in OpenSSH
An attacker can cause scp to write files to the parent directory instead of the intended destination during remote-to-remote copies.
- 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-59996?
CVE-2026-59996 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
scp in OpenSSH before 10.4 may place a file in the parent directory of an intended directory when the copy occurs between two remote destinations.
Weakness: CWE-23
Which versions are affected by CVE-2026-59996?
It affects 1 product.
Products include OpenSSH.
How do I fix CVE-2026-59996?
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-59996 being exploited?
There is no known exploitation of CVE-2026-59996 in the wild and no public exploit code.
Other vulnerabilities in OpenSSH
Sources
Also known as ALPINE-CVE-2026-59996, AZL-92039, BELL-CVE-2026-59996, DEBIAN-CVE-2026-59996, ECHO-ceaa-464e-a66e, GHSA-8v2x-fhq9-4fv3 and 5 more.