Skip to main content
Public proof of conceptFix available

CVE-2019-6111

A public proof of concept exists; no exploitation attested.

  • Published2019-01-31
  • WeaknessCWE-22

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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).

Timeline

dates in UTC
  1. 2019-01-11Exploit-DB entryExploit-DB
  2. 2019-01-3118:29CVE publishedNVD

Versions per branch

NVD
OpenSSH
BranchAffectedFixed in
7.9≤ 7.9no fix published
Canonical ubuntu linux
BranchAffectedFixed in
14.4= 14.04no fix published
16.4= 16.04no fix published
18.4= 18.04no fix published
18.10= 18.10no fix published
Redhat enterprise linux eus
BranchAffectedFixed in
8.1= 8.1no fix published
8.2= 8.2no fix published
8.4= 8.4no fix published
8.6= 8.6no fix published

16 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • dropbearAlpine:v3.25all versions · fixed in 2025.89-r0
  • dropbearAlpine:v3.25all versions · fixed in 2026.91-r0
  • dropbearAlpine:v3.24all versions · fixed in 2025.89-r0
  • dropbearAlpine:v3.24all versions · fixed in 2026.91-r0
  • opensshUbuntu:Pro:FIPS:16.04:LTSall versions · fixed in 1:7.2p2-4ubuntu2.fips.2.10.1
  • opensshUbuntu:Pro:FIPS-updates:16.04:LTSall versions · fixed in 1:7.2p2-4ubuntu2.fips.2.8.1
  • opensshUbuntu:18.04:LTSall versions · fixed in 1:7.6p1-4ubuntu0.3
  • opensshUbuntu:18.04:LTSall versions · fixed in 1:7.6p1-4ubuntu0.2

99 more package ranges on OSV.dev

Vendor advisories

  • CVE-2019-6111 Red Hat Product Security105 products fixed · 18 known affected

    openssh: Improper validation of object names allows malicious server to overwrite files via scp client

    openssh.src as a component of Red Hat Enterprise Linux 5 · openssh as a component of Red Hat Enterprise Linux 6 · openssh-askpass as a component of Red Hat Enterprise Linux 6 · +15 more

  • ICSA-23-348-10 CISA5 known affected

    Siemens SIMATIC S7-1500

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) · +2 more

  • SSA-398330 Siemens ProductCERT5 known affected

    SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.0 < V3.1.5 · +2 more

  • ICSA-22-349-21 CISA5 known affected

    Siemens SCALANCE X-200RNA Switch Devices

    SCALANCE X204RNA (HSR) (6GK5204-0BA00-2MB2) · SCALANCE X204RNA (PRP) (6GK5204-0BA00-2KB2) · SCALANCE X204RNA EEC (HSR) (6GK5204-0BS00-2NA3) · +2 more

  • SSA-412672 Siemens ProductCERT5 known affected

    SSA-412672: Multiple OpenSSL and OpenSSH Vulnerabilities in SCALANCE X-200RNA Switch Devices before V3.2.7

    SCALANCE X204RNA (HSR) (6GK5204-0BA00-2MB2) · SCALANCE X204RNA (PRP) (6GK5204-0BA00-2KB2) · SCALANCE X204RNA EEC (HSR) (6GK5204-0BS00-2NA3) · +2 more

  • RHSA-2019:3702 Red Hat Product Security105 products fixed

    Red Hat Security Advisory: openssh security, bug fix, and enhancement update

Full record on NVD

Fix

  1. Vendor fix CISA ICSA-23-348-10 · 5 productsUpdate to V3.1.5 or later version
  2. Vendor fix Siemens ProductCERT SSA-398330 · 1 productUpdate to V3.1.5 or later version
  3. Vendor fix Siemens ProductCERT SSA-412672 · 5 productsUpdate to V3.2.7 or later version
  4. Vendor fix CISA ICSA-22-349-21 · 5 productsUpdate to V3.2.7 or later version
  5. Vendor fix Red Hat Product Security RHSA-2019:3702 · 105 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing this update, the OpenSSH server daemon (sshd) will be restarted automatically.
  6. Workaround from the vendor Red Hat Product Security RHSA-2019:3702 · 105 productsThis issue only affects the users of scp binary which is a part of openssh-clients package. Other usage of SSH protocol or other ssh clients is not affected. Administrators can uninstall openssh-clients for additional protection against accidental usage of this binary. Removal of openssh-clients pa…

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
EDB-46193EDB-46516
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Published
2019-01-31
Last modified
2026-10-14
NVD status
Modified
GitHub advisory
GHSA-jr78-hfw4-xp7g

Frequently asked questions

What is CVE-2019-6111?

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).

Is CVE-2019-6111 actively exploited?

A proof-of-concept exploit exists for CVE-2019-6111, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2019-6111?

CVE-2019-6111 has a CVSS v3 base score of 5.9 (Medium severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.

Running OpenSSH? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record