CVE-2026-74887

openssl_encrypt before 1.4.0 Insecure Random Import in PQC Module

Published Aug 17, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability originates from the import of Python's non‑cryptographic 'random' module in a cryptographic library prior to release 1.4.0. Although no cryptographic functions directly call the module, its presence creates a path for developers to mistakenly use functions such as random.randint() instead of a secure source, potentially compromising the randomness of sensitive data. The immediate impact is a future‑risk constraint rather than an active attack vector; the risk is that predictable outputs could be reproduced if the Mersenne Twister state is partially exposed.

Affected Systems

The issue affects the Jahlives openssl_encrypt project, specifically all versions before 1.4.0. Users deploying those releases are at risk if they import or reference the random module in subsequent code paths.

Risk and Exploitability

The CVSS score of 6.3 indicates a medium severity, but the EPSS score is < 1%, and the vulnerability is not listed in the CISA KEV catalog, implying no reported active exploitation. The likely pathway for exploitation requires a future developer to adopt the insecure random methods, so timely remediation mitigates the risk before it can be exploited.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to openssl_encrypt version 1.4.0 or later where the import has been removed
  • If an upgrade is not immediately possible, remove the import statement of Python's random module and replace all random function calls with secure alternatives such as secrets.randbits() or os.urandom
  • Conduct a code review or static analysis to detect any accidental usage of random module functions and audit any cryptographic or security‑sensitive paths for proper randomness providers

Generated by OpenCVE AI on August 29, 2026 at 00:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:jahlives:openssl_encrypt:*:*:*:*:*:*:*:*
Type Values Removed Values Added
CPEs cpe:2.3:a:jahlives:openssl_encrypt:*:*:*:*:*:python:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 0, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:N'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 6.3, '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'}

Type Values Removed Values Added
First Time appeared Jahlives
Jahlives openssl Encrypt
Vendors & Products Jahlives
Jahlives openssl Encrypt
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title openssl_encrypt before 1.4.0 Insecure Random Import in PQC Module
Weaknesses CWE-338
References
Metrics cvssV3_1

{'score': 0, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:N'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-338

    Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 1, 2026, 3:20 PM
Reserved
Aug 17, 2026, 10:42 AM
Status
Analyzed
Published
Aug 17, 2026, 11:16 AM
Modified
Aug 31, 2026, 3:49 PM