CVE-2026-107496Infinite Loop in CMS_encrypt() With an EC Group Order of 1
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.
What to do
Fixed builds are available from Alpine: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | edk2 | Fix pending | UBUNTU-CVE-2026-107496 | |
| Ubuntu 26.10 | edk2-hwe | Fix pending | UBUNTU-CVE-2026-107496 | |
| Ubuntu 26.10 | openssl | Fix pending | UBUNTU-CVE-2026-107496 | |
| Ubuntu 26.04 | edk2 | Under investigation | UBUNTU-CVE-2026-107496 | |
| Ubuntu 26.04 | edk2-hwe | Under investigation | UBUNTU-CVE-2026-107496 | |
| Ubuntu 26.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | openssl | Under investigation | UBUNTU-CVE-2026-107496 | |
| Ubuntu 24.04 | edk2 | Under investigation | UBUNTU-CVE-2026-107496 | |
| Ubuntu 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | openssl | Under investigation | UBUNTU-CVE-2026-107496 | |
| Ubuntu 22.04 | edk2 | Under investigation | UBUNTU-CVE-2026-107496 | |
| Ubuntu 22.04 | nodejs | Fix pending | UBUNTU-CVE-2026-107496 | |
| Ubuntu 22.04 | openssl | Under investigation | UBUNTU-CVE-2026-107496 | |
| Ubuntu 20.04 | edk2 | Fix pending | UBUNTU-CVE-2026-107496 | |
| Ubuntu 20.04 | openssl | Fix pending | UBUNTU-CVE-2026-107496 | |
| Ubuntu 18.04 | edk2 | Fix pending | UBUNTU-CVE-2026-107496 | |
| Ubuntu 18.04 | nodejs | Fix pending | UBUNTU-CVE-2026-107496 | |
| Ubuntu 18.04 | openssl | Fix pending | UBUNTU-CVE-2026-107496 | |
| Ubuntu 18.04 | openssl1.0 | Fix pending | UBUNTU-CVE-2026-107496 | |
| Ubuntu 16.04 | edk2 | Fix pending | UBUNTU-CVE-2026-107496 | |
| Ubuntu 16.04 | nodejs | Fix pending | UBUNTU-CVE-2026-107496 | |
| Ubuntu 16.04 | openssl | Fix pending | UBUNTU-CVE-2026-107496 | |
| Ubuntu 14.04 | openssl | Fix pending | UBUNTU-CVE-2026-107496 | |
| Debian 14 | openssl | Fix pending | DEBIAN-CVE-2026-107496 | |
| Debian 13 | openssl | Fix pending | DEBIAN-CVE-2026-107496 | |
| Debian 12 | openssl | Fix pending | DEBIAN-CVE-2026-107496 | |
| Red Hat Enterprise Linux 10 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 10 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 10 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 10 | edk2-tools | Not affected | ||
| Red Hat Enterprise Linux 10 | edk2-tools-doc | Not affected | ||
| Red Hat Enterprise Linux 10 | mokutil | Not affected | ||
| Red Hat Enterprise Linux 10 | openssl | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | openssl-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | openssl-libs | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | openssl-perl | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 10 | shim-unsigned-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 10 | shim-unsigned-x64 | Not affected | ||
| Red Hat Enterprise Linux 10 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 9 | compat-openssl11 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-tools-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | openssl-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | openssl-libs | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | openssl-perl | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | shim | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-unsigned-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-unsigned-x64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 8 | compat-openssl10 | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw-openssl | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | mingw32-openssl | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | mingw64-openssl | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | openssl | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | openssl-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | openssl-libs | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | openssl-perl | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | openssl-static | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | shim | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-ia32 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-unsigned-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-unsigned-x64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 7 | AAVMF | Not affected | ||
| Red Hat Enterprise Linux 7 | OVMF | Not affected | ||
| Red Hat Enterprise Linux 7 | mokutil | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | openssl-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | openssl-libs | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | openssl-perl | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | openssl-static | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | ovmf | Not affected | ||
| Red Hat Enterprise Linux 7 | shim | Not affected | ||
| Red Hat Enterprise Linux 7 | shim-ia32 | Not affected | ||
| Red Hat Enterprise Linux 7 | shim-signed | Not affected | ||
| Red Hat Enterprise Linux 7 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | openssl-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | openssl-perl | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | openssl-static | Fix pending Affected | ||
| Alpine Linux 3.24 | openssl | Fixed | 3.5.9-r1 | ALPINE-CVE-2026-107496 |
| Alpine Linux 3.23 | openssl | Fixed | 3.5.9-r1 | ALPINE-CVE-2026-107496 |
| Alpine Linux 3.22 | openssl | Fixed | 3.5.9-r1 | ALPINE-CVE-2026-107496 |
What the vendor says
As published in the CVE record by openssl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenSSL: affected: 4.1.0 to before 4.1.1, 4.0.0 to before 4.0.4, 3.5.0 to before 3.5.10, 3.0.0 to before 3.0.24, 1.1.1 to before 1.1.1zk, 1.0.2 to before 1.0.2zt; fixed in
4.1.1,4.0.4,3.5.10,3.0.24,1.1.1zk,1.0.2zt
Vendor advisories:
- https://openssl-library.org/news/secadv/20261110.txt (vendor-advisory)
- https://github.com/openssl/openssl/commit/36e15b618decdff1b116eead6747718e6e729ad2 (patch)
- https://github.com/openssl/openssl/commit/a8531368ddb1f86d2a2782a8b693926bb67b59e7 (patch)
- https://github.com/openssl/openssl/commit/a0051cfe699bf5a047bc1c4faef65f80f7987366 (patch)
References
- https://openssl-library.org/news/secadv/20261110.txt
- https://github.com/openssl/openssl/commit/36e15b618decdff1b116eead6747718e6e729ad2
- https://github.com/openssl/openssl/commit/a8531368ddb1f86d2a2782a8b693926bb67b59e7
- https://github.com/openssl/openssl/commit/a0051cfe699bf5a047bc1c4faef65f80f7987366
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.