Medium
Security advisory
libssh before 0.7.3 improperly truncates ephemeral secrets generated for the (1) diffie-hellman-group1 and (2) diffie-hellman-group14 key exchange methods to 128 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."
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-0739
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:36 UTC · Revision 1
Source evidence
libssh before 0.7.3 improperly truncates ephemeral secrets generated for the (1) diffie-hellman-group1 and (2) diffie-hellman-group14 key exchange methods to 128 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."
osv:CVE-2016-0739
Complete source record
{
"id": "97715206a4e488089d34417cbae1ecbb42203af2f3e518378965d7686bfd7c99",
"url": "https://osv.dev/vulnerability/CVE-2016-0739",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-0739",
"summary": "libssh before 0.7.3 improperly truncates ephemeral secrets generated for the (1) diffie-hellman-group1 and (2) diffie-hellman-group14 key exchange methods to 128 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.\"",
"evidence": "osv:CVE-2016-0739",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2016-0739",
"aliases": [
"CVE-2016-0739"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://gitlab.com/libssh/libssh-mirror",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "186e7b5ca47450d10b7ed8996de2b640342599bf"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "0.7.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"libssh-0.7.2",
"libssh-0.7.1",
"libssh-0.7.0",
"release-0-3-0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-0739.json"
}
}
],
"modified": "2026-10-24T10:30:55.736500004Z",
"provider": "osv",
"references": [
"https://puppet.com/security/cve/CVE-2016-0739",
"https://security.gentoo.org/glsa/201606-12",
"https://www.libssh.org/2016/02/23/libssh-0-7-3-security-and-bugfix-release/",
"https://www.libssh.org/security/advisories/CVE-2016-0739.txt"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:15.10:*:*:*:*:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"introduced": "12.04"
},
{
"last_affected": "12.04"
},
{
"introduced": "14.04"
},
{
"last_affected": "14.04"
},
{
"introduced": "15.10"
},
{
"last_affected": "15.10"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "7.0"
},
{
"last_affected": "7.0"
},
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "22"
},
{
"last_affected": "22"
},
{
"introduced": "23"
},
{
"last_affected": "23"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:enterprise_linux",
"extracted_events": [
{
"range": [
{
"introduced": "7.0"
},
{
"last_affected": "7.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2016-0739",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 438489,
"published_at": "2016-04-13T17:59:08.413+00:00"
}