Vulnerabilities in pkg:pypi/openssl-encrypt
PACKAGECVE-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.
pkg:pypi/openssl-encrypt
Vulnerability advisories affecting package pkg:pypi/openssl-encrypt. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-p9g8-wvh4-2jmx | CVE-2026-74870 | LOW | openssl-encrypt HSM diagnostics and debug logging expose hardware-derived data |
| GHSA-q9f6-q6m5-f5h2 | - | HIGH | Duplicate Advisory: openssl-encrypt HSM diagnostics and debug logging expose hardware-derived data |
| GHSA-pj8r-rv9w-cfg8 | - | MODERATE | Duplicate Advisory: openssl-encrypt sequential XOR cancels the last key-derivation stage |
| GHSA-c65f-x25w-62jv | - | MODERATE | openssl-encrypt has CORS wildcard with allow_credentials=True in standalone servers |
| GHSA-4rh7-jwg9-m28m | - | MODERATE | openssl-encrypt accepts refresh tokens as URL query parameters causing token leakage |
| GHSA-2vhw-q7vh-7xv2 | - | MODERATE | openssl-encrypt's readiness endpoint leaks database error details to unauthenticated callers |
| GHSA-hvc7-763r-4f3h | - | MODERATE | openssl-encrypt has no owner verification on key revocation — any client can revoke any key |
| GHSA-8h88-gxp3-j7pg | - | MODERATE | openssl-encrypt's unverified key bundle from_dict() + to_identity() path allows encryption to attacker keys |
| GHSA-425g-fjhq-5h92 | - | MODERATE | openssl-encrypt silently skips schema validation when jsonschema library is not installed |
| GHSA-vfgx-5q85-58q3 | - | MODERATE | openssl-encrypt has non-cryptographic PRNG used for steganography pixel selection |
| GHSA-h3m5-p59h-x88p | - | MODERATE | openssl-encrypt has visible password in process list via --password CLI argument |
| GHSA-h45m-mgcp-q388 | - | CRITICAL | openssl-encrypt: TOTP rate limiter is in-memory only — not shared across workers, lost on restart |
| GHSA-j48q-4c78-rhf9 | - | MODERATE | openssl-encrypt: Dynamic .so loading for Whirlpool uses broad glob pattern without integrity verification |
CVE-2026-74870 at a Glance
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.
pip install openssl-encrypt>=1.4.8
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
CVE-2026-74870 Affected Openssl encrypt Versions
1 component(s)| 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?
Which Openssl encrypt versions are affected?
What version fixes CVE-2026-74870?
Is openssl-encrypt affected?
What CWE is associated with CVE-2026-74870?
How can I check PyPI dependencies for CVE-2026-74870?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}