Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-74887: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in jahlives openssl_encrypt

0
Critical
VulnerabilityCVE-2026-74887cvecve-2026-74887
Published: 08/17/2026 (08/17/2026, 11:04:51 UTC)
Source: CVE Database V5
Vendor/Project: jahlives
Product: openssl_encrypt

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.

CVSS v4.0

Score 9.3critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
jahlives/openssl_encrypt
pkg:github/jahlives/openssl_encrypt
Affected versions
<1.4.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/17/2026, 11:42:35 UTC

Technical Analysis

The vulnerability in jahlives openssl_encrypt prior to version 1.4.0 stems from importing Python's standard random module, which uses the Mersenne Twister PRNG, a non-cryptographically secure generator. Although the current code does not call random functions directly, the presence of this import creates a hazard where future code might mistakenly use random.randint() instead of secure alternatives like secrets or os.urandom. Since the Mersenne Twister's internal state can be reconstructed from about 624 outputs, this could lead to predictable random values, undermining cryptographic security. The issue was addressed by removing the import in version 1.4.0.

Potential Impact

If exploited, this vulnerability could allow attackers to predict random values generated by the module if future code uses the insecure random module, potentially compromising cryptographic operations. However, no direct exploitation is currently known, and the existing code does not use the insecure random functions. The CVSS 4.0 score of 9.3 indicates a critical severity due to the potential for high impact if the hazard is realized.

Mitigation Recommendations

Upgrade to jahlives openssl_encrypt version 1.4.0 or later, where the insecure import of the random module has been removed. This eliminates the risk of inadvertently using a cryptographically weak PRNG. Since no official patch link or advisory is provided, verify the upgrade availability from the vendor or project repository. Patch status is not yet confirmed beyond the stated fix in version 1.4.0; check vendor sources for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-08-17T10:42:40.455Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a82f004bf8831d539c48362

Added to database: 08/17/2026, 11:27:00 UTC

Last enriched: 08/17/2026, 11:42:35 UTC

Last updated: 08/17/2026, 13:16:32 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses