{"id":"CVE-2026-74887","aliases":["CVE-2026-74887","PYSEC-2026-3745","GHSA-cx72-m6xj-3vf6"],"related":[],"kind":"vulnerability","state":"published","title":"openssl_encrypt before 1.4.0 Insecure Random Import in PQC Module","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-08-17T11:04:51.799Z","modified":"2026-10-01T15:20:58.532Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":3.7,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-338"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.4.0","status":"affected"},{"type":"semver","version":"1.4.0","status":"unaffected"}],"vendor":"jahlives","product":"openssl_encrypt","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.4.0"}],"vendor":"jahlives","product":"openssl_encrypt","cpe":"cpe:2.3:a:jahlives:openssl_encrypt:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.4.0"}],"ecosystem":"PyPI","package":"openssl-encrypt","purl":"pkg:pypi/openssl-encrypt","source":"pysec"}],"references":[{"url":"https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-cx72-m6xj-3vf6","tags":["advisory","mitigation","vendor-advisory"],"sources":["cvelist","nvd","pysec"]},{"url":"https://www.vulncheck.com/advisories/openssl-encrypt-before-insecure-random-import-in-pqc-module","tags":["advisory","third-party-advisory"],"sources":["cvelist","nvd","pysec"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-18T14:38:11.935Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74887","url":"https://www.cve.org/CVERecord?id=CVE-2026-74887","licence":"CVE Terms of Use","modified":"2026-10-01T15:20:58.532Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74887","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74887","licence":"Public domain","modified":"2026-08-31T15:49:13.423Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3745","url":"https://osv.dev/vulnerability/PYSEC-2026-3745","licence":"CC-BY-4.0","modified":"2026-09-01T09:15:03.524Z"}],"updatedAt":"2026-11-25T22:59:33.336Z","epss":{"score":0.00182,"percentile":0.08192,"date":"2026-12-01T12:00:22.000Z"}}