medium CVSS 4.2 EPSS 0.25%

CVE-2026-59996·OpenSSH vulnerability

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.

Severity
medium
Software
OpenSSH
Fixed in
10.4
Published

How likely is exploitation

FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.25% — higher than 15% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.

Affected versions

Until: 10.4

Fixed in: 10.4

How to fix this CVE

Update OpenSSH to version 1:10.4p1-1 or later to resolve a directory traversal issue in the scp utility that could allow files to be written outside the intended destination during remote-to-remote copy operations. This vulnerability is particularly concerning in automated backup and file transfer scenarios where scp is used with untrusted or partially-controlled paths. Apply the security update across all systems running affected OpenSSH versions.

sudo dnf update openssh-server openssh-clients

Defensia detects this vulnerability

How to check if you are affected

  1. Step 1: Run `ssh -V` and `scp -v /dev/null localhost:/tmp 2>&1 | grep -i openssh` to confirm the installed OpenSSH version
  2. Step 2: Cross-reference the version against the affected range (all versions before 1:10.4p1-1) using `dpkg -l | grep openssh-server` on Debian/Ubuntu or `rpm -qa | grep openssh-server` on RHEL/CentOS
  3. Step 3: Search system logs for scp activity with suspicious parent directory references using `grep -r 'scp' /var/log/auth.log* /var/log/secure* 2>/dev/null | grep -E '\.\./|parent'`
  4. Step 4: After updating, verify the fix using `ssh -V` and confirm the version is 1:10.4p1-1 or later, then restart the SSH service with `sudo systemctl restart sshd`

FAQ

What is CVE-2026-59996?

This vulnerability affects OpenSSH's scp command when performing file transfers between two remote systems. A malicious or misconfigured server could cause scp to write files to parent directories outside the intended target, leading to unintended file placement and potential system compromise.

Is CVE-2026-59996 being actively exploited?

No, this vulnerability is not currently listed as being actively exploited according to CISA KEV data, and no public exploits are known to be available.

What versions of OpenSSH are affected by CVE-2026-59996?

All versions of OpenSSH prior to 1:10.4p1-1 are affected by this vulnerability. This includes OpenSSH 10.3 and all earlier releases.

How do I check if my server is vulnerable to CVE-2026-59996?

Run `ssh -V` to display your OpenSSH version. If the output shows a version earlier than 10.4p1, your system is vulnerable and requires patching.

Does Defensia detect CVE-2026-59996?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If OpenSSH is installed on a monitored server, CVE-2026-59996 will appear in your dashboard with remediation steps.

Related OpenSSH CVEs

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-59996. Free for 1 server.

Get started free