Skip to main content

OpenSSH CVE-2026-59996

| EUVDEUVD-2026-42138 MEDIUM
Relative Path Traversal (CWE-23)
2026-07-08 mitre GHSA-8v2x-fhq9-4fv3
5.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker operates malicious SSH endpoint
  2. Delivery
    Victim initiates remote-to-remote scp transfer involving attacker endpoint
  3. Exploit
    Malicious server returns crafted destination path with traversal component
  4. Execution
    scp resolves path into parent of intended directory
  5. Persist
    File written to unintended parent directory location
  6. Impact
    Integrity or availability impact on target filesystem

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Relative path traversal prevention
Exploitation Conditions

Exploitation requires the scp copy to occur specifically in remote-to-remote (third-party) mode, where both the source and destination are remote hosts rather than the local client - this is a non-default and less common usage pattern. The CVSS UI:R metric confirms a user (or automated process acting as a user) must actively initiate the scp transfer. AC:H indicates the attacker must satisfy additional conditions beyond network reachability, specifically the ability to influence or control one of the two remote SSH endpoints involved in the transfer to return a maliciously crafted path. Standard scp invocations copying from a local machine to a remote host, or vice versa, are not described as affected. Authentication requirements are not applicable to the initiating user per PR:N in the CVSS vector, but the attacker must operate a reachable SSH endpoint that the victim's scp session connects to.

Impact

The CVSS 3.1 score of 4.2 (Medium) accurately reflects a vulnerability with meaningful real-world constraints. The vector AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L breaks down as: network reachable (AV:N) but requiring high attack complexity (AC:H), user-initiated transfer (UI:R), no confidentiality exposure (C:N), and only limited integrity and availability impact. The AC:H metric is significant - it implies the attacker must control or influence one of the remote SSH endpoints involved in the transfer, which is a non-trivial prerequisite. The UI:R metric further limits opportunistic exploitation; a user must actively initiate the scp remote-to-remote command. No EPSS data was provided in the source intelligence; no KEV listing is present; no POC exists at time of analysis. The practical risk is highest in automated pipeline or backup environments that script remote-to-remote scp transfers, especially where one of the remote hosts is not fully trusted. The absence of confidentiality impact (C:N) limits the intelligence-gathering value to an attacker; the primary concern is file placement integrity.

Exploit ScenarioDerived

An attacker who controls a malicious SSH server could wait for a victim's automated backup or deployment script to invoke scp in remote-to-remote mode - for example, copying artifacts from a build host to that attacker-controlled server and then on to a second destination. The malicious server returns a crafted path response causing scp to write the transferred file one directory level above the intended destination, potentially overwriting a configuration file or executable in the parent path. No public exploit identified at time of analysis; the AC:H rating suggests exploitation is not trivially repeatable without control of a participating remote endpoint.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 08, 2026

Path traversal in the scp utility of OpenSSH before 10.4 causes files to be written into the parent directory of the intended destination during remote-to-remote copy operations. The root cause is CWE-23 (Relative Path Traversal): scp fails to canonicalize or sanitize paths when relaying data between two remote hosts, allowing an attacker controlling a malicious endpoint to influence where transferred files land. No public exploit identified at time of analysis, and active exploitation has not been confirmed by CISA KEV; the CVSS AC:H and UI:R metrics significantly constrain real-world exploitability.

RemediationAI

Upgrade to OpenSSH 10.4p1 or later, which resolves the scp path traversal flaw; the release notes are published at https://www.openssh.org/releasenotes.html#10.4p1. Until patching is possible, the most effective workaround is to replace remote-to-remote scp usage with sftp (via sftp batch mode or lftp) or rsync over SSH, both of which handle path construction differently and are not subject to this flaw - note that this may require scripting changes in automated workflows. A secondary mitigation is to restrict scp usage policies so that remote-to-remote (third-party copy) mode is disallowed at the SSH server level or via wrapper scripts that reject the relevant scp flags. Monitoring destination directories for unexpected files appearing in parent paths can serve as a detection control while patching is underway.

Affected VersionsENISA

OpenSSH 0 <10.4

Affected Packages

euvd openssh fix: 10.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenSSH's scp utility supports a third-party or remote-to-remote transfer mode where the initiating client instructs one remote host to send data directly to another. CWE-23 (Relative Path Traversal) describes the root cause: during such transfers, scp does not properly resolve or validate the destination path, permitting traversal into the parent directory via components such as '..' or crafted filenames. The flaw is isolated to this specific scp code path - standard client-to-remote or remote-to-client transfers are not described as affected. The CPE cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:* covers all versions across platforms until the fix landed in 10.4p1. SFTP-based transfers, which use a different protocol and path-handling code, are not implicated. The OpenSSH development community disclosed the issue via the oss-security mailing list and the openssh-unix-dev list, consistent with a coordinated upstream disclosure.

Know when Openssh gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY MEDIUM
NVD 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
vuln.today AI 4.2 MEDIUM

Remote-to-remote scp requires user-initiated transfer (UI:R) with high attack complexity (AC:H); path misplacement causes limited integrity and availability impact with no confidentiality exposure.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
SUSE 4.2 MEDIUM
AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L
Red Hat 4.6 MEDIUM

Primary rating from Vendor (mitre).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

Lifecycle Timeline

2
CVSS changed
Jul 09, 2026 - 17:22 NVD
4.2 (MEDIUM) 5.4 (MEDIUM)
Patch available
Jul 08, 2026 - 02:01 EUVD

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Ubiquitous
OpenSSH is the dominant SSH implementation across Linux, BSD, and macOS
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2023-38408 CRITICAL POC
9.8 Jul 20

The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remot

CVE-2023-25136 MEDIUM POC
6.5 Feb 03

OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. Rated medium se

CVE-2016-6210 MEDIUM POC
5.9 Feb 13

sshd in OpenSSH before 7.3, when SHA256 or SHA512 are used for user password hashing, uses BLOWFISH hashing on a static

CVE-2015-5600 HIGH POC
8.1 Aug 03

The kbdint_next_device function in auth2-chall.c in sshd in OpenSSH through 6.9 does not properly restrict the processin

CVE-2016-6515 HIGH POC
7.5 Aug 07

The auth_password function in auth-passwd.c in sshd in OpenSSH before 7.3 does not limit password lengths for password a

CVE-2026-123158 HIGH POC
8.1 Nov 05

Password authentication bypass in OpenSSH sshd before 10.6p2 built against musl libc without PAM lets a remote, unauthen

CVE-2024-6387 HIGH POC
8.1 Jul 01

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to

CVE-2019-6111 MEDIUM POC
5.9 Jan 31

An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no

CVE-2025-26465 MEDIUM
6.8 Feb 18

A vulnerability was found in OpenSSH when the VerifyHostKeyDNS option is enabled. Rated medium severity (CVSS 6.8), this

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2016-0777 MEDIUM
6.5 Jan 14

The resend_bytes function in roaming_common.c in the client in OpenSSH 5.x, 6.x, and 7.x before 7.1p2 allows remote serv

CVE-2016-3115 MEDIUM POC
6.4 Mar 22

Multiple CRLF injection vulnerabilities in session.c in sshd in OpenSSH before 7.2p2 allow remote authenticated users to

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SLES15-SP5-CHOST-BYOS-SAP-CCloud Affected
SLES15-SP6-CHOST-BYOS Affected
SLES15-SP6-CHOST-BYOS-Aliyun Affected
SLES15-SP6-CHOST-BYOS-Azure Affected
SLES15-SP6-CHOST-BYOS-EC2 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy