CVE-2026-74870: Openssl encrypt Openssl-encrypt HSM Diagnostics And Debug Vulnerability

LOW
Advisory Identifier: GHSA-p9g8-wvh4-2jmx
CWE-532
Published
Advisory Summary

CVE-2026-74870 is a LOW openssl-encrypt hsm diagnostics and debug vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Openssl encrypt libraries in the PyPI ecosystem. The issue involves openssl-encrypt hsm diagnostics and debug logging expose hardware-derived data. Remediation is available by upgrading affected packages to version 1.4.8.

CVE-2026-74870 at a Glance

CVE Identifier CVE-2026-74870
GHSA Identifier GHSA-p9g8-wvh4-2jmx
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Openssl encrypt
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-74870

To remediate this vulnerability, upgrade all affected Openssl encrypt dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

openssl-encrypt fixed: 1.4.8
pip install openssl-encrypt>=1.4.8
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show openssl-encrypt

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-74870, inspect your installed packages using pip:

pip show openssl-encrypt

Analyze the terminal output to locate any version of Openssl encrypt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.8), your application is affected.

Note: The pip show openssl-encrypt command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Openssl encrypt, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-74870 Affected Openssl encrypt Versions

1 component(s)
Fixed Versions:
1.4.8
Product / Package Ecosystem Affected Versions Fixed Version
openssl-encrypt
PyPI
< 1.4.8
1.4.8

References

Frequently Asked Questions

What is CVE-2026-74870?
CVE-2026-74870 is a security vulnerability in Openssl encrypt involving openssl-encrypt HSM diagnostics and debug logging expose hardware-derived data under CWE-532: Insertion of Sensitive Information into Log File.
Which Openssl encrypt versions are affected?
Affected versions include releases prior to 1.4.8 across affected packages: openssl-encrypt.
What version fixes CVE-2026-74870?
Upgrading to 1.4.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openssl-encrypt affected?
Yes, openssl-encrypt is affected in releases prior to 1.4.8. Upgrade your dependency to 1.4.8 or later.
What CWE is associated with CVE-2026-74870?
CVE-2026-74870 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check PyPI dependencies for CVE-2026-74870?
Run the dependency tree command: 'pip show openssl-encrypt'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p9g8-wvh4-2jmx",
  "modified" : "2026-12-03T22:59:52Z",
  "published" : "2026-12-03T22:59:52Z",
  "aliases" : [ "CVE-2026-74870" ],
  "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.",
  "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "openssl-encrypt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.8"
      } ]
    } ]
  } ],
  "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"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-03T22:59:52Z",
    "nvd_published_at" : null
  }
}