Skip to content
VulniPulse
Medium5.4Red Hat Linux

Medium [CVE-2026-59995] sftp client allows attacker to control downloaded file location

This medium-severity Red Hat Linux advisory covers CVE-2026-59995 affecting Red Hat Hardened Images, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6.

CVE-2026-59995 Published Jul 8, 2026Updated by vendor Jul 8, 2026
Affected products & platforms
Red Hat LinuxRed Hat Enterprise Linux
Open vendor advisory

Android app · Google Play

Monitor future Red Hat Linux CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.

Matching phone alertsOptional email delivery

Summary

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. A flaw was found in OpenSSH.

The `sftp` client, when used to download files from a malicious server with the 'sftp server:/path.' command, does not properly restrict where those files are saved.

This allows an attacker to control the download location, potentially overwriting existing files or placing malicious files in sensitive directories on the client system, which could compromise system integrity. Red Hat severity: Moderate — CVSS 5.4 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L).

Weakness: CWE-22. Affected Red Hat products: Red Hat Hardened Images; Red Hat Enterprise Linux 10; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9; Red Hat OpenShift Container Platform 4.

Red Hat fixing advisory: RHSA-2026:37382.

Affected products named by the advisory: Red Hat package: openssh.

Affected versions
  • < 10.4

Official advisory · high-confidence parse· fetched 3 hours ago·verify at source

Fixed versions
  • openssh-main-10.4p1-1.hum1
  • RHSA-2026:37382

Official advisory · high-confidence parse· fetched 3 hours ago·verify at source

Mitigation checklist

Recommended fix / mitigation
  • To mitigate this issue, avoid using the `sftp server:/path .` command when connecting to untrusted or potentially malicious SFTP servers. Exercise caution and verify the authenticity of SFTP servers before initiating file transfers, especially when using commands that implicitly define the download destination, and also avoid running SFTP sessions with elevated privileges (such as root).

Official advisory · high-confidence parse· fetched 3 hours ago·verify at source

Discussion(0)

No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.

Sign in to join the discussion.