{
  "threat_severity" : "Moderate",
  "public_date" : "2016-02-23T00:00:00Z",
  "bugzilla" : {
    "description" : "libssh2: bits/bytes confusion resulting in truncated Diffie-Hellman secret length",
    "id" : "1306021",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1306021"
  },
  "cvss" : {
    "cvss_base_score" : "5.8",
    "cvss_scoring_vector" : "AV:N/AC:M/Au:N/C:P/I:P/A:N",
    "status" : "verified"
  },
  "cwe" : "CWE-704",
  "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.\"", "A type confusion issue was found in the way libssh2 generated ephemeral secrets for the diffie-hellman-group1 and diffie-hellman-group14 key exchange methods. This would cause an SSHv2 Diffie-Hellman handshake to use significantly less secure random parameters." ],
  "acknowledgement" : "Red Hat would like to thank Aris Adamantiadis for reporting this issue.",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "release_date" : "2016-03-10T00:00:00Z",
    "advisory" : "RHSA-2016:0428",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6",
    "package" : "libssh2-0:1.4.2-2.el6_7.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "release_date" : "2016-03-10T00:00:00Z",
    "advisory" : "RHSA-2016:0428",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7",
    "package" : "libssh2-0:1.4.3-10.el7_2.1"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2016-0787\nhttps://nvd.nist.gov/vuln/detail/CVE-2016-0787\nhttp://www.libssh2.org/adv_20160223.html" ],
  "name" : "CVE-2016-0787",
  "csaw" : false
}