{"id":"CVE-2026-74887","state":"PUBLISHED","title":"openssl_encrypt before 1.4.0 Insecure Random Import in PQC Module","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.","publishedAt":"2026-08-17T11:04:51.799Z","updatedAt":"2026-10-01T15:20:58.532Z","severity":{"score":6.3,"label":"Medium","version":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["jahlives openssl_encrypt"],"affected":[{"vendor":"jahlives","product":"openssl_encrypt","packageURL":"pkg:pypi/openssl_encrypt","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.4.0","versionType":"semver"},{"version":"1.4.0","status":"unaffected","versionType":"semver"}]}],"references":["https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-cx72-m6xj-3vf6","https://www.vulncheck.com/advisories/openssl-encrypt-before-insecure-random-import-in-pqc-module"],"weaknesses":["CWE-338"],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/74xxx/CVE-2026-74887.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-74887","state":"PUBLISHED","datePublished":"2026-08-17T11:04:51.799Z","dateUpdated":"2026-10-01T15:20:58.532Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-08-17T10:42:40.455Z"},"containers":{"cna":{"title":"openssl_encrypt before 1.4.0 Insecure Random Import in PQC Module","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"jahlives","product":"openssl_encrypt","packageURL":"pkg:pypi/openssl_encrypt","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.4.0","versionType":"semver"},{"version":"1.4.0","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-cx72-m6xj-3vf6","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-cx72-m6xj-3vf6)"},{"url":"https://www.vulncheck.com/advisories/openssl-encrypt-before-insecure-random-import-in-pqc-module","name":"VulnCheck Advisory: openssl_encrypt before 1.4.0 Insecure Random Import in PQC Module","tags":["third-party-advisory"]}],"metrics":[{"cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.3,"baseSeverity":"MEDIUM"},"format":"CVSS"},{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":3.7,"baseSeverity":"LOW"},"format":"CVSS"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-338","lang":"en","description":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-01T15:20:58.532Z"},"datePublic":"2026-02-10T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:jahlives:openssl_encrypt:*:*:*:*:*:*:*:*","versionEndExcluding":"1.4.0"}]}]}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-18T14:38:11.935555Z","id":"CVE-2026-74887","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-18T14:38:19.785Z"}}]}}}