← Vulnerability feed

Vulnerability record · CVE-2019-6111 · published 31 January 2019

CVE-2019-6111: OpenSSH scp client path traversal allows arbitrary file overwrite

Openbsd · Openssh

The scp client in OpenSSH 7.9 inherits its design from 1983 rcp, where the server decides which files and directories are sent. The client only performs cursory validation of returned object names, preventing directory traversal but not other malicious names, so a malicious scp server or man-in-the-middle can overwrite arbitrary files in the client's target directory. This matters because scp is widely used for trusted file transfer and the flaw breaks that trust assumption.

5.9 CVSS 3.1 Medium EPSS 58% · top 0.9% CWE-22 · Path traversal
5.9CVSS 3.1 base score, v2 5.8
58%EPSS exploitation probability, 30 days
NoNot in CISA KEV
19Affected product versions listed by NVD
46References, 4 tagged exploit
17 Jun 2026Last modified by NVD

Description

An issue was discovered in OpenSSH 7.9. Due to the scp implementation being derived from 1983 rcp, the server chooses which files/directories are sent to the client. However, the scp client only performs cursory validation of the object name returned (only directory traversal attacks are prevented). A malicious scp server (or Man-in-The-Middle attacker) can overwrite arbitrary files in the scp client target directory. If recursive operation (-r) is performed, the server can manipulate subdirectories as well (for example, to overwrite the .ssh/authorized_keys file).

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

high priorityPublic exploit code exists and EPSS is very high, but exploitation requires a malicious or man-in-the-middle server and the CVSS impact is limited to integrity (5.9).

What it is

The scp client in OpenSSH 7.9 inherits its design from 1983 rcp, where the server decides which files and directories are sent. The client only performs cursory validation of returned object names, preventing directory traversal but not other malicious names, so a malicious scp server or man-in-the-middle can overwrite arbitrary files in the client's target directory. This matters because scp is widely used for trusted file transfer and the flaw breaks that trust assumption.

Impact

An attacker controlling the scp server or positioned as a man-in-the-middle can overwrite arbitrary files in the client's target directory, and with recursive (-r) operation can manipulate subdirectories, for example overwriting .ssh/authorized_keys to gain persistent access.

Attack surface

Reached over the network via the scp protocol when a client connects to a malicious or compromised server, or when a man-in-the-middle intercepts the connection. No authentication or user interaction beyond initiating the scp transfer is required per the CVSS vector (AV:N/AC:H/PR:N/UI:N).

Exploitation

Not listed in CISA KEV, but EPSS is high (0.58204, 99.051 percentile) and references include Exploit tags (Bugzilla, Exploit-DB 46193), indicating public exploit code exists.

What to do

  • Patch OpenSSH and affected products to versions containing the scp fix; apply vendor errata such as RHSA-2019:3702, USN-3885-1/2, DSA-4387, and FreeBSD-EN-19:10.scp.
  • Where patching is not immediately possible, avoid scp for transfers from untrusted or untrusted-network servers and use sftp instead.
  • Verify server host keys and use strict host key checking to reduce man-in-the-middle exposure.
  • Restrict scp client use to trusted servers and monitor for unexpected file changes in target directories, especially .ssh/authorized_keys.

Detection

  • Monitor for unexpected modifications to .ssh/authorized_keys and other sensitive files in directories used as scp targets.
  • Audit scp client invocations and correlate with connections to untrusted or newly seen servers.
  • Check for scp client versions prior to the fix and track patch status across OpenSSH and listed products.
  • Review network traffic for scp sessions where the server sends filenames containing path separators or unexpected names.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

19 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00058.html Broken Link
http://www.openwall.com/lists/oss-security/2019/04/18/1 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2022/08/02/1 Mailing ListThird Party Advisory
http://www.securityfocus.com/bid/106741 Broken LinkThird Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2019:3702 Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=1677794 ExploitIssue TrackingThird Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf Third Party Advisory
https://cvsweb.openbsd.org/src/usr.bin/ssh/scp.c Release Notes
https://lists.apache.org/thread.html/c45d9bc90700354b58fb7455962873c44229841880dcb64842fa7d23%40%3Cdev.mina.apache.org%3
https://lists.apache.org/thread.html/c7301cab36a86825359e1b725fc40304d1df56dc6d107c1fe885148b%40%3Cdev.mina.apache.org%3
https://lists.apache.org/thread.html/d540139359de999b0f1c87d05b715be4d7d4bec771e1ae55153c5c7a%40%3Cdev.mina.apache.org%3
https://lists.apache.org/thread.html/e47597433b351d6e01a5d68d610b4ba195743def9730e49561e8cf3f%40%3Cdev.mina.apache.org%3
https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W3YVQ2BPTOVDCFDVNC2GGF5
https://security.gentoo.org/glsa/201903-16 Third Party Advisory
https://security.netapp.com/advisory/ntap-20190213-0001/ Third Party Advisory
https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt Third Party Advisory
https://usn.ubuntu.com/3885-1/ Third Party Advisory
https://usn.ubuntu.com/3885-2/ Third Party Advisory
https://www.debian.org/security/2019/dsa-4387 Third Party Advisory
https://www.exploit-db.com/exploits/46193/ ExploitThird Party AdvisoryVDB Entry
https://www.freebsd.org/security/advisories/FreeBSD-EN-19:10.scp.asc Third Party Advisory
https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html PatchThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00058.html Broken Link
http://www.openwall.com/lists/oss-security/2019/04/18/1 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2022/08/02/1 Mailing ListThird Party Advisory
http://www.securityfocus.com/bid/106741 Broken LinkThird Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2019:3702 Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=1677794 ExploitIssue TrackingThird Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf Third Party Advisory
https://cvsweb.openbsd.org/src/usr.bin/ssh/scp.c Release Notes
https://lists.apache.org/thread.html/c45d9bc90700354b58fb7455962873c44229841880dcb64842fa7d23%40%3Cdev.mina.apache.org%3
https://lists.apache.org/thread.html/c7301cab36a86825359e1b725fc40304d1df56dc6d107c1fe885148b%40%3Cdev.mina.apache.org%3
https://lists.apache.org/thread.html/d540139359de999b0f1c87d05b715be4d7d4bec771e1ae55153c5c7a%40%3Cdev.mina.apache.org%3
https://lists.apache.org/thread.html/e47597433b351d6e01a5d68d610b4ba195743def9730e49561e8cf3f%40%3Cdev.mina.apache.org%3
https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W3YVQ2BPTOVDCFDVNC2GGF5
https://security.gentoo.org/glsa/201903-16 Third Party Advisory
https://security.netapp.com/advisory/ntap-20190213-0001/ Third Party Advisory
https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt Third Party Advisory

Track CVE-2019-6111 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2019-6111), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.