Every CVE Search/ Get API key

CVE-2014-0017

The RAND_bytes function in libssh before 0.6.3, when forking is enabled, does not properly reset...

1.9 LowFix available

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

0.36%Down 0.7 points since Feb 4, 2022
90%50%10%1%

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 LowAV: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

Affected packages
PackageAffectedFixed
libssh
Debian:12
before 0.5.4-3
0.5.4-3
libssh
Debian:13
before 0.5.4-3
0.5.4-3
libssh
Debian:14
before 0.5.4-3
0.5.4-3
libssh
Debian:6.0
before 0.4.5-3+squeeze2, plus listed versions
0.4.5-30.4.5-3+squeeze1
0.4.5-3+squeeze2
libssh
Debian:7
before 0.5.4-1+deb7u1, plus listed versions
0.5.4-1
0.5.4-1+deb7u1
libssh
Mageia:3
before 0.5.4-1.1.mga3
0.5.4-1.1.mga3
libssh
Mageia:4
before 0.5.5-2.1.mga4
0.5.5-2.1.mga4
libssh
openSUSE:Tumbleweed
From an advisory covering 7 CVEs
before 0.7.2-2.1
0.7.2-2.1

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE 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

Show 15 moreShow less
MoveEnter Open