
CVE catalog
CVE-2016-0787
libssh2: CVE-2016-0787
- Severity
- Medium · CVSS 5.9
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.59% · Oct 27, 2026
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."
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libssh2 | sid | 1.11.1-6 | fixed |
| Debian | libssh2 | forky | 1.11.1-6 | fixed |
| Debian | libssh2 | trixie | 1.11.1-1+deb13u2 | fixed |
| Debian | libssh2 | trixie-security | 1.11.1-1+deb13u1 | fixed |
| Debian | libssh2 | bookworm | 1.10.0-3 | fixed |
| Debian | libssh2 | bookworm-security | 1.10.0-3+deb12u1 | fixed |
| Alpine | libssh2 | 3.4 | 1.7.0-r0 | fixed |
| Ubuntu | libssh2 | 14.04 | 1.4.3-1 | vulnerable |
| Ubuntu | libssh2 | 14.04 | 1.4.3-2 | vulnerable |
| Ubuntu | libssh2 | 14.04 | 1.4.3-2ubuntu0.1 | fixed |
| Ubuntu | libssh2 | 16.04 | 1.5.0-2 | vulnerable |
| Ubuntu | libssh2 | 16.04 | 1.5.0-2ubuntu0.1 | fixed |
| Suse | libssh2_org | linux enterprise software development kit 11 sp4 | 1.2.9-4.2.6.1 | fixed |
| Suse | libssh2_org | linux enterprise desktop 11 sp4 | 1.2.9-4.2.6.1 | fixed |
| Suse | libssh2_org | linux enterprise server 11 sp4 | 1.2.9-4.2.6.1 | fixed |
| Suse | libssh2_org | linux enterprise server for sap applications 11 sp4 | 1.2.9-4.2.6.1 | fixed |
| Suse | libssh2_org | linux enterprise desktop 12 | 1.4.3-16.1 | fixed |
| Suse | libssh2_org | linux enterprise desktop 12 sp1 | 1.4.3-16.1 | fixed |
| Suse | libssh2_org | linux enterprise software development kit 12 | 1.4.3-16.1 | fixed |
| Suse | libssh2_org | linux enterprise software development kit 12 sp1 | 1.4.3-16.1 | fixed |
| Suse | libssh2_org | linux enterprise server 12 | 1.4.3-16.1 | fixed |
| Suse | libssh2_org | linux enterprise server for sap applications 12 | 1.4.3-16.1 | fixed |
| Suse | libssh2_org | linux enterprise server 12 sp1 | 1.4.3-16.1 | fixed |
| Suse | libssh2_org | linux enterprise server for sap applications 12 sp1 | 1.4.3-16.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libssh2 | source | sid | 1.5.0-2.1 | not yet assigned | Not reported | [815662] |
| Debian | libssh2 | source | forky | 1.5.0-2.1 | not yet assigned | Not reported | [815662] |
| Debian | libssh2 | source | trixie | 1.5.0-2.1 | not yet assigned | Not reported | [815662] |
| Debian | libssh2 | source | bookworm | 1.5.0-2.1 | not yet assigned | Not reported | [815662] |
| Alpine | libssh2 | apk | 3.4 | 1.7.0-r0 | Not reported | ALPINE-CVE-2016-0787 | Not reported |
| Ubuntu | libssh2 | deb | 14.04 | 1.4.3-2ubuntu0.1 | Not reported | UBUNTU-CVE-2016-0787 | Not reported |
| Ubuntu | libssh2 | deb | 16.04 | 1.5.0-2ubuntu0.1 | Not reported | UBUNTU-CVE-2016-0787 | Not reported |
| Suse | libssh2_org | rpm | linux enterprise software development kit 11 sp4 | 1.2.9-4.2.6.1 | Not reported | SUSE-SU-2016:0723-1 | Not reported |
| Suse | libssh2_org | rpm | linux enterprise desktop 11 sp4 | 1.2.9-4.2.6.1 | Not reported | SUSE-SU-2016:0723-1 | Not reported |
| Suse | libssh2_org | rpm | linux enterprise server 11 sp4 | 1.2.9-4.2.6.1 | Not reported | SUSE-SU-2016:0723-1 | Not reported |
| Suse | libssh2_org | rpm | linux enterprise server for sap applications 11 sp4 | 1.2.9-4.2.6.1 | Not reported | SUSE-SU-2016:0723-1 | Not reported |
| Suse | libssh2_org | rpm | linux enterprise desktop 12 | 1.4.3-16.1 | Not reported | SUSE-SU-2016:0718-1 | Not reported |
| Suse | libssh2_org | rpm | linux enterprise desktop 12 sp1 | 1.4.3-16.1 | Not reported | SUSE-SU-2016:0718-1 | Not reported |
| Suse | libssh2_org | rpm | linux enterprise software development kit 12 | 1.4.3-16.1 | Not reported | SUSE-SU-2016:0718-1 | Not reported |
| Suse | libssh2_org | rpm | linux enterprise software development kit 12 sp1 | 1.4.3-16.1 | Not reported | SUSE-SU-2016:0718-1 | Not reported |
| Suse | libssh2_org | rpm | linux enterprise server 12 | 1.4.3-16.1 | Not reported | SUSE-SU-2016:0718-1 | Not reported |
| Suse | libssh2_org | rpm | linux enterprise server for sap applications 12 | 1.4.3-16.1 | Not reported | SUSE-SU-2016:0718-1 | Not reported |
| Suse | libssh2_org | rpm | linux enterprise server 12 sp1 | 1.4.3-16.1 | Not reported | SUSE-SU-2016:0718-1 | Not reported |
| Suse | libssh2_org | rpm | linux enterprise server for sap applications 12 sp1 | 1.4.3-16.1 | Not reported | SUSE-SU-2016:0718-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [libssh2-1]Unknown
Source package: [libssh2]
Details (2)
1.10.0-3+b1· amd64 · bookwormFixed · Fixed:
1.5.0-2.1dsa · libssh2 · debian · bookworm; dsa · libssh2 · debian · 12
1.10.0-3+b1· arm64 · bookwormFixed · Fixed:
1.5.0-2.1dsa · libssh2 · debian · bookworm; dsa · libssh2 · debian · 12
- [libssh2-1-dev]Unknown
Source package: [libssh2]
Details (2)
1.10.0-3+b1· amd64 · bookwormFixed · Fixed:
1.5.0-2.1dsa · libssh2 · debian · bookworm; dsa · libssh2 · debian · 12
1.10.0-3+b1· arm64 · bookwormFixed · Fixed:
1.5.0-2.1dsa · libssh2 · debian · bookworm; dsa · libssh2 · debian · 12
[Debian 13 (Trixie)]
- [libssh2-1-dev]Unknown
Source package: [libssh2]
Details (4)
1.11.1-1+deb13u1· amd64 · trixieFixed · Fixed:
1.5.0-2.1dsa · libssh2 · debian · 13
1.11.1-1+deb13u1· arm64 · trixieFixed · Fixed:
1.5.0-2.1dsa · libssh2 · debian · 13
1.11.1-1+deb13u1· amd64 · trixie-securityFixed · Fixed:
1.5.0-2.1dsa · libssh2 · debian · 13
1.11.1-1+deb13u1· arm64 · trixie-securityFixed · Fixed:
1.5.0-2.1dsa · libssh2 · debian · 13
- [libssh2-1t64]Unknown
Source package: [libssh2]
Details (4)
1.11.1-1+deb13u1· amd64 · trixieFixed · Fixed:
1.5.0-2.1dsa · libssh2 · debian · 13
1.11.1-1+deb13u1· arm64 · trixieFixed · Fixed:
1.5.0-2.1dsa · libssh2 · debian · 13
1.11.1-1+deb13u1· amd64 · trixie-securityFixed · Fixed:
1.5.0-2.1dsa · libssh2 · debian · 13
1.11.1-1+deb13u1· arm64 · trixie-securityFixed · Fixed:
1.5.0-2.1dsa · libssh2 · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2016_0428.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2016-0787]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2016-0787]
- [https://osv.dev/vulnerability/DLA-426-1]
- [https://osv.dev/vulnerability/DSA-3487-1]
- [https://osv.dev/vulnerability/SUSE-SU-2016:0718-1]
- [https://osv.dev/vulnerability/SUSE-SU-2016:0723-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2016-0787]
- [https://security-tracker.debian.org/tracker/CVE-2016-0787]
- [https://security.access.redhat.com/data/csaf/v2/vex/2016/cve-2016-0787.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]