CVE-2026-74887

Source
https://cve.org/CVERecord?id=CVE-2026-74887
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74887.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-74887
Aliases
Published
2026-08-17T11:04:51Z
Modified
2026-09-02T03:47:26Z
Severity
  • 6.3 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
openssl_encrypt before 1.4.0 Insecure Random Import in PQC Module
Details

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.

Database specific
{
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
        "CWE-338"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74887.json"
}
References

Affected packages

Git / github.com/jahlives/openssl_encrypt

Affected ranges

Type
GIT
Repo
https://github.com/jahlives/openssl_encrypt
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "cpe": "cpe:2.3:a:jahlives:openssl_encrypt:*:*:*:*:*:python:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.4.0"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74887.json"