---
id: CVE-2026-74870
aliases:
  - PYSEC-2026-3956
  - GHSA-p9g8-wvh4-2jmx
title: >-
  openssl_encrypt (pip) versions <= 1.4.7 contain an information exposure
  vulnerability where the 'hsm fido2-test' and 'hsm onlykey-test' d…
summary: >-
  openssl_encrypt (pip) versions <= 1.4.7 contain an information exposure
  vulnerability where the 'hsm fido2-test' and 'hsm onlykey-test' diagnostic
  commands unconditionally print the full derived hardware pepper as hex to
  stdout/stderr (c…
severity: none
vendor: openssl-encrypt
product: openssl-encrypt
ecosystem: pip
affected:
  - openssl-encrypt < 1.4.7
patched:
  - openssl-encrypt 1.4.7
published: '2026-08-17'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T13:00:03.320612550Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/PYSEC-2026-3956'
references:
  - url: >-
      https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-p9g8-wvh4-2jmx
  - url: >-
      https://www.vulncheck.com/advisories/openssl-encrypt-before-hardware-pepper-information-disclosure
tags:
  - osv
  - pip
epss: 0.00261
epssPercentile: 0.15928
ingestedAt: '2026-09-12T03:13:01.743Z'
---

## Overview

openssl_encrypt (pip) versions <= 1.4.7 contain an information exposure vulnerability where the 'hsm fido2-test' and 'hsm onlykey-test' diagnostic commands unconditionally print the full derived hardware pepper as hex to stdout/stderr (crypt_cli.py, handle_hsm_command). The printed value can persist in terminal scrollback, session recordings, or CI logs. Impact is limited because the pepper is derived from a random per-invocation test salt and is salt-bound, so the leaked value cannot be used to decrypt real files. A related plugin issue logged raw prf_data outside the secret-redaction path. Fixed in 1.4.8 (and 1.5.0) by removing the hex dumps and routing plugin debug output through the redaction layer.

## Affected packages

- `openssl-encrypt < 1.4.7`

## Remediation

Upgrade to a patched release:

- `openssl-encrypt 1.4.7`
