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
Opensuse
Fedora
libssh (Alpine package)
libssh
IBM Tivoli Storage Manager
MySQL Workbench
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
libssh (Alpine package) - update to 0.7.6-r0
MySQL Workbench - update to 8.0.14
FOX615 - addressed in versions cesne_r1h07_12, cesne_r2d14_03
libssh - addressed in versions 0.7.6-1.fc27, 0.8.4-1.fc28, 0.8.4-1.fc29

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins