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.
Published: 2026-07-08
Score: 4.2 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Sat, 11 Jul 2026 00:15:00 +0000

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


Fri, 10 Jul 2026 15:15:00 +0000

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

Thu, 09 Jul 2026 11:00:00 +0000

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

Wed, 08 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 08 Jul 2026 01:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-07-08T13:03:41.694Z

Reserved: 2026-07-08T00:07:07.370Z

Link: CVE-2026-59996

cve-icon Vulnrichment

Updated: 2026-07-08T13:03:38.853Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-08T01:16:28.557

Modified: 2026-07-09T17:14:27.620

Link: CVE-2026-59996

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-08T00:07:07Z

Links: CVE-2026-59996 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T14:15:03Z

Weaknesses
  • CWE-22

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

  • CWE-23

    Relative Path Traversal