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....
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSopenssl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSopenssl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSedk2 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSnodejs |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:FIPS-updates:16.04:LTSopenssl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:FIPS:16.04:LTSopenssl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSopenssl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSopenssl1.0 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSedk2 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSnodejs |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:FIPS-updates:18.04:LTSopenssl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:FIPS:18.04:LTSopenssl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSedk2 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSopenssl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:FIPS-updates:20.04:LTSopenssl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:FIPS:20.04:LTSopenssl |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSedk2 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSopenssl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:22.04:LTSnodejs |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:FIPS-preview:22.04:LTSopenssl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:FIPS-preview:22.04:LTSopenssl-fips |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:FIPS-updates:22.04:LTSopenssl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:FIPS-updates:22.04:LTSopenssl-fips |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSedk2 |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSopenssl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:FIPS-updates:24.04:LTSopenssl-fips |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10edk2 |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10edk2-hwe |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10openssl |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSedk2 |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSedk2-hwe |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSopenssl |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
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 encr…
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report openssl-library.org
- report github.com
- report github.com
- report github.com