---
id: CVE-2026-74885
title: openssl_encrypt before 1.4.0 Logging Bug and Race Condition
summary: >-
  openssl_encrypt versions before 1.4.0 contain a logging bug in
  restore_hidden_modules() that logs module counts after clearing, always
  showing zero restored modules and corrupting audit trails. Additionally, a
  race condition exists betwe…
severity: low
cvss: 3.6
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N'
cvssSource: cna
cwe:
  - CWE-117
vendor: jahlives
product: openssl_encrypt
affected:
  - openssl_encrypt < 1.4.0
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-08-17T14:42:34.579262Z'
published: '2026-08-17'
updated: '2026-10-01'
sourceUpdated: '2026-10-01T15:20:57.192Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-74885'
references:
  - url: >-
      https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-43r4-3hf9-m84q
    label: GitHub Security Advisory (GHSA-43r4-3hf9-m84q)
  - url: >-
      https://www.vulncheck.com/advisories/openssl-encrypt-before-logging-bug-and-race-condition
    label: >-
      VulnCheck Advisory: openssl_encrypt before 1.4.0 Logging Bug and Race
      Condition
tags:
  - cve.org
  - osv
  - pip
epss: 0.00205
epssPercentile: 0.10447
aliases:
  - PYSEC-2026-3762
  - GHSA-43r4-3hf9-m84q
ecosystem: pip
patched:
  - openssl-encrypt 1.4.0
ingestedAt: '2026-09-02T19:31:25.496Z'
---

## Overview

openssl_encrypt versions before 1.4.0 contain a logging bug in restore_hidden_modules() that logs module counts after clearing, always showing zero restored modules and corrupting audit trails. Additionally, a race condition exists between module hiding and import hook installation where another thread could re-import blocked modules in multi-threaded environments.

## Affected

- `openssl_encrypt < 1.4.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-74885)

Affected packages:

- `openssl-encrypt < 1.4.0`

Patched in:

- `openssl-encrypt 1.4.0`

Source: https://osv.dev/vulnerability/PYSEC-2026-3762
