CVE-2026-74887 openssl_encrypt before 1.4.0 Insecure Random Import in PQC Module

Medium 6.3 Published Updated

The library imports a non-cryptographic random module, creating a risk of predictable values if future code uses it, though no current operations are affected.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-74887?

CVE-2026-74887 is a medium-severity vulnerability in Jahlives Openssl Encrypt, published on 17 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-338

Which versions are affected by CVE-2026-74887?

1 open source package ship an affected version, including openssl-encrypt. It affects 1 product.

PackageAffectedFixed in
openssl-encrypt PyPIAll versions1.4.0

Products include Jahlives Openssl Encrypt.

How do I fix CVE-2026-74887?

Upgrade openssl-encrypt to 1.4.0 or later.

Is CVE-2026-74887 being exploited?

There is no known exploitation of CVE-2026-74887 in the wild and no public exploit code.

All Jahlives Openssl Encrypt vulnerabilities

Sources

Also known as GHSA-cx72-m6xj-3vf6, GHSA-j466-q253-mxp8, PYSEC-2026-3745.

Is CVE-2026-74887 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free