{"id":"GHSA-p9g8-wvh4-2jmx","summary":"openssl-encrypt HSM diagnostics and debug logging expose hardware-derived data","details":"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.\n\nImpact 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.\n\nAlso 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.\n\nFixed 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.\n\nCommit 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.\n\nCommit 75c92bd5 (1.5.x port, merged as 5a6a7cd1) — both maintenance lines fixed. Fix ships in 1.4.8 and 1.5.0.","aliases":["CVE-2026-74870","PYSEC-2026-3956"],"modified":"2026-12-03T23:15:04.015727812Z","published":"2026-12-03T22:59:52Z","database_specific":{"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2026-12-03T22:59:52Z","nvd_published_at":null,"cwe_ids":["CWE-532"]},"references":[{"type":"WEB","url":"https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-p9g8-wvh4-2jmx"},{"type":"WEB","url":"https://github.com/jahlives/openssl_encrypt/commit/d69ecf25b7e8c8c585f4ae9cc11405b1eefc740e"},{"type":"PACKAGE","url":"https://github.com/jahlives/openssl_encrypt"},{"type":"WEB","url":"https://github.com/jahlives/openssl_encrypt/releases/tag/v1.4.8"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/blob/main/vulns/openssl-encrypt/PYSEC-2026-3956.yaml"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/cve-2026-74870"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/openssl-encrypt-before-hardware-pepper-information-disclosure"}],"affected":[{"package":{"name":"openssl-encrypt","ecosystem":"PyPI","purl":"pkg:pypi/openssl-encrypt"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.8"}]}],"versions":["0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.3.0","0.3.1","0.3.2","0.3.3","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.5.1","0.5.3","0.6.0rc1","0.7.0rc2","0.7.1","0.7.2","0.8.0","0.8.1","0.8.2","0.9.2","1.0.0","1.0.1","1.0.2","1.0.3","1.1.0","1.2.0","1.2.1","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.4.0","1.4.0b3","1.4.0b4","1.4.0b5","1.4.0b6","1.4.0b7","1.4.0b8","1.4.1","1.4.1rc2","1.4.2","1.4.4","1.4.5","1.4.6","1.4.7"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-p9g8-wvh4-2jmx/GHSA-p9g8-wvh4-2jmx.json"}}],"schema_version":"1.9.3","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"}]}