CVE-2026-74887 openssl_encrypt before 1.4.0 Insecure Random Import in PQC Module
MediumCVSS 6.3
EPSS 0.18%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
openssl_encrypt before 1.4.0 imports Python's non-cryptographic 'random' module (Mersenne Twister PRNG) at line 15 of openssl_encrypt/modules/pqc.py. No direct calls to random.* were present in the code, so no cryptographic operation is currently affected; however, the import creates a hazard that future code could inadvertently use random.randint() instead of a cryptographically secure alternative (secrets/os.urandom), producing predictable values since the Mersenne Twister state can be recovered from approximately 624 outputs. Fixed by removing the import in 1.4.0.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| jahlives openssl encrypt | < 1.4.0 | 1.4.0 | Fixed |
| pypi openssl-encrypt | < 1.4.0 | 1.4.0 | Fixed |
| pypi openssl-encrypt(PyPI) | < 1.4.0; = 0.2.2; = 0.2.3; = 0.2.4 +41 more | 1.4.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi openssl-encrypt | < 1.4.0 | 1.4.0 |
| pypi openssl-encrypt(PyPI) | < 1.4.0 | 1.4.0 |
| pypi openssl-encrypt(PyPI) | = 0.2.2 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.2.3 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.2.4 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.2.5 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.2.6 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.3.0 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.3.1 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.3.2 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.3.3 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.4.0 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.4.1 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.4.2 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.4.3 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.4.4 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.5.0 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.5.1 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.5.3 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.6.0rc1 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.7.0rc2 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.7.1 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.7.2 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.8.0 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.8.1 | No fix listed |
Show 22 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi openssl-encrypt(PyPI) | = 0.8.2 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 0.9.2 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.0.0 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.0.1 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.0.2 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.0.3 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.1.0 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.2.0 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.2.1 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.3.0 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.3.1 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.3.2 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.3.3 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.3.4 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.3.5 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.4.0b3 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.4.0b4 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.4.0b5 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.4.0b6 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.4.0b7 | No fix listed |
| pypi openssl-encrypt(PyPI) | = 1.4.0b8 | No fix listed |
| jahlives openssl encrypt | < 1.4.0 | 1.4.0 |
References
- GitHub Security Advisory (GHSA-cx72-m6xj-3vf6) mitigation vendor-advisory
- VulnCheck Advisory: openssl_encrypt before 1.4.0 Insecure Random Import in PQC Module third-party-advisory vendor-advisory
- ENISA EUVD EUVD-2026-60106 third-party-advisory