CVE-2026-107496

Infinite Loop in CMS_encrypt() With an EC Group Order of 1

Published Nov 10, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Issue summary: Encrypting a CMS message to an EC certificate whose group order
is 1 may cause CMS_encrypt() or CMS_encrypt_ex() to loop indefinitely.

Impact summary: An attacker able to supply the recipient certificate to an
application performing CMS encryption can cause that application to loop
indefinitely, consuming CPU and resulting in Denial of Service.

CWE: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Description: CMS_encrypt() and CMS_encrypt_ex() encrypt a message to one or
more recipient certificates and, for an EC recipient, generate an ephemeral
key in the recipient's group. If the certificate declares a group order of 1,
random scalar generation can only produce zero. The key generation routine
then retries without limit while waiting for a nonzero private scalar, so the
call never returns.

The OpenSSL TLS and QUIC implementations do not use this path. An application
is exposed only if it calls CMS_encrypt() or CMS_encrypt_ex() with a recipient
certificate whose EC parameters are attacker-controlled. Certificates with
normal EC group orders do not trigger the loop.

OpenSSL 4.0 and later reject unknown explicit EC groups in default builds.
These versions are affected only when configured with the
enable-ec_explicit_curves option.

The result is a hang that consumes a CPU core until the process is
interrupted, a Denial of Service. The severity is Low because the attacker
must supply the recipient certificate and the application must choose to
encrypt to it; ordinary CMS encryption to trusted recipients is unaffected.

The fix makes EC key generation fail when the group has no valid nonzero
private scalar, instead of retrying indefinitely.

FIPS impact: no
The FIPS modules in 4.1, 4.0, 3.5 and 3.0 are not affected. The FIPS provider
does not support arbitrary explicit EC domain parameters, so an order-1 group
is rejected during key import before the vulnerable key generation path is
reached.

Analysis

AI-generated

Technical impact

The vulnerability lies in the CMS_encrypt() and CMS_encrypt_ex() functions of OpenSSL, which attempt to generate an EC key for an EC recipient. When the recipient certificate specifies a group whose order is 1, the random scalar generation can only produce zero. The key generation routine then enters an endless retry loop because it waits for a non‑zero scalar, never exiting and leaving the encryption function blocked. As a result, the calling process consumes CPU time indefinitely, leading to a denial of service. The weakness is identified as CWE‑835, a loop with an unreachable exit condition.

Affected Systems

OpenSSL is the affected vendor. Based on the description, it is inferred that all OpenSSL releases containing the CMS_encrypt functionality are potentially impacted. This includes 4.0 and later; in default builds of 4.0 and later the bug is mitigated via rejection of unknown explicit EC groups, but persists when enable‑ec_explicit_curves is enabled. Earlier releases that expose the CMS_encrypt path are also affected when an attacker supplies a certificate with an order‑1 group.

Risk and Exploitability

The risk is driven by the CVSS score of 7.5 and the need for an attacker to supply a crafted recipient certificate. The EPSS score is below 1 %, indicating that the likelihood of exploitation in the wild is very low at present. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires that an application explicitly calls CMS_encrypt or CMS_encrypt_ex with a certificate whose parameters can be controlled by the attacker; typical CMS encryption to trusted recipients will not trigger the loop. When the condition is met, the application will hang, consuming a CPU core until it is forcibly terminated, thereby degrading availability for that process or service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the OpenSSL patch that modifies CMS_encrypt to fail when the EC group order is 1, preventing the infinite retry loop.
  • If you must use explicit EC curves, reconfigure OpenSSL to disable the enable‑ec_explicit_curves option or avoid certificates with order‑1 groups.
  • Implement certificate validation to reject EC certificates with an order of 1 before invoking CMS encrypt functions.

Generated by OpenCVE AI on November 16, 2026 at 20:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
First Time appeared Openssl
Openssl openssl
Vendors & Products Openssl
Openssl openssl
Type Values Removed Values Added
Description Issue summary: Encrypting a CMS message to an EC certificate whose group order is 1 may cause CMS_encrypt() or CMS_encrypt_ex() to loop indefinitely. Impact summary: An attacker able to supply the recipient certificate to an application performing CMS encryption can cause that application to loop indefinitely, consuming CPU and resulting in Denial of Service. CWE: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') Description: CMS_encrypt() and CMS_encrypt_ex() encrypt a message to one or more recipient certificates and, for an EC recipient, generate an ephemeral key in the recipient's group. If the certificate declares a group order of 1, random scalar generation can only produce zero. The key generation routine then retries without limit while waiting for a nonzero private scalar, so the call never returns. The OpenSSL TLS and QUIC implementations do not use this path. An application is exposed only if it calls CMS_encrypt() or CMS_encrypt_ex() with a recipient certificate whose EC parameters are attacker-controlled. Certificates with normal EC group orders do not trigger the loop. OpenSSL 4.0 and later reject unknown explicit EC groups in default builds. These versions are affected only when configured with the enable-ec_explicit_curves option. The result is a hang that consumes a CPU core until the process is interrupted, a Denial of Service. The severity is Low because the attacker must supply the recipient certificate and the application must choose to encrypt to it; ordinary CMS encryption to trusted recipients is unaffected. The fix makes EC key generation fail when the group has no valid nonzero private scalar, instead of retrying indefinitely. FIPS impact: no The FIPS modules in 4.1, 4.0, 3.5 and 3.0 are not affected. The FIPS provider does not support arbitrary explicit EC domain parameters, so an order-1 group is rejected during key import before the vulnerable key generation path is reached.
Title Infinite Loop in CMS_encrypt() With an EC Group Order of 1
Weaknesses CWE-835
References
Weaknesses
  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
openssl
Published
Updated
Nov 16, 2026, 7:11 PM
Reserved
Oct 8, 2026, 8:31 AM
Status
Awaiting Analysis
Published
Nov 10, 2026, 7:18 PM
Modified
Nov 16, 2026, 7:17 PM