CVE-2026-74870: CVE-2026-74870: Cleartext Exposure of Hardware-Derived Cryptographic Peppers in openssl_encrypt
CVE-2026-74870: Cleartext Exposure of Hardware-Derived Cryptographic Peppers in openssl_encrypt Vulnerability ID: CVE-2026-74870 CVSS Score: 3.3 Published: 2026-12-03 CVE-2026-74870 is an information exposure vulner
CVE-2026-74870: Cleartext Exposure of Hardware-Derived Cryptographic Peppers in openssl_encrypt
Vulnerability ID: CVE-2026-74870
CVSS Score: 3.3
Published: 2026-12-03
CVE-2026-74870 is an information exposure vulnerability in the Python package openssl_encrypt affecting versions 1.4.7 and earlier. The diagnostic CLI subcommands 'hsm fido2-test' and 'hsm onlykey-test' unconditionally write full derived hardware cryptographic peppers as hexadecimal strings to standard error. Additionally, the FIDO2 hardware pepper plugin logs unredacted pseudo-random function (PRF) output to debug logs and user-facing error messages. While the diagnostic pepper is bound to a random per-invocation test salt and cannot directly decrypt stored files, the behavior exposes raw hardware-derived key material to terminal scrollbacks, session recordings, and CI/CD logs.
TL;DR
Versions of the openssl_encrypt Python package up to 1.4.7 unconditionally output derived hardware peppers and FIDO2 PRF secrets in hexadecimal cleartext to the terminal and debug logs during diagnostic testing. Upgrading to version 1.4.8 or 1.5.0 removes the hexadecimal dumps and enforces strict secret redaction.
Technical Details
- Vulnerability Type: CWE-532: Insertion of Sensitive Information into Log File
- Affected Component: openssl_encrypt (modules/crypt_cli.py, plugins/hsm/fido2_pepper)
- CVSS v3.1 (NVD): 3.3 Low (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N)
- CVSS v4.0 (CNA): 8.7 High (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N)
- EPSS Score: 0.19% (8.74th Percentile)
- Patched Versions: 1.4.8, 1.5.0
- Exploit Status: No known public exploits or active exploitation
- CISA KEV Status: Not Listed
Affected Systems
- openssl_encrypt (PyPI package)
-
openssl_encrypt: <= 1.4.7 (Fixed in:
1.4.8)
Code Analysis
Commit: d69ecf2
security: stop live hsm test commands printing the derived pepper (H1 residual)
--- a/openssl_encrypt/modules/crypt_cli.py
+++ b/openssl_encrypt/modules/crypt_cli.py
@@ -2670,8 +2670,10 @@ def handle_hsm_command(args):
if result.success:
pepper = result.data.get("hsm_pepper")
eprint("\nβ
Test successful!")
+ # Do NOT print the pepper itself β it is key material / a KDF
+ # intermediate (H1 [HSM-1], gitlab#121). The length + success
+ # confirm the derivation works; the value must never reach output.
eprint(f"Pepper length: {len(pepper)} bytes")
- eprint(f"Pepper (hex): {pepper.hex()}")
eprint("\nYour FIDO2 credential is working correctly.")
else:
eprint(f"\nβ Test failed: {result.message}")
Mitigation Strategies
- Upgrade the openssl_encrypt Python package to version 1.4.8 or 1.5.0 to remove cleartext hexadecimal dumps from CLI and plugin code paths.
- Disable debug-level logging in production environments using FIDO2 hardware peppers to prevent raw prf_data structures from being written to log files.
- Audit and purge historical terminal logs, session recordings, and CI/CD console outputs for leaked pepper and prf_data values.
Remediation Steps:
- Run 'pip install --upgrade "openssl_encrypt>=1.4.8"' across all affected workstations, servers, and container images.
- Search centralized logs and CI/CD artifacts for the regex pattern 'Pepper (hex): [0-9a-fA-F]{64}' and 'prf_data value:'.
- Purge or rotate any log files, terminal scrollbacks, or session recordings containing matched output.
References
- GitHub Security Advisory: GHSA-p9g8-wvh4-2jmx
- GitHub Commit: d69ecf25b7e8c8c585f4ae9cc11405b1eefc740e
- openssl_encrypt Release v1.4.8
- National Vulnerability Database (NVD): CVE-2026-74870
- CVE.org Record: CVE-2026-74870
- CVEProject cvelistV5 JSON Record: CVE-2026-74870
- VulnCheck Advisory: openssl_encrypt Hardware Pepper Information Disclosure
- MITRE ATT&CK Search Reference
Read the full report for CVE-2026-74870 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.