{"id":"UBUNTU-CVE-2019-14889","details":"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.","modified":"2026-04-22T13:34:17.009622Z","published":"2019-12-10T15:00:00Z","related":["USN-4219-1"],"upstream":["CVE-2019-14889"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-14889"},{"type":"REPORT","url":"https://www.libssh.org/security/advisories/CVE-2019-14889.txt"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4219-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-14889"}],"affected":[{"package":{"name":"libssh","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libssh@0.6.3-4.3ubuntu0.5?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.3-4.3ubuntu0.5"}]}],"versions":["0.6.3-3ubuntu3","0.6.3-4.1","0.6.3-4.2","0.6.3-4.2ubuntu1","0.6.3-4.3","0.6.3-4.3ubuntu0.1","0.6.3-4.3ubuntu0.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libssh-4","binary_version":"0.6.3-4.3ubuntu0.5"},{"binary_version":"0.6.3-4.3ubuntu0.5","binary_name":"libssh-gcrypt-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-14889.json"}},{"package":{"name":"libssh","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libssh@0.8.0~20170825.94fa1e38-1ubuntu0.5?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.0~20170825.94fa1e38-1ubuntu0.5"}]}],"versions":["0.7.5-1","0.8.0~20170825.94fa1e38-1","0.8.0~20170825.94fa1e38-1build1","0.8.0~20170825.94fa1e38-1ubuntu0.1","0.8.0~20170825.94fa1e38-1ubuntu0.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libssh-4","binary_version":"0.8.0~20170825.94fa1e38-1ubuntu0.5"},{"binary_name":"libssh-gcrypt-4","binary_version":"0.8.0~20170825.94fa1e38-1ubuntu0.5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-14889.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}