CVE-2014-0017: Low severity libssh libssh vulnerability

Published Mar 4, 2014
·
Updated

A flaw was found in libssh server. When accepting a new connection, the server forks and the child process handles the request. The RANDbytes() 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.

Other sources

The RANDbytes 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.

MITRE

Affected Software

12 affected components
libssh libssh<=0.6.2
libssh libssh=0.4.7
libssh libssh=0.4.8
libssh libssh=0.5.0
libssh libssh=0.5.0-rc1
libssh libssh=0.5.1
libssh libssh=0.5.2
libssh libssh=0.5.3
libssh libssh=0.5.4
libssh libssh=0.5.5
libssh libssh=0.6.0
libssh libssh=0.6.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade libssh server to a version that resolves this vulnerability.

    Fixed in 0.6.3
  2. Compensating control

    As an immediate mitigation for servers using libssh with forking enabled (fork-on-new-connection), avoid exposing the service to untrusted local users until the libssh upgrade to 0.6.3 is applied, since pid collisions in the shared OpenSSL PRNG state can allow local users to obtain sensitive information and may under certain conditions leak private keys for EC (ECDSA) or DSA certificates.

Event History

Mar 4, 2014
Data Sourced
via Red Hat·05:48 AM
DescriptionSeverityAffected Software
Mar 14, 2014
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Data Sourced
via NVD·03:55 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2014-0017?

CVE-2014-0017 has a medium severity, potentially impacting the security of systems using affected versions of libssh.

2

How do I fix CVE-2014-0017?

To fix CVE-2014-0017, update libssh to version 0.6.3 or later, as this version addresses the vulnerability.

3

Which versions of libssh are affected by CVE-2014-0017?

CVE-2014-0017 affects libssh versions up to and including 0.6.2, as well as specific earlier versions.

4

What was the issue in CVE-2014-0017?

CVE-2014-0017 involves the RAND_bytes() function not resetting its state after a fork, leading to potential security exposure.

5

Is CVE-2014-0017 exploited in the wild?

As of the latest information, there are no confirmed reports of CVE-2014-0017 being exploited in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203