Authentication bypass in libssh - CVE-2018-10933

 

Authentication bypass in libssh - CVE-2018-10933

Published: October 17, 2018 / Updated: June 9, 2022


Vulnerability identifier: #VU15379
CSH Severity: Low
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-10933
CWE-ID: CWE-592
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to bypass authentication on the target system.

The weakness exists due to coding error, when libssh receives the "SSH2_MSG_USERAUTH_SUCCESS" message. A remote attacker can send the SSH server "SSH2_MSG_USERAUTH_SUCCESS" message instead of the "SSH2_MSG_USERAUTH_REQUEST" message that a server usually expects and which libssh uses as a sign that an authentication procedure needs to initiate, bypass authentication procedures and gain access to a server with an SSH connection enabled without having to enter the password.

Affected software

libssh
Arch Linux
Debian Linux
Slackware Linux
Ubuntu
Opensuse
Fedora
IBM Tivoli Storage Manager
MySQL Workbench
libssh (Alpine package)
libssh-4 (Ubuntu package)
libssh (Debian package)
libssh
FOX615

How to mitigate CVE-2018-10933

The vulnerability has been addressed in the version 0.7.4, 0.8.6.

libssh - addressed in versions 0.7.6, 0.8.4
MySQL Workbench - update to 8.0.14
libssh (Alpine package) - update to 0.7.6-r0
libssh-4 (Ubuntu package) - addressed in versions 0.6.1-0ubuntu3.4, 0.6.3-4.3ubuntu0.1, 0.8.0~20170825.94fa1e38-1ubuntu0.1, 0.8.1-1ubuntu0.1
libssh (Debian package) - addressed in versions 0.6.3-4+deb8u3, 0.7.3-2+deb9u1
libssh - addressed in versions 0.7.6-1.fc27, 0.8.4-1.fc28, 0.8.4-1.fc29
FOX615 - addressed in versions cesne_r1h07_12, cesne_r2d14_03

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins