{"id":"CVE-2026-74887","published":"2026-08-17T11:04:51Z","modified":"2026-10-01T15:20:58Z","title":"openssl_encrypt before 1.4.0 Insecure Random Import in PQC Module","vendor":"jahlives","product":"openssl_encrypt","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00299,"percentile":0.1492,"provenance":"source"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"references":[{"url":"https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-cx72-m6xj-3vf6","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/openssl-encrypt-before-insecure-random-import-in-pqc-module","tags":["third-party-advisory"]}],"priority":{"score":5.6,"factors":[{"name":"EPSS percentile","points":2.98},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"jahlives","affectedVersions":[{"vendor":"jahlives","product":"openssl_encrypt","versions":["< 1.4.0"]}],"fixedVersions":[{"vendor":"jahlives","product":"openssl_encrypt","versions":["1.4.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-18T14:38:11.935555Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"openssl-encrypt","vulnerableRanges":["<1.4.0"],"patched":["1.4.0"],"from":["PYSEC-2026-3745"],"provenance":"source"}],"summary":{"text":"The openssl_encrypt package before version 1.4.0 imports Python's non-cryptographic random module (a Mersenne Twister PRNG) in the post-quantum cryptography module, openssl_encrypt/modules/pqc.py. No current cryptographic operation calls it, but future code could mistakenly use random.randint() in place of a secure source, and an attacker who observes about 624 outputs could recover the generator state and predict those values, which requires network access and high attack complexity but no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:57Z"},"euvd":{"id":"EUVD-2026-60106","exploited":false,"provenance":"source"}}