openssl-encrypt HSM diagnostics and debug logging expose hardware-derived data
- CVE-2026-74870
- GHSA-p9g8-wvh4-2jmx
- PYSEC-2026-3956
- EUVD-2026-60089
Description
Show the whole descriptionHide the whole 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. Fixed in 1.4.8 by removing the hex dumps (length and success status are still reported) and routing plugin debug output through the redaction layer. Commit d69ecf25 (feature/hsm-test-pepper-leak-14x) — live pepper hex dumps removed from crypt_cli.py fido2-test/onlykey-test (length-only); fido2_pepper plugin no longer interpolates raw prf_data into debug logs or error messages; asymmetric_core self-test prints lengths only. Regression tests extended to live paths + challenge-response plugins. Ships with 1.4.8. Commit 75c92bd5 (1.5.x port, merged as 5a6a7cd1) — both maintenance lines fixed. Fix ships in 1.4.8 and 1.5.0.
Text from the GitHub Advisory record.
Recommendation
jahlives openssl_encrypt
- If you run a version before 1.4.8update to 1.4.8 or later
openssl-encrypt
- If you run a version before 1.4.8update to 1.4.8 or lateropenssl-encrypt 1.4.8 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
jahlives openssl_encrypt
Affected versions Fixed in before 1.4.8 1.4.8 openssl-encryptPyPI
Affected versions Fixed in before 1.4.8 1.4.8
Product versions from the ENISA EUVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.