All vulnerabilities

PyPI

CVE-2026-74870

openssl-encrypt HSM diagnostics and debug logging expose hardware-derived data

Severity
Low
Published
3 Dec 2026
Last changed
3 Dec 2026
Added to UpHeron
3 Dec 2026
Fixed in
1.4.8
Weakness
Sensitive information in log files (CWE-532)
Also known as
GHSA-p9g8-wvh4-2jmx, PYSEC-2026-3956
Sources
OSV.dev and GitHub

Description

The 'openssl-encrypt hsm fido2-test' and 'hsm onlykey-test' diagnostic commands unconditionally print the full derived hardware pepper as hex to the terminal (openssl_encrypt/modules/crypt_cli.py, handle_hsm_command). An earlier fix for this finding (H1 [HSM-1], 2026-07-07) landed in modules/hsm_cli.py, which is not wired into the CLI entry point, so the reachable code path kept printing the pepper.

Impact is limited: the pepper is derived from a random per-invocation test salt, so the printed value cannot be used to decrypt any real file (peppers are salt-bound). It is nevertheless hardware-derived key material written to stdout/stderr, where it can end up in terminal scrollback, session recordings, or CI logs.

Also covered by the fix: the asymmetric_core main self-test printed a random throwaway test password on roundtrip failure, and the fido2_pepper plugin logged raw prf_data at debug level outside the secret-redaction chokepoint.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
openssl-encryptPyPI · osv:PyPI:openssl-encrypt
  • Every version before 1.4.8

About openssl-encrypt

Weekly downloads (PyPI)
280PyPI Stats, 3 Dec 2026

Vulnerabilities in openssl-encrypt

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
0
Known exploited
0
Search the list for openssl-encrypt

References