Skip to main content

OpenSSH sftp EUVDEUVD-2026-42137

| CVE-2026-59995 MEDIUM
Relative Path Traversal (CWE-23)
2026-07-08 mitre GHSA-2prh-86cw-fm96
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 or hijacks SFTP server
  2. Delivery
    Victim executes 'sftp server:/path .' download
  3. Exploit
    Server returns traversal-prefixed filenames
  4. Execution
    sftp client writes files outside target directory
  5. Persist
    Sensitive user or config files overwritten
  6. Impact
    Attacker achieves persistence or privilege escalation

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 two simultaneous conditions: (1) the victim must actively invoke the sftp client using the specific 'sftp server:/path .' bulk-download syntax - not a passive or background operation - and (2) the server must be attacker-controlled or interceptable via MITM. The vulnerability does not affect passive sftp sessions, sshd, ssh login, or scp. File writes are bounded by the operating system permissions of the victim's process (typically user UID), meaning root-owned files cannot be overwritten unless the victim is running sftp as root. Non-default deployment is not a factor - the vulnerability is present in any standard OpenSSH sftp client install prior to 10.4p1 when the described usage pattern occurs. UI:R in the CVSS vector confirms user interaction is required and passive, opportunistic exploitation against idle systems is not possible.

Impact

The NVD CVSS 3.1 score of 4.2 (AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L) accurately reflects a meaningful but bounded threat. High attack complexity (AC:H) requires the attacker to control or impersonate the SFTP server, and required user interaction (UI:R) means a victim must actively initiate the sftp session with the specific bulk-download syntax. The impact is limited to integrity and availability (no confidentiality loss), and file writes are further constrained by the victim's operating system permissions. EPSS data is not yet available for this newly disclosed CVE, and no CISA KEV listing or public exploit code exists at time of analysis. Despite the low per-instance score, the ubiquity of OpenSSH across production Linux infrastructure warrants prompt patching - a file write primitive against ssh configuration files or cron directories could serve as a privilege escalation stepping stone in chained attacks.

Exploit ScenarioDerived

An attacker stands up a malicious SFTP server and entices a victim to download files using 'sftp attacker-server:/files .' - achievable via phishing, DNS poisoning, or BGP hijack. The malicious server returns filenames prefixed with path traversal sequences, causing the sftp client to silently write files such as a backdoored ~/.ssh/authorized_keys or a cron job outside the victim's intended download directory. No public exploit code has been identified at time of analysis, but the technique is straightforward to implement by any operator of a malicious SFTP service.

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 OpenSSH sftp client before version 10.4p1 allows an attacker-controlled server to write downloaded files outside the user's intended target directory when the 'sftp server:/path .' bulk-download syntax is used. Affected are all OpenSSH deployments where users sftp from untrusted or attacker-controlled hosts, which in practice spans virtually every Linux and Unix environment. No public exploit has been identified at time of analysis and the vulnerability is not listed in CISA KEV, though the ubiquity of OpenSSH elevates aggregate exposure despite the moderate per-instance severity.

RemediationAI

Upgrade to OpenSSH 10.4p1, which includes the fix constraining sftp client download paths; release notes are at https://www.openssh.org/releasenotes.html#10.4p1. For environments where immediate upgrade is not possible, administrators should enforce policy prohibiting use of the 'sftp server:/path .' bulk-download invocation against untrusted or externally controlled servers - note this is a procedural control only, as no technical flag prevents the pattern without patching. Additionally, restricting outbound SFTP connections at the network perimeter to known-trusted servers reduces exposure by eliminating the attacker-controlled-server prerequisite. Security teams should prioritize patching on systems where developers, administrators, or automated scripts routinely sftp from third-party or public hosts, as those are the realistic exploitation scenarios.

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

CWE-23 (Relative Path Traversal) describes the root cause: the sftp client fails to sanitize or constrain server-supplied filenames during bulk downloads. When the user invokes 'sftp server:/path .' the client is expected to restrict all file writes to the current working directory; instead, a malicious server can return filenames containing relative traversal sequences such as '../../.ssh/authorized_keys', causing the client to write files at arbitrary paths reachable by the victim's UID. The vulnerability is confined to the sftp client binary and does not affect sshd, ssh, or scp. The affected CPE is cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:* covering all releases prior to 10.4.

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

AT:P captures the attacker-server prerequisite; UI:A reflects the required active sftp invocation; VC:N/VI:L/VA:L matches bounded file-write impact with no confidentiality loss and no subsequent-system scope change.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/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 5.4 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

sftp in OpenSSH before 10.4 does not properly constrain the location of downloaded files when "sftp server:/path ." is used with an attacker-controlled server.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Ubiquitous
core SSH suite shipped by default on virtually all Linux and Unix systems
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor CIRCL GitHub VulDB

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 Yes
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

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: +20
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-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

CVE-2019-6110 MEDIUM POC
6.8 Jan 31

In OpenSSH 7.9, due to accepting and displaying arbitrary stderr output from the server, a malicious server (or Man-in-T

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