Insecure Random Import in OpenSSL_Encrypt Before Version 1.4.0
CVE-2026-74887
9.3CRITICAL
What is CVE-2026-74887?
The OpenSSL_Encrypt library before version 1.4.0 introduces a vulnerability due to the import of Python's non-cryptographic 'random' module in its post-quantum cryptography (PQC) functionality. This import, while not affecting any immediate cryptographic operations, creates a significant risk for future code implementations. Inadvertent usage of the random.randint() function could lead to predictable outputs, undermining cryptographic security. This is due to the recoverable state of the Mersenne Twister PRNG from as few as 624 outputs. The vulnerability was addressed in version 1.4.0 by removing the insecure import.
Affected Version(s)
openssl_encrypt 0 < 1.4.0
openssl_encrypt 1.4.0
