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

An improper handling of destination paths in the scp utility of OpenSSH versions earlier than 10.4 can cause a transferred file to be written in the parent directory of the intended location when scp is used to copy between two remote hosts. This path‑traversal flaw (CWE‑22 and CWE‑23) allows an attacker to overwrite or create files in unintended locations, potentially affecting configuration files or system binaries, but does not provide arbitrary code execution. The impact is limited to the integrity of files on the target system and could lead to accidental or intentional file disruption.

Affected Systems

Systems running OpenBSD OpenSSH before 10.4p1 are affected. Any installation of OpenSSH whose version suffix does not indicate 10.4 or later should be considered vulnerable; administrators should verify the installed version and plan a replacement or upgrade accordingly.

Risk and Exploitability

The CVSS score of 4.2 indicates moderate severity. The EPSS score of less than 1% reflects a very low likelihood of exploitation in the wild. The vulnerability is not listed in CISA KEV, suggesting no known large‑scale exploitation. The likely attack vector involves a remote attacker who can request scp to transfer a file between two hosts under their control; the attacker would force the target system to place the file in an unintended parent directory, potentially leading to accidental or intentional file disruption. No privilege escalation or code execution is required to exploit this flaw.

Generated by OpenCVE AI on July 25, 2026 at 20:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to OpenSSH 10.4p1 or later, applying the official security release that corrects the path handling bug.
  • If an immediate upgrade is not possible, avoid performing scp remote‑to‑remote transfers; instead, stage files through a local machine or perform two separate scp operations from local to each remote host.
  • Implement file integrity monitoring on affected directories to detect unintended file creations in parent folders.

Generated by OpenCVE AI on July 25, 2026 at 20:51 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

No data.

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-59996 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-25T21:00:14Z

Weaknesses
  • CWE-22

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

  • CWE-23

    Relative Path Traversal