{"api_version":"1","generated_at":"2026-04-22T22:47:59+00:00","cve":"CVE-2016-0787","urls":{"html":"https://cve.report/CVE-2016-0787","api":"https://cve.report/api/cve/CVE-2016-0787.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2016-0787","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-0787"},"summary":{"title":"CVE-2016-0787","description":"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.\"","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2016-04-13 17:59:00","updated_at":"2018-10-30 16:27:00"},"problem_types":["CWE-200"],"metrics":[],"references":[{"url":"https://www.libssh2.org/adv_20160223.html","name":"https://www.libssh2.org/adv_20160223.html","refsource":"CONFIRM","tags":["Vendor Advisory"],"title":"libssh2 Security Advisory: Truncated Difffie-Hellman secret length","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bto.bluecoat.com/security-advisory/sa120","name":"https://bto.bluecoat.com/security-advisory/sa120","refsource":"CONFIRM","tags":[],"title":"Broadcom Support Portal","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://puppet.com/security/cve/CVE-2016-0787","name":"https://puppet.com/security/cve/CVE-2016-0787","refsource":"CONFIRM","tags":[],"title":"CVE-2016-0787 - libssh2 Vulnerability | Puppet","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.debian.org/security/2016/dsa-3487","name":"DSA-3487","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-3487-1 libssh2","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.libssh2.org/CVE-2016-0787.patch","name":"https://www.libssh2.org/CVE-2016-0787.patch","refsource":"CONFIRM","tags":["Patch"],"title":"","mime":"text/x-diff","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/82514","name":"82514","refsource":"BID","tags":[],"title":"RETIRED: libssh2 'src/kex.c' Security Bypass Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2016-March/178573.html","name":"FEDORA-2016-7942ee2cc5","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 22 Update: libssh2-1.5.0-2.fc22","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/201606-12","name":"GLSA-201606-12","refsource":"GENTOO","tags":["Third Party Advisory"],"title":"libssh and libssh2: Multiple vulnerabilities (GLSA 201606-12) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2016-February/177980.html","name":"FEDORA-2016-215a2219b1","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 23 Update: libssh2-1.6.0-4.fc23","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html","name":"http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html","refsource":"CONFIRM","tags":[],"title":"Oracle Linux Bulletin - January 2016","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://lists.opensuse.org/opensuse-updates/2016-03/msg00008.html","name":"openSUSE-SU-2016:0639","refsource":"SUSE","tags":[],"title":"openSUSE-SU-2016:0639-1: moderate: Security update for libssh2_org","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://kc.mcafee.com/corporate/index?page=content&id=SB10156","name":"https://kc.mcafee.com/corporate/index?page=content&id=SB10156","refsource":"CONFIRM","tags":[],"title":"McAfee Security Bulletin: McAfee Web Gateway update fixes multiple vulnerabilities","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-0787","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-0787","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2016","cve_id":"787","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"7.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"787","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"787","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"7.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"787","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"787","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"22","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"787","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"23","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"787","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"22","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"787","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"23","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"787","vulnerable":"1","versionEndIncluding":"1.6.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"libssh2","cpe5":"libssh2","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"787","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"opensuse","cpe5":"opensuse","cpe6":"13.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"787","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"opensuse","cpe5":"opensuse","cpe6":"13.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"secalert@redhat.com","ID":"CVE-2016-0787","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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.\""}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"FEDORA-2016-215a2219b1","refsource":"FEDORA","url":"http://lists.fedoraproject.org/pipermail/package-announce/2016-February/177980.html"},{"name":"https://kc.mcafee.com/corporate/index?page=content&id=SB10156","refsource":"CONFIRM","url":"https://kc.mcafee.com/corporate/index?page=content&id=SB10156"},{"name":"http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html","refsource":"CONFIRM","url":"http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html"},{"name":"https://www.libssh2.org/CVE-2016-0787.patch","refsource":"CONFIRM","url":"https://www.libssh2.org/CVE-2016-0787.patch"},{"name":"https://www.libssh2.org/adv_20160223.html","refsource":"CONFIRM","url":"https://www.libssh2.org/adv_20160223.html"},{"name":"https://puppet.com/security/cve/CVE-2016-0787","refsource":"CONFIRM","url":"https://puppet.com/security/cve/CVE-2016-0787"},{"name":"FEDORA-2016-7942ee2cc5","refsource":"FEDORA","url":"http://lists.fedoraproject.org/pipermail/package-announce/2016-March/178573.html"},{"name":"GLSA-201606-12","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/201606-12"},{"name":"openSUSE-SU-2016:0639","refsource":"SUSE","url":"http://lists.opensuse.org/opensuse-updates/2016-03/msg00008.html"},{"name":"https://bto.bluecoat.com/security-advisory/sa120","refsource":"CONFIRM","url":"https://bto.bluecoat.com/security-advisory/sa120"},{"name":"DSA-3487","refsource":"DEBIAN","url":"http://www.debian.org/security/2016/dsa-3487"},{"name":"82514","refsource":"BID","url":"http://www.securityfocus.com/bid/82514"}]}},"nvd":{"publishedDate":"2016-04-13 17:59:00","lastModifiedDate":"2018-10-30 16:27:00","problem_types":["CWE-200"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.2,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:opensuse:opensuse:13.2:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:libssh2:libssh2:*:*:*:*:*:*:*:*","versionEndIncluding":"1.6.0","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2016","CveId":"787","Ordinal":"86382","Title":"CVE-2016-0787","CVE":"CVE-2016-0787","Year":"2016"},"notes":[{"CveYear":"2016","CveId":"787","Ordinal":"1","NoteData":"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.\"","Type":"Description","Title":null},{"CveYear":"2016","CveId":"787","Ordinal":"2","NoteData":"2016-04-13","Type":"Other","Title":"Published"},{"CveYear":"2016","CveId":"787","Ordinal":"3","NoteData":"2017-12-08","Type":"Other","Title":"Modified"}]}}}