CVE-2026-59996

openssh: OpenSSH: `scp` file misplacement vulnerability during remote copy

Published Jul 8, 2026 CVSS 3.1 · 4.2 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The reported flaw occurs when the scp command in OpenSSH versions earlier than 10.4 copies a file between two remote hosts. The path handling logic can mistakenly place the copied file inside the parent directory of the intended destination rather than the specified subdirectory. This path traversal vulnerability (CWE‑22 and CWE‑23) can lead to unintended file creation or overwrite in locations such as configuration files or system binaries, but it does not grant arbitrary code execution or broader compromise. The impact is confined to the integrity of files on the target host.

Affected Systems

Systems running OpenBSD OpenSSH versions prior to 10.4p1 are affected. Any installation where the version number is less than "10.4" should be examined, and administrators should verify the installed version and plan an upgrade if necessary.

Risk and Exploitability

The CVSS score of 4.2 indicates a moderate severity assessment. The EPSS score is reported as less than 1 %, denoting a very low probability of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog, suggesting no known widespread exploitation. The likely attack vector involves a remote attacker who controls or can influence both source and destination hosts for an scp remote‑to‑remote transfer; the attacker would design the transfer to cause the file to be written in the unintended parent directory. This inference is drawn from the nature of the flaw and the requirement of a remote‑to‑remote operation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenSSH to version 10.4p1 or later, applying the vendor’s security release that corrects the path handling bug.
  • If an upgrade cannot be performed immediately, avoid using scp for remote‑to‑remote transfers; instead, copy the file to a local machine first and then to each remote host separately.
  • Implement file‑integrity monitoring on directories where sensitive files reside to detect unexpected creations or modifications in parent folders.

Generated by OpenCVE AI on July 31, 2026 at 14:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8533-1 OpenSSH vulnerabilities
History
Type Values Removed Values Added
Title openssh: OpenSSH: `scp` file misplacement vulnerability during remote copy
Weaknesses CWE-22
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Title scp Remote-to-Remote Transfer Improper File Placement
Type Values Removed Values Added
Title scp Remote-to-Remote Transfer Improper File Placement
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
First Time appeared Openbsd
Openbsd openssh
Weaknesses CWE-23
CPEs cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:*
Vendors & Products Openbsd
Openbsd openssh
References
Metrics cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-23

    Relative Path Traversal

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jul 8, 2026, 1:03 PM
Reserved
Jul 8, 2026, 12:07 AM
Status
Analyzed
Published
Jul 8, 2026, 1:16 AM
Modified
Oct 25, 2026, 8:10 PM
Severity
Moderate
Public date
Jul 8, 2026, 12:07 AM