CVE-2026-74887
Last modified
CVE-2026-74887 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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. EPSS estimates a 0.19% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Jahlives | Openssl Encrypt | < 1.4.0 |
References
- https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-cx72-m6xj-3vf6Mitigation, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-74887?
How severe is CVE-2026-74887?
How do I fix CVE-2026-74887?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-74881openssl_encrypt versions before 1.4.0 configure CORS with al…9.3
- CVE-2026-74882openssl_encrypt versions before 1.4.0 contain an insecure de…9.1
- CVE-2026-74883openssl_encrypt versions before 1.4.0 contain a sandbox bypa…8.8
- CVE-2026-74884openssl_encrypt versions before 1.4.0 contain a path travers…7.5
- CVE-2026-74885openssl_encrypt versions before 1.4.0 contain a logging bug …3.6
- CVE-2026-74886openssl_encrypt versions before 1.4.0 contain a plugin sandb…9.8
- CVE-2026-74888openssl_encrypt versions before 1.4.0 use a non-standard PBK…7.5
- CVE-2026-74889openssl_encrypt versions before 1.4.0 use HKDF with no salt …9.8
- CVE-2026-7489CTMS developed by Sunnet has a SQL Injection vulnerability, …8.8
- CVE-2026-74890openssl_encrypt versions before 1.4.0 contain an authenticat…5.5
- CVE-2026-74891openssl_encrypt versions before 1.4.0 contain hardcoded data…9.8
- CVE-2026-74892openssl_encrypt versions before 1.4.0 contain a hardcoded de…7.5
Are you affected by CVE-2026-74887?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
