CVE-2019-3862
libssh2: Out-of-bounds memory comparison with specially crafted message channel request
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Oracle (high), Red Hat (medium), Amazon (medium), Ubuntu (medium).
Description
An out of bounds read flaw was discovered in libssh2 before 1.8.1 in the way SSH_MSG_CHANNEL_REQUEST packets with an exit status message and no payload are parsed. A remote attacker who compromises a SSH server may be able to cause a Denial of Service or read data in the client memory.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 1.0 | libssh2 | 1.8.2-1.ph1 |
| Photon OS 2.0 | libssh2 | 1.8.2-1.ph2 |
| Photon OS 3.0 | libssh2 | 1.8.2-1.ph3 |
| alpine 3.10 | libssh2 | 1.8.1-r0 |
| alpine 3.11 | libssh2 | 1.8.1-r0 |
| alpine 3.12 | libssh2 | 1.8.1-r0 |
| alpine 3.13 | libssh2 | 1.8.1-r0 |
| alpine 3.14 | libssh2 | 1.8.1-r0 |
| alpine 3.15 | libssh2 | 1.8.1-r0 |
| alpine 3.16 | libssh2 | 1.8.1-r0 |
| alpine 3.17 | libssh2 | 1.8.1-r0 |
| alpine 3.18 | libssh2 | 1.8.1-r0 |
Show all 52 entries from 37 sources
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 1.0 | libssh2 | 1.8.2-1.ph1 |
| Photon OS 2.0 | libssh2 | 1.8.2-1.ph2 |
| Photon OS 3.0 | libssh2 | 1.8.2-1.ph3 |
| alpine 3.10 | libssh2 | 1.8.1-r0 |
| alpine 3.11 | libssh2 | 1.8.1-r0 |
| alpine 3.12 | libssh2 | 1.8.1-r0 |
| alpine 3.13 | libssh2 | 1.8.1-r0 |
| alpine 3.14 | libssh2 | 1.8.1-r0 |
| alpine 3.15 | libssh2 | 1.8.1-r0 |
| alpine 3.16 | libssh2 | 1.8.1-r0 |
| alpine 3.17 | libssh2 | 1.8.1-r0 |
| alpine 3.18 | libssh2 | 1.8.1-r0 |
| alpine 3.19 | libssh2 | 1.8.1-r0 |
| alpine 3.20 | libssh2 | 1.8.1-r0 |
| alpine 3.21 | libssh2 | 1.8.1-r0 |
| alpine 3.22 | libssh2 | 1.8.1-r0 |
| alpine 3.23 | libssh2 | 1.8.1-r0 |
| alpine 3.24 | libssh2 | 1.8.1-r0 |
| alpine 3.9 | libssh2 | 1.8.1-r0 |
| alpine edge | libssh2 | 1.8.1-r0 |
| amazon linux 2 | libssh2 | 1.4.3-12.amzn2.2.2 |
| amazon linux 2 | libssh2-debuginfo | 1.4.3-12.amzn2.2.2 |
| amazon linux 2 | libssh2-devel | 1.4.3-12.amzn2.2.2 |
| amazon linux 2 | libssh2-docs | 1.4.3-12.amzn2.2.2 |
| debian 11 | libssh2 | 1.8.0-2.1 |
| debian 12 | libssh2 | 1.8.0-2.1 |
| debian 13 | libssh2 | 1.8.0-2.1 |
| debian 14 | libssh2 | 1.8.0-2.1 |
| debian 8 | libssh2 | 1.4.3-4.1+deb8u2 |
| debian 9 | libssh2 | 1.7.0-1+deb9u1 |
| echo | libssh2 | 1.8.0-2.1 |
| Oracle Linux 6 | libssh2 | 1.4.2-2.0.1.el6_7.1 |
| Oracle Linux 6 | libssh2-devel | 1.4.2-2.0.1.el6_7.1 |
| Oracle Linux 6 | libssh2-docs | 1.4.2-2.0.1.el6_7.1 |
| Oracle Linux 7 | libssh2 | 1.4.3-12.0.1.el7_6.3 |
| Oracle Linux 7 | libssh2-devel | 1.4.3-12.0.1.el7_6.3 |
| Oracle Linux 7 | libssh2-docs | 1.4.3-12.0.1.el7_6.3 |
| Red Hat | libssh2 | no fix listed |
| Red Hat | libssh2-devel | no fix listed |
| Red Hat | libssh2-docs | no fix listed |
| Red Hat | redhat-virtualization-host-image-update | no fix listed |
| Red Hat | rhvm-appliance | no fix listed |
| Red Hat | virt:8.0.0::libssh2 | no fix listed |
| Red Hat | virt:8.0.0::libssh2-devel | no fix listed |
| Red Hat | virt:8.0.0::libssh2-docs | no fix listed |
| root.io debian 12 | rootio-libssh2 | 1.8.0-2.1 |
| root.io debian 13 | rootio-libssh2 | 1.8.0-2.1 |
| seal Red Hat 7 | libssh2 | 1.8.0-4.el7_9.1+sp999 |
| seal Red Hat 7 | seal-libssh2 | 1.8.0-4.el7_9.1+sp999 |
| ubuntu 14.04-ESM | libssh2 | 1.4.3-2ubuntu0.2+esm2 |
| ubuntu 16.04-ESM | libssh2 | 1.5.0-2ubuntu0.1+esm1 |
| ubuntu 18.04-ESM | libssh2 | no fix listed |
References
- http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00040.html
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00003.html
- http://packetstormsecurity.com/files/152136/Slackware-Security-Advisory-libssh2-Updates.html
- http://www.openwall.com/lists/oss-security/2019/03/18/3
- http://www.securityfocus.com/bid/107485
- https://access.redhat.com/errata/RHSA-2019:1884
- https://access.redhat.com/security/cve/CVE-2019-3862
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3862
All 27 references
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://github.com/libssh2/libssh2/pull/316
- https://libssh2.org/CVE-2019-3862.html
- https://linux.oracle.com/cve/CVE-2019-3862.html
- https://linux.oracle.com/errata/ELSA-2019-4693.html
- https://lists.debian.org/debian-lts-announce/2019/03/msg00032.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5DK6VO2CEUTAJFYIKWNZKEKYMYR3NO2O/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XCWEA5ZCLKRDUK62QVVYMFWLWKOPX3LO/
- https://nvd.nist.gov/vuln/detail/CVE-2019-3862
- https://seclists.org/bugtraq/2019/Apr/25
- https://seclists.org/bugtraq/2019/Mar/25
- https://security.netapp.com/advisory/ntap-20190327-0005/
- https://ubuntu.com/security/notices/USN-5308-1
- https://www.broadcom.com/support/fibre-channel-networking/security-advisories/brocade-security-advisory-2019-767
- https://www.cve.org/CVERecord?id=CVE-2019-3862
- https://www.debian.org/security/2019/dsa-4431
- https://www.libssh2.org/CVE-2019-3862.html
- https://www.oracle.com/security-alerts/cpujan2020.html
- https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html