The stunnel program is designed to work as an SSL encryption wrapper between a client and a local or remote server.
stunnel does not properly update the state of the pseudo-random generator after fork-threading which causes subsequent children with the same process ID to use the same entropy pool. ECDSA and DSA keys, when not used in deterministic mode (RFC6979), rely on random data for its k parameter to not leak private key information.
A remote attacker may gain access to private key information from ECDSA or DSA keys.
There is no known workaround at this time.
All stunnel users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=net-misc/stunnel-5.02"