Security advisory
A flaw was found with the libssh API function ssh_scp_new() in versions before 0.9.3 and before 0.8.8. When the libssh SCP client connects to a server, the scp command, which includes a user-provided path, is executed on the server-side. In case the library is used in a way where users can influence the third parameter of the function, it would become possible for an attacker to inject arbitrary commands, leading to a compromise of the remote target.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-14889
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 04:49 UTC · Revision 1
Source evidence
A flaw was found with the libssh API function ssh_scp_new() in versions before 0.9.3 and before 0.8.8. When the libssh SCP client connects to a server, the scp command, which includes a user-provided path, is executed on the server-side. In case the library is used in a way where users can influence the third parameter of the function, it would become possible for an attacker to inject arbitrary commands, leading to a compromise of the remote target.
osv:CVE-2019-14889
Complete source record
{
"id": "d3475168bcec581529ba40c9f23ecb9a5430d8231d02123d303766e9ab7740db",
"url": "https://osv.dev/vulnerability/CVE-2019-14889",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-14889",
"summary": "A flaw was found with the libssh API function ssh_scp_new() in versions before 0.9.3 and before 0.8.8. When the libssh SCP client connects to a server, the scp command, which includes a user-provided path, is executed on the server-side. In case the library is used in a way where users can influence the third parameter of the function, it would become possible for an attacker to inject arbitrary commands, leading to a compromise of the remote target.",
"evidence": "osv:CVE-2019-14889",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2019-14889",
"aliases": [
"CVE-2019-14889"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://gitlab.com/libssh/libssh-mirror",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "7850307210590a9a1b03ab0273d29b3926a974c5"
},
{
"introduced": "79900e5246da9a1712d8822a53aaf5fd0abc6f40"
},
{
"fixed": "64ce53fdbacb4a1a75c3f5e5e8b3624da7570226"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.8.8"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.9.0"
},
{
"fixed": "0.9.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"libssh-0.9.2",
"libssh-0.9.1",
"libssh-0.9.0",
"libssh-0.8.7",
"libssh-0.8.6",
"libssh-0.8.5",
"libssh-0.8.4",
"libssh-0.8.3",
"libssh-0.8.2",
"libssh-0.8.1",
"libssh-0.8.0",
"release-0-3-0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-14889.json"
}
}
],
"modified": "2026-10-24T10:30:22.510093379Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2023/05/msg00029.html",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7JJWJTXVWLLJTVHBPGWL7472S5FWXYQR/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EV2ONSPDJCTDVORCB4UGRQUZQQ46JHRN/",
"https://lists.debian.org/debian-lts-announce/2019/12/msg00020.html",
"https://security.gentoo.org/glsa/202003-27",
"https://usn.ubuntu.com/4219-1/",
"https://www.libssh.org/security/advisories/CVE-2019-14889.txt",
"https://www.oracle.com/security-alerts/cpuapr2020.html",
"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14889"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:oracle:mysql_workbench:*:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:mysql_workbench",
"extracted_events": [
{
"range": [
{
"last_affected": "8.0.19"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"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:19.04:*:*:*:*:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"introduced": "16.04"
},
{
"last_affected": "16.04"
},
{
"introduced": "18.04"
},
{
"last_affected": "18.04"
},
{
"introduced": "19.04"
},
{
"last_affected": "19.04"
},
{
"introduced": "19.10"
},
{
"last_affected": "19.10"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "30"
},
{
"last_affected": "30"
},
{
"introduced": "31"
},
{
"last_affected": "31"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*"
],
"vendor_product": "opensuse:leap",
"extracted_events": [
{
"range": [
{
"introduced": "15.1"
},
{
"last_affected": "15.1"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2019-14889",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 430700,
"published_at": "2019-12-10T23:15:10.58+00:00"
}