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.
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.
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.
- < 10.4
Official advisory · high-confidence parse· fetched 3 hours ago·verify at source
- openssh-main-10.4p1-1.hum1
- RHSA-2026:37382
Official advisory · high-confidence parse· fetched 3 hours ago·verify at source
Mitigation checklist
- 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.