---
id: CVE-2026-74885
aliases:
  - PYSEC-2026-3762
  - GHSA-43r4-3hf9-m84q
title: >-
  openssl_encrypt versions before 1.4.0 contain a logging bug in
  restore_hidden_modules() that logs module counts after clearing, always sh…
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: none
vendor: openssl-encrypt
product: openssl-encrypt
ecosystem: pip
affected:
  - openssl-encrypt < 1.4.0
patched:
  - openssl-encrypt 1.4.0
published: '2026-08-17'
updated: '2026-09-02'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/PYSEC-2026-3762'
references:
  - url: >-
      https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-43r4-3hf9-m84q
  - url: >-
      https://www.vulncheck.com/advisories/openssl-encrypt-before-logging-bug-and-race-condition
tags:
  - osv
  - pip
epss: 0.00205
epssPercentile: 0.09362
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 packages

- `openssl-encrypt < 1.4.0`

## Remediation

Upgrade to a patched release:

- `openssl-encrypt 1.4.0`
