{"id":"ALPINE-CVE-2016-0787","details":"The diffie_hellman_sha256 function in kex.c in libssh2 before 1.7.0 improperly truncates secrets to 128 or 256 bits, which makes it easier for man-in-the-middle attackers to decrypt or intercept SSH sessions via unspecified vectors, aka a \"bits/bytes confusion bug.\"","modified":"2026-03-09T00:54:34.726494Z","published":"2016-04-13T17:59:10.930Z","upstream":["CVE-2016-0787"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2016-0787"}],"affected":[{"package":{"name":"libssh2","ecosystem":"Alpine:v3.4","purl":"pkg:apk/alpine/libssh2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.0-r0"}]}],"versions":["1.2.8-r0","1.2.9-r0","1.3.0-r0","1.4.0-r0","1.4.1-r0","1.4.2-r0","1.4.2-r1","1.4.3-r0","1.5.0-r0","1.6.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2016-0787.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}