Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain 16 bytes of victim private key
-
DeliveryCapture ciphertext and public encapsulated key
-
ExploitTrigger or observe KEM decapsulation failure
-
ExecutionFallback derives deterministic shared secret
-
PersistRecompute secret offline
-
ImpactDecrypt all protected ciphertext
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Error condition checking
|
| Exploitation Conditions | Two concrete prerequisites drive exploitation: (1) the KEM decapsulation path in pqc.py must fail so the silent 'simulation mode' fallback engages - this happens on any KEM error and, critically, without any exception being raised; and (2) the attacker must obtain 16 bytes of the target's private key, since the fallback shared secret is derived deterministically from exactly those 16 bytes plus the publicly available encapsulated key. Limiting factors that reduce realistic risk: the 128-bit partial-key requirement is not brute-forceable, so the attacker needs a real key-exposure vector, and impact is confined to environments actually running openssl_encrypt below 1.4.0 for KEM-based encryption. Where the KEM backend fails consistently by misconfiguration, condition (1) is permanently met, sharply increasing exposure. |
| Impact | The vendor CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N/VC:H/VI:H/VA:H, 9.3) treats this as a network, no-privilege, high-impact break, but the description imposes a concrete precondition that the vector does not capture: the attacker must possess 16 bytes of the private key (128 bits), which is not brute-forceable and implies some prior key exposure or a side channel - so real-world exploitability is meaningfully lower than a raw 9.3 suggests, and I would rate attack complexity as high rather than low. There is a second, arguably worse deployment case: if KEM decapsulation fails consistently in a given environment (e.g., a missing/misconfigured PQC backend), every message is silently protected only by the weak deterministic secret, turning a partial-key leak into full plaintext recovery. No EPSS score was provided in the input, the CVE is not in CISA KEV, and no public proof-of-concept is referenced, so this is best treated as a serious latent cryptographic weakness rather than an actively exploited threat - but because it silently voids the confidentiality guarantee the library exists to provide, any operator using it for at-rest or in-transit protection should prioritize upgrading regardless of the modest deployment footprint. |
| Exploit ScenarioDerived | An attacker who has captured ciphertext produced by openssl_encrypt <1.4.0 and who has separately obtained 16 bytes of the target's private key (via a partial leak, backup exposure, or side channel) combines those bytes with the public encapsulated-key data to recompute the deterministic shared secret and decrypt the traffic. In a worse variant, if the deployment's KEM backend fails every time, all messages are already protected only by this weak secret, so the partial key leak yields full plaintext. No public proof-of-concept is referenced in the available data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 17, 2026
Cryptographic shared-secret disclosure in the openssl_encrypt Python library (maintainer 'jahlives') before 1.4.0 lets an attacker reconstruct the KEM shared secret and decrypt all protected ciphertext once they obtain only 16 bytes of the private key. The flaw lives in pqc.py, where any post-quantum KEM decapsulation failure silently falls back to a 'simulation mode' that derives a deterministic secret from those 16 key bytes plus attacker-visible encapsulated-key data, rather than raising an error. Reported by VulnCheck; there is no public exploit identified at time of analysis and it is not listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade openssl_encrypt to version 1.4.0 or later, which is the primary and complete fix per GHSA-p3gq-pcg9-qvfv. Until you can upgrade, treat any data encrypted by an affected version as potentially compromised and re-encrypt it after updating, since the weak deterministic secret may already have been used. If immediate upgrade is not possible, the practical compensating control is to verify at the application level that KEM decapsulation actually succeeded and hard-fail (raise/abort) on any KEM error rather than accepting the produced secret - this eliminates the silent simulation-mode fallback but requires code changes and will cause previously 'succeeding' misconfigured deployments to start failing loudly, which is the intended safe behavior. Also rotate the affected private keys, because the design leaks security through partial (16-byte) key exposure. Advisories: https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-p3gq-pcg9-qvfv and https://www.vulncheck.com/advisories/openssl-encrypt-before-weak-shared-secret-via-pqc-simulation-mode.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is pqc.py, which implements post-quantum Key Encapsulation Mechanism (KEM) handling for the openssl_encrypt package (cpe:2.3:a:jahlives:openssl_encrypt). A KEM normally produces a high-entropy shared secret via decapsulation using the full private key; if decapsulation fails it must abort. Here the code instead swallows the failure and enters a fallback 'simulation mode' that deterministically computes the shared secret from just 16 bytes of the private key combined with the publicly transmitted encapsulated key. This maps to CWE-391 (Unchecked Error Condition): the error path is not surfaced, so a security-critical failure degrades silently into a weak, predictable keying operation instead of stopping. Because the encapsulated key is public and only 16 private-key bytes feed the derivation, the effective secret entropy collapses to whatever an attacker can learn about those 16 bytes.
Know when Openssl Encrypt gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Remote and unauthenticated, but AC:H because exploitation requires obtaining 16 specific private-key bytes plus a KEM failure; impact is confidentiality loss of decrypted data, with no direct integrity or availability effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
openssl_encrypt versions before 1.4.0 contain a critical vulnerability in pqc.py where KEM decapsulation failures silently fall back to simulation mode, generating a deterministic shared secret from only 16 bytes of the private key and publicly available encapsulated key data. Attackers who obtain 16 bytes of the private key can compute the shared secret and decrypt all ciphertext, as the fallback triggers on any KEM failure without raising an error.
Executive ViewAI
A critical vulnerability in the openssl_encrypt Python library (versions before 1.4.0) enables attackers to decrypt all protected ciphertext if they obtain as little as 16 bytes of private key material. Any organization using this library faces complete loss of encrypted data confidentiality until patched.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Openssl Encrypt
View allArbitrary native code execution in the jahlives openssl_encrypt Python package (all versions before 1.4.0) arises from i
Fingerprint-verification spoofing in jahlives openssl_encrypt before 1.4.9 lets attackers embed ANSI escape sequences in
Sandbox escape in the openssl_encrypt Python library (jahlives) before 1.4.0 allows attacker-supplied plugins to run wit
Arbitrary code execution in jahlives openssl_encrypt before 1.4.0 stems from an inconsistent sandbox: the runtime Plugin
Authentication bypass in the jahlives openssl_encrypt library (all versions before 1.4.0) lets remote unauthenticated at
Authentication brute-force protection can be bypassed in jahlives openssl_encrypt before 1.4.0 because the TOTP rate lim
Sandbox escape in the openssl_encrypt Python library (jahlives) before 1.4.0 lets attacker-supplied plugin code break ou
Sandbox escape leading to remote code execution affects openssl_encrypt (the jahlives Python package) in all versions be
Arbitrary code execution in openssl_encrypt (the jahlives Python encryption utility) before 1.4.9 allows an attacker-sup
Arbitrary code execution in jahlives openssl_encrypt before 1.4.9 stems from a flawed plugin trust model that uses a den
Sensitive-token exposure in openssl_encrypt (the jahlives Python package, pip 'openssl-encrypt') before 1.4.0 stems from
Arbitrary command execution in jahlives' openssl_encrypt before 1.4.9 arises when the tool's 'info' command reconstructs
EUVD-2026-60117
GHSA-7qj7-jv8m-rfjw
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB