CVE-2019-3859
libssh2: Unchecked use of _libssh2_packet_require and _libssh2_packet_requirev resulting in out-of-bounds read
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Amazon (medium), Ubuntu (medium).
Description
An out of bounds read flaw was discovered in libssh2 before 1.8.1 in the _libssh2_packet_require and _libssh2_packet_requirev functions. 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 48 entries from 35 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 1 | libssh2 | 1.4.2-3.13.amzn1 |
| amazon linux 1 | libssh2-debuginfo | 1.4.2-3.13.amzn1 |
| amazon linux 1 | libssh2-devel | 1.4.2-3.13.amzn1 |
| amazon linux 1 | libssh2-docs | 1.4.2-3.13.amzn1 |
| amazon linux 2 | libssh2 | 1.4.3-12.amzn2.2.4 |
| amazon linux 2 | libssh2-debuginfo | 1.4.3-12.amzn2.2.4 |
| amazon linux 2 | libssh2-devel | 1.4.3-12.amzn2.2.4 |
| amazon linux 2 | libssh2-docs | 1.4.3-12.amzn2.2.4 |
| 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+deb8u4 |
| debian 9 | libssh2 | 1.7.0-1+deb9u1 |
| echo | libssh2 | 1.8.0-2.1 |
| 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:rhel::libssh2 | no fix listed |
| Red Hat | virt:rhel::libssh2-devel | no fix listed |
| Red Hat | virt:rhel::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 |
| 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://lists.opensuse.org/opensuse-security-announce/2019-04/msg00102.html
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00103.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/security/cve/CVE-2019-3859
All 27 references
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3859
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://github.com/libssh2/libssh2/pull/315
- https://lists.debian.org/debian-lts-announce/2019/03/msg00032.html
- https://lists.debian.org/debian-lts-announce/2019/04/msg00006.html
- https://lists.debian.org/debian-lts-announce/2019/07/msg00024.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://lists.opensuse.org/opensuse-security-announce/2019-04/msg00102.html
- https://nvd.nist.gov/vuln/detail/CVE-2019-3859
- 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-3859
- https://www.debian.org/security/2019/dsa-4431
- https://www.libssh2.org/CVE-2019-3859.html
- https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html