CVE-2019-6111
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).
Severity
MEDIUM
CVSS v3
5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N · source nvd
Exploit chance (EPSS)
58.204%
chance of exploitation in the next 30 days
higher than 99.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 2
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2025-12-18 |
Timeline
- 2019-01-11First Exploit-DB entry (EDB-ID 46516)20 days before publication
- 2019-01-31Published by the CNA00:00 UTC
- 2025-12-18CISA SSVC decision recorded2513 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 46193 | remote | multiple | 2019-01-18 | no |
| EDB-ID 46516 | remote | multiple | 2019-01-11 | no |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| openbsd openssh | through 7.9no fix listed | not listed |
| apache mina_sshd | 2.2.0no fix listed | not listed |
| canonical ubuntu_linux | 14.04no fix listed16.04no fix listed18.04no fix listed18.10no fix listed | not listednot listednot listednot listed |
| debian debian_linux | 8.0no fix listed9.0no fix listed | not listednot listed |
| fedoraproject fedora | 30no fix listed | not listed |
| freebsd freebsd | before 12.0fixed in 12.012.0no fix listed | 12.0not listed |
| fujitsu m10-1_firmware | ||
| fujitsu m10-4_firmware | ||
| fujitsu m10-4s_firmware | ||
| fujitsu m12-1_firmware | ||
| fujitsu m12-2_firmware | ||
| fujitsu m12-2s_firmware | ||
| redhat enterprise_linux | 7.0no fix listed8.0no fix listed | not listednot listed |
| redhat enterprise_linux_eus | 8.1no fix listed8.2no fix listed8.4no fix listed8.6no fix listed | not listednot listednot listednot listed |
| redhat enterprise_linux_server_aus | 8.2no fix listed8.4no fix listed8.6no fix listed | not listednot listednot listed |
| redhat enterprise_linux_server_tus | 8.2no fix listed8.4no fix listed8.6no fix listed | not listednot listednot listed |
| siemens scalance_x204rna_eec_firmware | before 3.2.7fixed in 3.2.7 | 3.2.7 |
| siemens scalance_x204rna_firmware | before 3.2.7fixed in 3.2.7 | 3.2.7 |
| winscp winscp | through 5.1.3no fix listed | not listed |
References
- https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00058.html
- https://access.redhat.com/errata/RHSA-2019:3702
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W3YVQ2BPTOVDCFDVNC2GGF5P5ISFG37G/
- https://security.gentoo.org/glsa/201903-16
- https://usn.ubuntu.com/3885-1/
- https://usn.ubuntu.com/3885-2/
- https://www.debian.org/security/2019/dsa-4387
- https://www.freebsd.org/security/advisories/FreeBSD-EN-19:10.scp.asc
- https://bugzilla.redhat.com/show_bug.cgi?id=1677794
- https://www.exploit-db.com/exploits/46193/
- http://www.openwall.com/lists/oss-security/2019/04/18/1
- http://www.openwall.com/lists/oss-security/2022/08/02/1
- http://www.securityfocus.com/bid/106741
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-412672.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf
- https://cvsweb.openbsd.org/src/usr.bin/ssh/scp.c
- https://lists.apache.org/thread.html/c45d9bc90700354b58fb7455962873c44229841880dcb64842fa7d23%40%3Cdev.mina.apache.org%3E
- https://lists.apache.org/thread.html/c7301cab36a86825359e1b725fc40304d1df56dc6d107c1fe885148b%40%3Cdev.mina.apache.org%3E
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2019-6111'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2019-6111'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2019-6111'curl 'https://api.contrastcyber.com/cve_products/CVE-2019-6111'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).