CVE-2014-0017
The RAND_bytes function in libssh before 0.6.3, when forking is enabled, does not properly reset...
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.
Exploit likelihood
What each source reports
NVD Score used
1.9
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.
- Record
CVE-2014-0017- CVSS 2.0
- 1.9 Low
AV:L/AC:M/Au:N/C:P/I:N/A:N - Weakness
- CWE-310
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2014-0017- Updated
- 2026-11-02
EUVDEUVD-2014-0118 No score
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.
- Record
EUVD-2014-0118- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-mw96-qp3x-6qgr No score
The RAND_bytes function in libssh before 0.6.3, when forking is enabled, does not properly reset...
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.
- Record
GHSA-mw96-qp3x-6qgr- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2014-0017- Updated
- 2026-11-02
OSVDEBIAN-CVE-2014-0017 No score
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.
- Record
DEBIAN-CVE-2014-0017- Updated
- 2026-11-02
OSVMGASA-2014-0119 No score
Updated libssh package fixes security vulnerability
When using libssh before 0.6.3, a libssh-based server, when accepting a new connection, forks and the child process handles the request. The RAND_bytes() function of openssl doesn't reset its state after the fork, but simply adds the current process id (getpid) to the PRNG state, which is not guaranteed to be unique. The most important consequence is that servers using EC (ECDSA) or DSA certificates may under certain conditions leak their private key (CVE-2014-0017).
- Record
MGASA-2014-0119- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10036-1 No score
libssh-devel-0.7.2-2.1 on GA media
These are all security issues fixed in the libssh-devel-0.7.2-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10036-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libsshDebian:12 |
before 0.5.4-3 | 0.5.4-3 |
libsshDebian:13 |
before 0.5.4-3 | 0.5.4-3 |
libsshDebian:14 |
before 0.5.4-3 | 0.5.4-3 |
libsshDebian:6.0 |
before 0.4.5-3+squeeze2, plus listed versions 0.4.5-30.4.5-3+squeeze1 |
0.4.5-3+squeeze2 |
libsshDebian:7 |
before 0.5.4-1+deb7u1, plus listed versions 0.5.4-1 |
0.5.4-1+deb7u1 |
libsshMageia:3 |
before 0.5.4-1.1.mga3 | 0.5.4-1.1.mga3 |
libsshMageia:4 |
before 0.5.5-2.1.mga4 | 0.5.5-2.1.mga4 |
libsshopenSUSE:Tumbleweed From an advisory covering 7 CVEs |
before 0.7.2-2.1 | 0.7.2-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2014-0017 is a low vulnerability (CVSS 1.9) in Libssh, published March 5, 2014. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.36%, the 29th percentile. Fixed in libssh 0.5.4-3.
References
ubuntu.com/usn/USN-2145-1
debian.org/security/2014/dsa-2879
lists.opensuse.org/opensuse-updates/2014-03/msg00036.html
secunia.com/advisories/57407
openwall.com/lists/oss-security/2014/03/05/1
libssh.org/2014/03/04/libssh-0-6-3-security-release
Show 15 moreShow less
lists.opensuse.org/opensuse-updates/2014-03/msg00040.html
bugzilla.redhat.com/show_bug.cgi?id=1072191
nvd.nist.gov/vuln/detail/CVE-2014-0017
github.com/advisories/GHSA-mw96-qp3x-6qgr
security-tracker.debian.org/tracker/CVE-2014-0017
advisories.mageia.org/MGASA-2014-0119.html
bugs.mageia.org/show_bug.cgi?id=12942
bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-0017
suse.com/security/cve/CVE-2012-4559
suse.com/security/cve/CVE-2012-4560
suse.com/security/cve/CVE-2012-4561
suse.com/security/cve/CVE-2013-0176
suse.com/security/cve/CVE-2014-0017
suse.com/security/cve/CVE-2014-8132
suse.com/security/cve/CVE-2015-3146