CVE & CISA-KEV Catalog

CVE-2016-0787

MEDIUMEPSS 84th pctl
5.9
CVSS v3
NVD

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."

How to fix

Remediation Available
libssh2Debian
Fixed in:1.5.0-2.1CVE-2016-0787
Fixed in:1.5.0-2.1CVE-2016-0787
Fixed in:1.5.0-2.1CVE-2016-0787
Fixed in:1.5.0-2.1CVE-2016-0787

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityNone
AvailabilityNone

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploit Intelligence

2.70%probability of exploitation in 30 days
84thpercentile

Elevated risk: more likely to be exploited than 84% of all known CVEs.

References

Related Vulnerabilities

Other CWE-200 (Information Exposure) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-24919High8.6100%KEV + Ransom-
CVE-2020-14181Medium5.3100%-Fix
CVE-2021-34429Medium5.399%-Fix
CVE-2018-11409Medium5.398%--
CVE-2021-41277Critical10.097%KEV-
CVE-2016-2183High7.596%-Fix
Embed a live status badge for CVE-2016-0787
CVE-2016-0787 severity badge

Markdown

[![CVE-2016-0787](https://tridentstack.com/cve/badge/CVE-2016-0787.svg)](https://tridentstack.com/cve/CVE-2016-0787)

HTML

<a href="https://tridentstack.com/cve/CVE-2016-0787"><img src="https://tridentstack.com/cve/badge/CVE-2016-0787.svg" alt="CVE-2016-0787"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-05-06.