1. CVE archive
  2. 2014
  3. CVE-2014-0016

CVE-2014-0016

4.3 Medium severity CVSS v2.0 · source NVD AV:N/AC:M/Au:N/C:P/I:N/A:N 4.3 – Medium

Description

stunnel before 5.00, when using fork threading, does not properly update the state of the OpenSSL pseudo-random number generator (PRNG), which causes subsequent children with the same process ID to use the same entropy pool and allows remote attackers to obtain private keys for EC (ECDSA) or DSA certificates.

Affected products

VendorProductVersionPlatform
stunnel stunnel <= 4.56 –
stunnel stunnel 0.1 –
stunnel stunnel 1.0 –
stunnel stunnel 1.1 –
stunnel stunnel 1.2 –
stunnel stunnel 1.3 –
stunnel stunnel 1.4 –
stunnel stunnel 1.5 –
stunnel stunnel 1.6 –
stunnel stunnel 2.0 –
stunnel stunnel 2.1 –
stunnel stunnel 3.0 –
stunnel stunnel 3.0 b1 –
stunnel stunnel 3.0 b2 –
stunnel stunnel 3.0 b3 –
stunnel stunnel 3.0 b4 –
stunnel stunnel 3.0 b5 –
stunnel stunnel 3.0 b6 –
stunnel stunnel 3.0 b7 –
stunnel stunnel 3.1 –
stunnel stunnel 3.2 –
stunnel stunnel 3.3 –
stunnel stunnel 3.4a –
stunnel stunnel 3.5 –
stunnel stunnel 3.6 –
stunnel stunnel 3.7 –
stunnel stunnel 3.8 –
stunnel stunnel 3.8 p1 –
stunnel stunnel 3.8 p2 –
stunnel stunnel 3.8 p3 –
stunnel stunnel 3.8 p4 –
stunnel stunnel 3.8p1 –
stunnel stunnel 3.8p2 –
stunnel stunnel 3.8p3 –
stunnel stunnel 3.8p4 –
stunnel stunnel 3.9 –
stunnel stunnel 3.10 –
stunnel stunnel 3.11 –
stunnel stunnel 3.12 –
stunnel stunnel 3.13 –
stunnel stunnel 3.14 –
stunnel stunnel 3.15 –
stunnel stunnel 3.16 –
stunnel stunnel 3.17 –
stunnel stunnel 3.18 –
stunnel stunnel 3.19 –
stunnel stunnel 3.20 –
stunnel stunnel 3.21 –
stunnel stunnel 3.21a –
stunnel stunnel 3.21b –
stunnel stunnel 3.21c –
stunnel stunnel 3.22 –
stunnel stunnel 3.23 –
stunnel stunnel 3.24 –
stunnel stunnel 3.25 –
stunnel stunnel 3.26 –
stunnel stunnel 4.00 –
stunnel stunnel 4.0 –
stunnel stunnel 4.01 –
stunnel stunnel 4.02 –
stunnel stunnel 4.03 –
stunnel stunnel 4.04 –
stunnel stunnel 4.05 –
stunnel stunnel 4.06 –
stunnel stunnel 4.07 –
stunnel stunnel 4.08 –
stunnel stunnel 4.09 –
stunnel stunnel 4.10 –
stunnel stunnel 4.11 –
stunnel stunnel 4.12 –
stunnel stunnel 4.13 –
stunnel stunnel 4.14 –
stunnel stunnel 4.15 –
stunnel stunnel 4.16 –
stunnel stunnel 4.17 –
stunnel stunnel 4.18 –
stunnel stunnel 4.19 –
stunnel stunnel 4.20 –
stunnel stunnel 4.21 –
stunnel stunnel 4.22 –
stunnel stunnel 4.23 –
stunnel stunnel 4.24 –
stunnel stunnel 4.25 –
stunnel stunnel 4.26 –
stunnel stunnel 4.27 –
stunnel stunnel 4.28 –
stunnel stunnel 4.29 –
stunnel stunnel 4.30 –
stunnel stunnel 4.31 –
stunnel stunnel 4.32 –
stunnel stunnel 4.33 –
stunnel stunnel 4.34 –
stunnel stunnel 4.35 –
stunnel stunnel 4.36 –
stunnel stunnel 4.37 –
stunnel stunnel 4.38 –
stunnel stunnel 4.39 –
stunnel stunnel 4.40 –
stunnel stunnel 4.41 –
stunnel stunnel 4.42 –

Showing 100 of 113 configurations. The full list is on NVD.

All 12 Stunnel vulnerabilities

Vulnerability type

CWE-332 Insufficient Entropy in PRNG

The lack of entropy available for, or used by, a Pseudo-Random Number Generator (PRNG) can be a stability and security threat.

Impact on systems

ScopeImpact
Availability DoS: Crash, Exit, or Restart
If a pseudo-random number generator is using a limited entropy source which runs out (if the generator fails closed), the program may pause or crash.
Access Control, Other Bypass Protection Mechanism, Other
If a PRNG is using a limited entropy source which runs out, and the generator fails open, the generator could produce predictable random numbers. Potentially a weak source of random numbers could weaken the encryption method used for authentication of users.

How to prevent it

Architecture and Design · Requirements · Libraries or Frameworks Use products or modules that conform to FIPS 140-2 to avoid obvious entropy problems. Consult FIPS 140-2 Annex C (Approved Random Number Generators).
Implementation Consider a PRNG that re-seeds itself as needed from high-quality pseudo-random output, such as hardware devices.
Architecture and Design When deciding which PRNG to use, look at its sources of entropy. Depending on what your security needs are, you may need to use a random number generator that always uses strong random data -- i.e., a random number generator that attempts to be strong but will fail in a weak way or will always provide some middle ground of protection through techniques like re-seeding. Generally, something that always provides a predictable amount of strength is preferable.

All 9 CWE-332 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org