CVE-2019-3858
libssh2: Zero-byte allocation with a specially crafted SFTP packed leading to an 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), Oracle (medium), Ubuntu (medium).
Description
An out of bounds read flaw was discovered in libssh2 before 1.8.1 when a specially crafted SFTP packet is received from the server. 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 49 entries from 36 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.1 |
| amazon linux 2 | libssh2-debuginfo | 1.4.3-12.amzn2.2.1 |
| amazon linux 2 | libssh2-devel | 1.4.3-12.amzn2.2.1 |
| amazon linux 2 | libssh2-docs | 1.4.3-12.amzn2.2.1 |
| 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 7 | libssh2 | 1.8.0-3.el7 |
| Oracle Linux 7 | libssh2-devel | 1.8.0-3.el7 |
| Oracle Linux 7 | libssh2-docs | 1.8.0-3.el7 |
| 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:2136
- https://access.redhat.com/security/cve/CVE-2019-3858
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3858
All 25 references
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://github.com/libssh2/libssh2/pull/316
- https://linux.oracle.com/cve/CVE-2019-3858.html
- https://linux.oracle.com/errata/ELSA-2019-2136.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-3858
- 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-3858
- https://www.debian.org/security/2019/dsa-4431
- https://www.libssh2.org/CVE-2019-3858.html
- https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html