CVE-2026-74887
published medium CVSS 4.0 · 6.3openssl_encrypt before 1.4.0 Insecure Random Import in PQC Module
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| jahlives | — | openssl_encrypt0 to < 1.4.0 (affected · semver) · 1.4.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 3.7 | low | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| jahlives | openssl_encrypt | 0 to < 1.4.0 (affected · semver)1.4.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
References
2- GitHub Security Advisory (GHSA-cx72-m6xj-3vf6) https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-cx72-m6xj-3vf6
- VulnCheck Advisory: openssl_encrypt before 1.4.0 Insecure Random Import in PQC Module https://www.vulncheck.com/advisories/openssl-encrypt-before-insecure-random-import-in-pqc-module
Provider assertions
2VulnCheck · cna
openssl_encrypt before 1.4.0 Insecure Random Import in PQC Module
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 724666502724b1d01a855569d711c7723b0241e0365609fce4d607b8f6920234
- Ingested
- 01 Oct 2026, 18:31:22 UTC
- Source record
- Official CVE record