All reports
Low

libssh2: Using SSH_MSG_KEXINIT data unbounded

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2015-1782

Probability of exploitation in the next 30 days: 3.50%

FIRST EPSS · 2026-11-23

Description

The kex_agree_methods function in libssh2 before 1.5.0 allows remote servers to cause a denial of service (crash) or have other unspecified impact via crafted length values in an SSH_MSG_KEXINIT packet.

A flaw was found in the way the kex_agree_methods() function of libssh2 performed a key exchange when negotiating a new SSH session. A man-in-the-middle attacker could use a crafted SSH_MSG_KEXINIT packet to crash a connecting libssh2 client.