CVE-2019-3860
libssh2: Out-of-bounds reads with specially crafted SFTP packets
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 way SFTP packets with empty payloads 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 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+deb8u5 |
| 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-06/msg00072.html
- https://access.redhat.com/security/cve/CVE-2019-3860
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3860
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://github.com/libssh2/libssh2/pull/316
- https://libssh2.org/CVE-2019-3860.html
All 19 references
- https://lists.debian.org/debian-lts-announce/2019/03/msg00032.html
- https://lists.debian.org/debian-lts-announce/2019/07/msg00028.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5DK6VO2CEUTAJFYIKWNZKEKYMYR3NO2O/
- https://nvd.nist.gov/vuln/detail/CVE-2019-3860
- https://seclists.org/bugtraq/2019/Apr/25
- https://security.netapp.com/advisory/ntap-20190327-0005/
- https://ubuntu.com/security/notices/USN-5308-1
- https://www.cve.org/CVERecord?id=CVE-2019-3860
- https://www.debian.org/security/2019/dsa-4431
- https://www.libssh2.org/CVE-2019-3860.html
- https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html