Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: 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).

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-6111
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:19 UTC · Revision 1

Source evidence

CVE-2019-6111

core-osv · Original source

Published 31 Jan 2019, 18:29 UTC

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

osv:CVE-2019-6111
Complete source record
{
  "id": "687f025663078c2582ee6d31b4560e1fdd2a45a8fc036d2ea8de6b1e917dd37a",
  "url": "https://osv.dev/vulnerability/CVE-2019-6111",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-6111",
    "summary": "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).",
    "evidence": "osv:CVE-2019-6111",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2019-6111",
      "aliases": [
        "CVE-2019-6111"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/apache/mina-sshd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "1a3da27b8c5667c9b335a8352ba6df5ca75167ba"
                },
                {
                  "last_affected": "1a3da27b8c5667c9b335a8352ba6df5ca75167ba"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apache:mina_sshd:2.2.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.2.0"
                      },
                      {
                        "last_affected": "2.2.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.2.0",
            "sshd-2.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-6111.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/openssh/openssh-portable",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "aede1c34243a6f7feae2fb2cb686ade5f9be6f3d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "7.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "V_7_9_P1",
            "V_7_8_P1",
            "V_7_7_P1",
            "V_7_6_P1",
            "V_7_5_P1",
            "V_7_4_P1",
            "V_7_3_P1",
            "V_7_2_P1",
            "V_7_1_P1",
            "V_7_0_P1",
            "V_6_9_P1",
            "V_6_8_P1",
            "V_6_6_P1",
            "V_6_5_P1",
            "V_6_2_P1",
            "V_6_1_P1",
            "V_6_0_P1",
            "V_5_7_P1",
            "V_5_5_P1",
            "V_5_2_P1",
            "V_5_1_P1",
            "V_5_0_P1",
            "V_4_2_P1",
            "V_3_9_P1",
            "V_3_8_P1",
            "AFTER_KRB5_GSSAPI_MERGE",
            "BEFORE_KRB5_GSSAPI_MERGE",
            "POST_KRB4_REMOVAL",
            "PRE_KRB4_REMOVAL",
            "AFTER_FREEBSD_PAM_MERGE",
            "BEFORE_FREEBSD_PAM_MERGE",
            "V_3_6_1_P1",
            "V_3_4_P1",
            "V_3_2_2_P1",
            "PRE_SW_KRBV",
            "V_3_1_P1",
            "V_3_0_1_P1",
            "V_3_0_P1",
            "V_2_5_2_P1",
            "V_2_5_1_P2",
            "V_2_5_1_P1",
            "V_2_5_0_P1",
            "PRE-REORDER",
            "V_2_3_0_P1",
            "PRE_CYGWIN_MERGE",
            "V_2_2_0_P1",
            "V_2_1_1_P4",
            "V_2_1_1_P3",
            "ABOUT_TO_ADD_INET_ATON",
            "V_2_1_1_P2",
            "V_2_1_1_P1",
            "PRE_NEW_LOGIN_CODE",
            "V_2_1_0_P3",
            "V_2_1_0_P2",
            "V_2_1_0_P1",
            "V_2_1_0",
            "V_2_0_0_BETA2",
            "V_2_0_0_BETA1",
            "V_2_0_0_TEST1",
            "V_1_2_3_TEST3",
            "V_1_2_3_TEST2",
            "V_1_2_3_TEST1",
            "V_1_2_3",
            "V_1_2_3_PRE5",
            "V_1_2_3_PRE4",
            "V_1_2_3_PRE3",
            "V_1_2_3_PRE2",
            "V_1_2_3_PRE1",
            "V_1_2_2_P1",
            "V_1_2_2",
            "V_1_2_2_PRE29",
            "V_1_2_2_PRE28",
            "V_1_2_1_PRE27",
            "V_1_2_1_PRE26",
            "PRE_IPV6",
            "V_1_2_1_PRE25",
            "V_1_2_1_PRE24",
            "V_1_2_1_PRE23",
            "V_1_2_1_PRE22",
            "PRE_FIXPATHS_INTEGRATION",
            "V_1_2_1_PRE21",
            "V_1_2_1_PRE20",
            "V_1_2_1_PRE19",
            "PRE_HPUX_INTEGRATION",
            "V_1_2_1_PRE18",
            "V_1_2PRE17",
            "V_1_2_PRE16",
            "V_1_2_PRE15",
            "V_1_2_PRE14",
            "V_1_2_PRE13",
            "V_1_2_PRE12",
            "V_1_2_PRE11",
            "V_1_2_PRE10",
            "V_1_2_PRE9",
            "V_1_2_PRE8",
            "V_1_2_PRE7",
            "V_1_2_PRE6",
            "V_1_2_PRE5",
            "V_1_2_PRE4",
            "PRE_DAN_PATCH_MERGE"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-6111.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:17.138186670Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-412672.html",
        "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",
        "https://lists.apache.org/thread.html/d540139359de999b0f1c87d05b715be4d7d4bec771e1ae55153c5c7a%40%3Cdev.mina.apache.org%3E",
        "https://lists.apache.org/thread.html/e47597433b351d6e01a5d68d610b4ba195743def9730e49561e8cf3f%40%3Cdev.mina.apache.org%3E",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W3YVQ2BPTOVDCFDVNC2GGF5P5ISFG37G/",
        "https://access.redhat.com/errata/RHSA-2019:3702",
        "https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf",
        "https://cvsweb.openbsd.org/src/usr.bin/ssh/scp.c",
        "https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html",
        "https://security.gentoo.org/glsa/201903-16",
        "https://security.netapp.com/advisory/ntap-20190213-0001/",
        "https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt",
        "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.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html",
        "https://www.exploit-db.com/exploits/46193/"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:freebsd:freebsd:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "freebsd:freebsd",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "12.0"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fujitsu:m10-1_firmware:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fujitsu:m10-1_firmware",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "xcp2361"
                  },
                  {
                    "fixed": "xcp3070"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fujitsu:m10-4_firmware:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fujitsu:m10-4_firmware",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "xcp2361"
                  },
                  {
                    "fixed": "xcp3070"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fujitsu:m10-4s_firmware:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fujitsu:m10-4s_firmware",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "xcp2361"
                  },
                  {
                    "fixed": "xcp3070"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fujitsu:m12-1_firmware:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fujitsu:m12-1_firmware",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "xcp2361"
                  },
                  {
                    "fixed": "xcp3070"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fujitsu:m12-2_firmware:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fujitsu:m12-2_firmware",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "xcp2361"
                  },
                  {
                    "fixed": "xcp3070"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fujitsu:m12-2s_firmware:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fujitsu:m12-2s_firmware",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "xcp2361"
                  },
                  {
                    "fixed": "xcp3070"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:siemens:scalance_x204rna_eec_firmware:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "siemens:scalance_x204rna_eec_firmware",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "3.2.7"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:siemens:scalance_x204rna_firmware:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "siemens:scalance_x204rna_firmware",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "3.2.7"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:winscp:winscp:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "winscp:winscp",
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "5.1.3"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "14.04"
                  },
                  {
                    "last_affected": "14.04"
                  },
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  },
                  {
                    "introduced": "18.10"
                  },
                  {
                    "last_affected": "18.10"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  },
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "30"
                  },
                  {
                    "last_affected": "30"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:freebsd:freebsd:12.0:-:*:*:*:*:*:*",
              "cpe:2.3:o:freebsd:freebsd:12.0:p1:*:*:*:*:*:*",
              "cpe:2.3:o:freebsd:freebsd:12.0:p2:*:*:*:*:*:*",
              "cpe:2.3:o:freebsd:freebsd:12.0:p3:*:*:*:*:*:*"
            ],
            "vendor_product": "freebsd:freebsd",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "12.0-NA"
                  },
                  {
                    "last_affected": "12.0-NA"
                  },
                  {
                    "introduced": "12.0-p1"
                  },
                  {
                    "last_affected": "12.0-p1"
                  },
                  {
                    "introduced": "12.0-p2"
                  },
                  {
                    "last_affected": "12.0-p2"
                  },
                  {
                    "introduced": "12.0-p3"
                  },
                  {
                    "last_affected": "12.0-p3"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_eus:8.1:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_eus:8.2:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_eus:8.4:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_eus:8.6:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_eus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.1"
                  },
                  {
                    "last_affected": "8.1"
                  },
                  {
                    "introduced": "8.2"
                  },
                  {
                    "last_affected": "8.2"
                  },
                  {
                    "introduced": "8.4"
                  },
                  {
                    "last_affected": "8.4"
                  },
                  {
                    "introduced": "8.6"
                  },
                  {
                    "last_affected": "8.6"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server_aus:8.2:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_server_aus:8.4:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_server_aus:8.6:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_aus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.2"
                  },
                  {
                    "last_affected": "8.2"
                  },
                  {
                    "introduced": "8.4"
                  },
                  {
                    "last_affected": "8.4"
                  },
                  {
                    "introduced": "8.6"
                  },
                  {
                    "last_affected": "8.6"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server_tus:8.2:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_server_tus:8.4:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_server_tus:8.6:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_tus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.2"
                  },
                  {
                    "last_affected": "8.2"
                  },
                  {
                    "introduced": "8.4"
                  },
                  {
                    "last_affected": "8.4"
                  },
                  {
                    "introduced": "8.6"
                  },
                  {
                    "last_affected": "8.6"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2019-6111",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 429492,
  "published_at": "2019-01-31T18:29:00.867+00:00"
}