libssh: unsanitized location in scp could lead to unwanted command execution
Published Dec 10, 2019
8.8
HIGHCVSS 3.1
EPSS 3.17%
Description
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.
Affected products
-
- Version All libssh versions before 0.8.8StatusaffectedConstraints-
- Version All libssh versions before 0.9.3StatusaffectedConstraints-
- Version
Configuration 2
- 16.04
- 18.04
- 19.04
- 19.10
Configuration 4
- 30
- 31
Configuration 5
- 8.0
Configuration 6
- ≤ 8.0.19
No data.
Red Hat Enterprise Linux 8
libssh-0:0.9.4-2.el8
Fixed · RHSA-2020:4545
Red Hat Enterprise Linux 8
libssh-0:0.9.4-2.el8
Fixed · RHSA-2020:4545
Red Hat Enterprise Linux 6
libssh2
Not affected
Red Hat Enterprise Linux 7
libssh2
Not affected
Red Hat Enterprise Linux 8
libssh2
Not affected
Red Hat Virtualization 4
libssh
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | libssh-0:0.9.4-2.el8 | Fixed | RHSA-2020:4545 |
| Red Hat Enterprise Linux 8 | libssh-0:0.9.4-2.el8 | Fixed | RHSA-2020:4545 |
| Red Hat Enterprise Linux 6 | libssh2 | Not affected | n/a |
| Red Hat Enterprise Linux 7 | libssh2 | Not affected | n/a |
| Red Hat Enterprise Linux 8 | libssh2 | Not affected | n/a |
| Red Hat Virtualization 4 | libssh | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat Virtualization only uses libssh for client-side, not server-side where this vulnerability is present.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 4, 2026.
Score over time
2021-2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (20 key points)
Flat stretches are collapsed. Showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 4, 2026 | 3.17% (0.03174) | 87.61th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.17% (0.03174) | 86.33th | v5 (v2026.06.15) |
| Nov 21, 2025 | 0.62% (0.00624) | 69.35th | v4 (v2025.03.14) |
| Nov 18, 2025 | 3.01% (0.03007) | 85.36th | v4 (v2025.03.14) |
| Mar 30, 2025 | 0.90% (0.00902) | 73.59th | v4 (v2025.03.14) |
| Mar 29, 2025 | 4.07% (0.04067) | 80.59th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.90% (0.00902) | 74.09th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.98% (0.00980) | 84.11th | v3 (v2023.03.01) |
| Apr 4, 2024 | 0.72% (0.00724) | 80.29th | v3 (v2023.03.01) |
| Nov 16, 2023 | 0.73% (0.00734) | 78.64th | v3 (v2023.03.01) |
| Oct 31, 2023 | 0.64% (0.00643) | 76.96th | v3 (v2023.03.01) |
| Oct 14, 2023 | 0.67% (0.00670) | 77.45th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.69% (0.00690) | 77.03th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.54% (0.01537) | 74.52th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.28% (0.01282) | 65.91th | v2 (v2022.01.01) |
| Feb 4, 2022 | 11.53% (0.11534) | 88.79th | v2 (v2022.01.01) |
| Feb 3, 2022 | 9.45% (0.09448) | 86.95th | v1 |
| Jan 6, 2022 | 9.45% (0.09448) | 86.79th | v1 |
| Jan 5, 2022 | 2.27% (0.02273) | 78.61th | v5 (v2026.06.15) |
| Apr 14, 2021 | 2.27% (0.02273) | 0.00th | v1 |
References (15)
- http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00033.html vendor-advisoryMailing ListThird Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00047.html vendor-advisoryMailing ListThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2019-14889 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1772523 Issue Tracking
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14889 Issue TrackingPatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/12/msg00020.html mailing-listMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2023/05/msg00029.html mailing-list
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7JJWJTXVWLLJTVHBPGWL7472S5FWXYQR/ vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EV2ONSPDJCTDVORCB4UGRQUZQQ46JHRN/ vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2019-14889
- https://security.gentoo.org/glsa/202003-27 vendor-advisoryThird Party Advisory
- https://usn.ubuntu.com/4219-1/ vendor-advisoryThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2019-14889
- https://www.libssh.org/security/advisories/CVE-2019-14889.txt Vendor Advisory
- https://www.oracle.com/security-alerts/cpuapr2020.html Third Party Advisory
Change history (0)
No recorded changes yet.