synced 7 MIN AGO
01 Record

CVE-2016-0787

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

UnratedPUBLISHEDCNA: redhat
CNA base scoreUnratedNo CNA CVSS vector

02 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

03 Exploitation and scoring

Exploitation
Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
SSVC decision
Not assessed by CISA
EPSS probability
2.59% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 85.1% of scored records. A rank, not a probability.
NVD base score
5.9 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD analysis status
Modified. NVD last modified this record on 2026-06-17.
Red Hat severity
Moderate. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2016-04-13 17:00Z10 YR AGO
Last updated
2024-08-05 22:30Z2 YR AGO
Reserved
2015-12-16
Assigning CNA
redhat
Record state
PUBLISHED
Severity
Not rated by the issuing CNA
CNA CVSS vector
Not published by the issuing CNA
Weaknesses
  • CWE-200Exposure of Sensitive Information to an Unauthorized ActorClass
  • CWE-704Incorrect Type Conversion or CastClass
Data version
5.1
Document digest
74d8a84b110954a4fd61c5cc1340bd5f4c2c7ab53ae1cb401a56dc838dc63973

05 Affected products

VendorProductVersionsPlatforms
debiandebian_linuxNot specified—
fedoraprojectfedoraNot specified—
libssh2libssh2Not specified—
opensuseopensuseNot specified—
redhatenterprise_linuxNot specified—

06 References

07 Fixed in

Debian 12

  • libssh2
    Fixed in 1.5.0-2.1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • libssh2
    Fixed in 1.5.0-2.1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • libssh2
    Fixed in 1.5.0-2.1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 14.04 LTS

  • libssh2
    Fixed in 1.4.3-2ubuntu0.1

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 16.04 LTS

  • libssh2
    Fixed in 1.5.0-2ubuntu0.1

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.