Cryptographic issues in libssh - CVE-2014-0017

 

Cryptographic issues in libssh - CVE-2014-0017

Published: March 14, 2014 / Updated: July 28, 2020


Vulnerability identifier: #VU32570
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2014-0017
CWE-ID: CWE-310
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local non-authenticated attacker to gain access to sensitive information.

The RAND_bytes function in libssh before 0.6.3, when forking is enabled, does not properly reset the state of the OpenSSL pseudo-random number generator (PRNG), which causes the state to be shared between children processes and allows local users to obtain sensitive information by leveraging a pid collision.


Affected software

libssh
Gentoo Linux
Fedora
Debian Linux
Ubuntu
libssh (Alpine package)
libssh (Debian package)
libssh-4 (Ubuntu package)
libssh

How to mitigate CVE-2014-0017

Install update from vendor's website.

libssh - update to 0.6.3
libssh (Alpine package) - update to 0.5.4-r1
libssh (Debian package) - addressed in versions 0.4.5-3+squeeze2, 0.5.4-1+deb7u1
libssh-4 (Ubuntu package) - addressed in versions 0.5.2-1ubuntu0.12.04.3, 0.5.2-1ubuntu0.12.10.3, 0.5.4-1ubuntu0.1
libssh - addressed in versions 0.5.5-2.el5, 0.5.5-2.el6

External References

Related Security Bulletins