Vulnerabilities / CVE-2019-3861

critical

CVE-2019-3861

libssh2: Out-of-bounds reads with specially crafted SSH packets

Published Modified CWE 125
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Red Hat5.0CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

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 in the way SSH packets with a padding length value greater than the packet length 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

SourcePackageFixed in
Photon OS 1.0libssh21.8.2-1.ph1
Photon OS 2.0libssh21.8.2-1.ph2
Photon OS 3.0libssh21.8.2-1.ph3
alpine 3.10libssh21.8.1-r0
alpine 3.11libssh21.8.1-r0
alpine 3.12libssh21.8.1-r0
alpine 3.13libssh21.8.1-r0
alpine 3.14libssh21.8.1-r0
alpine 3.15libssh21.8.1-r0
alpine 3.16libssh21.8.1-r0
alpine 3.17libssh21.8.1-r0
alpine 3.18libssh21.8.1-r0
Show all 47 entries from 35 sources
SourcePackageFixed in
Photon OS 1.0libssh21.8.2-1.ph1
Photon OS 2.0libssh21.8.2-1.ph2
Photon OS 3.0libssh21.8.2-1.ph3
alpine 3.10libssh21.8.1-r0
alpine 3.11libssh21.8.1-r0
alpine 3.12libssh21.8.1-r0
alpine 3.13libssh21.8.1-r0
alpine 3.14libssh21.8.1-r0
alpine 3.15libssh21.8.1-r0
alpine 3.16libssh21.8.1-r0
alpine 3.17libssh21.8.1-r0
alpine 3.18libssh21.8.1-r0
alpine 3.19libssh21.8.1-r0
alpine 3.20libssh21.8.1-r0
alpine 3.21libssh21.8.1-r0
alpine 3.22libssh21.8.1-r0
alpine 3.23libssh21.8.1-r0
alpine 3.24libssh21.8.1-r0
alpine 3.9libssh21.8.1-r0
alpine edgelibssh21.8.1-r0
amazon linux 2libssh21.4.3-12.amzn2.2.1
amazon linux 2libssh2-debuginfo1.4.3-12.amzn2.2.1
amazon linux 2libssh2-devel1.4.3-12.amzn2.2.1
amazon linux 2libssh2-docs1.4.3-12.amzn2.2.1
debian 11libssh21.8.0-2.1
debian 12libssh21.8.0-2.1
debian 13libssh21.8.0-2.1
debian 14libssh21.8.0-2.1
debian 8libssh21.4.3-4.1+deb8u2
debian 9libssh21.7.0-1+deb9u1
echolibssh21.8.0-2.1
Oracle Linux 7libssh21.8.0-3.el7
Oracle Linux 7libssh2-devel1.8.0-3.el7
Oracle Linux 7libssh2-docs1.8.0-3.el7
Red Hatlibssh2no fix listed
Red Hatlibssh2-develno fix listed
Red Hatlibssh2-docsno fix listed
Red Hatredhat-virtualization-host-image-updateno fix listed
Red Hatrhvm-applianceno fix listed
Red Hatvirt:8.0.0::libssh2no fix listed
Red Hatvirt:8.0.0::libssh2-develno fix listed
Red Hatvirt:8.0.0::libssh2-docsno fix listed
root.io debian 12rootio-libssh21.8.0-2.1
root.io debian 13rootio-libssh21.8.0-2.1
ubuntu 14.04-ESMlibssh21.4.3-2ubuntu0.2+esm2
ubuntu 16.04-ESMlibssh21.5.0-2ubuntu0.1+esm1
ubuntu 18.04-ESMlibssh2no fix listed

References

All 20 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.