# CVE-2026-107496: Infinite Loop in CMS\_encrypt() With an EC Group Order of 1

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.40% (percentile 26, 2026-11-26)
- **CWE:** CWE-835
- **Published:** 2026-11-10T18:14:18.207Z
- **Modified:** 2026-11-16T19:17:24.600Z

## Who should check

- Anyone running OpenSSL \>= 4.1.0, \< 4.1.1; \>= 4.0.0, \< 4.0.4; \>= 3.5.0, \< 3.5.10; \>= 3.0.0, \< 3.0.24; \>= 1.1.1, \< 1.1.1zk; \>= 1.0.2, \< 1.0.2zt

## 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.

## Affected and fixed versions

- OpenSSL: \>= 4.1.0, \< 4.1.1; \>= 4.0.0, \< 4.0.4; \>= 3.5.0, \< 3.5.10; \>= 3.0.0, \< 3.0.24; \>= 1.1.1, \< 1.1.1zk; \>= 1.0.2, \< 1.0.2zt (cvelist)

## Technologies

OpenSSL

## Mitigation

- Upgrade OpenSSL to 1.0.2zt or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-107496. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-107496.md
Affected: OpenSSL >= 4.1.0, < 4.1.1; >= 4.0.0, < 4.0.4; >= 3.5.0, < 3.5.10; >= 3.0.0, < 3.0.24; >= 1.1.1, < 1.1.1zk; >= 1.0.2, < 1.0.2zt
Fixed in: OpenSSL 4.1.1, OpenSSL 4.0.4, OpenSSL 3.5.10, OpenSSL 3.0.24, OpenSSL 1.1.1zk, OpenSSL 1.0.2zt

Steps:
1. Search this machine and project for OpenSSL: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-107496 being exploited?

There is no confirmed exploitation: CVE-2026-107496 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.40% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-107496?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-107496?

OpenSSL \>= 4.1.0, \< 4.1.1; \>= 4.0.0, \< 4.0.4; \>= 3.5.0, \< 3.5.10; \>= 3.0.0, \< 3.0.24; \>= 1.1.1, \< 1.1.1zk; \>= 1.0.2, \< 1.0.2zt.

### Is there a fix for CVE-2026-107496?

Yes. Fixed in OpenSSL 4.1.1, OpenSSL 4.0.4, OpenSSL 3.5.10, OpenSSL 3.0.24, OpenSSL 1.1.1zk, OpenSSL 1.0.2zt. Upgrade OpenSSL to 1.0.2zt or later.

### How do I check if I'm affected by CVE-2026-107496?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://openssl-library.org/news/secadv/20261110.txt>
- patch: <https://github.com/openssl/openssl/commit/36e15b618decdff1b116eead6747718e6e729ad2>
- patch: <https://github.com/openssl/openssl/commit/a8531368ddb1f86d2a2782a8b693926bb67b59e7>
- patch: <https://github.com/openssl/openssl/commit/a0051cfe699bf5a047bc1c4faef65f80f7987366>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-107496>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-107496> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-107496>
