CVE-2022-0778
HIGHEPSS 99th pctlDescription
The BN_mod_sqrt() function, which computes a modular square root, contains a bug that can cause it to loop forever for non-prime moduli. Internally this function is used when parsing certificates that contain elliptic curve public keys in compressed form or explicit elliptic curve parameters with a base point encoded in compressed form. It is possible to trigger the infinite loop by crafting a certificate that has invalid explicit curve parameters. Since certificate parsing happens prior to verification of the certificate signature, any process that parses an externally supplied certificate may thus be subject to a denial of service attack. The infinite loop can also be reached when parsing crafted private keys as they can contain explicit elliptic curve parameters. Thus vulnerable situations include: - TLS clients consuming server certificates - TLS servers consuming client certificates - Hosting providers taking certificates or private keys from customers - Certificate authorities parsing certification requests from subscribers - Anything else which parses ASN.1 elliptic curve parameters Also any other applications that use the BN_mod_sqrt() where the attacker can control the parameter values are vulnerable to this DoS issue. In the OpenSSL 1.0.2 version the public key is not parsed during initial parsing of the certificate which makes it slightly harder to trigger the infinite loop. However any operation which requires the public key from the certificate will trigger the infinite loop. In particular the attacker can use a self-signed certificate to trigger the loop during verification of the certificate signature. This issue affects OpenSSL versions 1.0.2, 1.1.1 and 3.0. It was addressed in the releases of 1.1.1n and 3.0.2 on the 15th March 2022. Fixed in OpenSSL 3.0.2 (Affected 3.0.0,3.0.1). Fixed in OpenSSL 1.1.1n (Affected 1.1.1-1.1.1m). Fixed in OpenSSL 1.0.2zd (Affected 1.0.2-1.0.2zc).
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Exploit Intelligence
Very high risk: more likely to be exploited than 99% of all known CVEs.
References
- packetstormsecurity.com
- seclists.org
- seclists.org
- seclists.org
- cert-portal.siemens.com
- lists.debian.org
- lists.debian.org
- psirt.global.sonicwall.com
- security.gentoo.org
- security.netapp.com
- security.netapp.com
- support.apple.com
- support.apple.com
- support.apple.com
- debian.org
- oracle.com
- oracle.com
- tenable.com
- tenable.com
- tenable.com
- tenable.com
Related Vulnerabilities
Other CWE-835 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2020-13935 | High | 7.5 | 87% | - | Fix |
| CVE-2020-36227 | High | 7.5 | 78% | - | Fix |
| CVE-2024-20353 | High | 8.6 | 71% | KEV | - |
| CVE-2019-14241 | High | 7.5 | 70% | - | - |
| CVE-2017-16944 | High | 7.5 | 63% | - | Fix |
| CVE-2023-34966 | High | 7.5 | 62% | - | Fix |
Common questions
How do I fix CVE-2022-0778?
Published advisories record a fix for 19 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.
Is CVE-2022-0778 being actively exploited?
Not that we know of. CVE-2022-0778 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 70.6% is the estimated probability that it will be exploited in the next 30 days. That is higher than 99% of all scored CVEs.
How severe is CVE-2022-0778?
CVE-2022-0778 has a CVSS v3 base score of 7.5, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2022-0778 affect?
Published advisories record a fix for openssl (Debian), edk2 (Ubuntu), libnode-dev (Ubuntu), libnode72 (Ubuntu), and 15 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.
Embed a live status badge for CVE-2022-0778
Markdown
[](https://tridentstack.com/cve/CVE-2022-0778)HTML
<a href="https://tridentstack.com/cve/CVE-2022-0778"><img src="https://tridentstack.com/cve/badge/CVE-2022-0778.svg" alt="CVE-2022-0778"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-04-14.