Description
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.
Published: 2026-08-17
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in openssl_encrypt before 1.4.0 resides in the pqc.py module where a key encapsulation mechanism (KEM) decapsulation failure is handled incorrectly. When the decapsulation fails, the implementation silently defaults to a simulation mode, producing a deterministic shared secret that depends only on 16 bytes of the private key and the encapsulated key data that are publicly known. This flaw allows an attacker who can obtain just 16 bytes of the private key to compute the shared secret and decrypt all ciphertexts encrypted with that key, as the fallback to simulation mode occurs on any KEM failure without generating an error. The weakness is a failure to properly detect and handle failures in cryptographic primitives, identified by CWE-391.

Affected Systems

This flaw affects all installations of the openssl_encrypt library with a version earlier than 1.4.0. The product is maintained by the jahlives:openssl_encrypt vendor. No granular version sub‑range is listed in the advisory; therefore any deployment running a pre‑1.4.0 release is considered vulnerable.

Risk and Exploitability

The CVSS score of 9.3 indicates a critical severity, while the EPSS score is unavailable, implying unknown exploitation probability, yet the absence of a KEV listing does not diminish the risk to affected users. The attack vector is likely remote, as the decapsulation step can be triggered by any attempt to decrypt a message containing an invalid or malicious encapsulated key. An attacker only needs a small portion of the private key and can then recover a shared secret for all communications using that key, leading to complete compromise of data confidentiality.

Generated by OpenCVE AI on August 17, 2026 at 12:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply version 1.4.0 or later of openssl_encrypt, which removes the simulation fallback and correctly handles KEM failures.
  • Verify that the library is not using the deprecated pqc module or any simulation mode for key exchange.
  • Ensure private keys are stored securely and that no 16‑byte fragments can be exposed to unauthorized users.

Generated by OpenCVE AI on August 17, 2026 at 12:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 17 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 17 Aug 2026 11:15:00 +0000

Type Values Removed Values Added
Description 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.
Title openssl_encrypt before 1.4.0 Weak Shared Secret via PQC Simulation Mode
Weaknesses CWE-391
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-17T12:47:06.168Z

Reserved: 2026-08-17T10:48:45.738Z

Link: CVE-2026-74900

cve-icon Vulnrichment

Updated: 2026-08-17T12:47:00.700Z

cve-icon NVD

Status : Received

Published: 2026-08-17T11:16:45.050

Modified: 2026-08-17T13:16:53.973

Link: CVE-2026-74900

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T13:00:13Z

Weaknesses
  • CWE-391

    Unchecked Error Condition