CVE & CISA-KEV Catalog

CVE-2022-0778

HIGHEPSS 99th pctl
7.5
CVSS v3
NVD

Description

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

Remediation Available
opensslDebian
Fixed in:1.1.1k-1+deb11u2CVE-2022-0778
Fixed in:1.1.1n-1CVE-2022-0778
Fixed in:1.1.1n-1CVE-2022-0778
Fixed in:1.1.1n-1CVE-2022-0778
edk2Ubuntu
Fixed in:2022.02-3ubuntu0.22.04.4USN-7894-1
Fixed in:2024.02-2ubuntu0.6USN-7894-1
libnode-devUbuntu
Fixed in:12.22.9~dfsg-1ubuntu3.1USN-6457-1
libnode72Ubuntu
Fixed in:12.22.9~dfsg-1ubuntu3.1USN-6457-1
libssl1.0.0Ubuntu
Fixed in:1.0.1f-1ubuntu2.27+esm5USN-5328-2
Fixed in:1.0.2g-1ubuntu4.20+esm2USN-5328-2
Fixed in:1.0.2n-1ubuntu5.8USN-5328-1
libssl1.1Ubuntu
Fixed in:1.1.1-1ubuntu2.1~18.04.15USN-5328-1
Fixed in:1.1.1f-1ubuntu2.12USN-5328-1
nodejsUbuntu
Fixed in:12.22.9~dfsg-1ubuntu3.1USN-6457-1
nodejs-docUbuntu
Fixed in:12.22.9~dfsg-1ubuntu3.1USN-6457-1
opensslUbuntu
Fixed in:1.0.1f-1ubuntu2.27+esm5USN-5328-2
Fixed in:1.0.2g-1ubuntu4.20+esm2USN-5328-2
Fixed in:1.1.1-1ubuntu2.1~18.04.15USN-5328-1
Fixed in:1.1.1f-1ubuntu2.12USN-5328-1
openssl1.0Ubuntu
Fixed in:1.0.2n-1ubuntu5.8USN-5328-1
ovmfUbuntu
Fixed in:2022.02-3ubuntu0.22.04.4USN-7894-1
Fixed in:2024.02-2ubuntu0.6USN-7894-1
ovmf-ia32Ubuntu
Fixed in:2022.02-3ubuntu0.22.04.4USN-7894-1
Fixed in:2024.02-2ubuntu0.6USN-7894-1
qemu-efiUbuntu
Fixed in:2022.02-3ubuntu0.22.04.4USN-7894-1
qemu-efi-aarch64Ubuntu
Fixed in:2022.02-3ubuntu0.22.04.4USN-7894-1
Fixed in:2024.02-2ubuntu0.6USN-7894-1
qemu-efi-armUbuntu
Fixed in:2022.02-3ubuntu0.22.04.4USN-7894-1
Fixed in:2024.02-2ubuntu0.6USN-7894-1
qemu-efi-riscv64Ubuntu
Fixed in:2024.02-2ubuntu0.6USN-7894-1
MariaDBWindows application
Affected:10.3.0 10.3.33Fixed in:10.3.33MariaDB Corporation Ab
Affected:10.2.0 10.2.42Fixed in:10.2.42MariaDB Corporation Ab
Affected:10.4.0 10.4.23Fixed in:10.4.23MariaDB Corporation Ab
Affected:10.5.0 10.5.14Fixed in:10.5.14MariaDB Corporation Ab
Affected:10.6.0 10.6.6Fixed in:10.6.6MariaDB Corporation Ab
Affected:10.7.0 10.7.2Fixed in:10.7.2MariaDB Corporation Ab
Node.jsWindows application
Affected:14.15.0 14.19.1Fixed in:14.19.1Node.js Foundation
Affected:12.13.0 12.22.11Fixed in:12.22.11Node.js Foundation
Affected:17.0.0 17.7.2Fixed in:17.7.2Node.js Foundation
Affected:16.13.0 16.14.2Fixed in:16.14.2Node.js Foundation
Node.js (LTS)Windows application
Affected:16.13.0 16.14.2Fixed in:16.14.2Node.js Foundation
Affected:12.13.0 12.22.11Fixed in:12.22.11Node.js Foundation
Affected:17.0.0 17.7.2Fixed in:17.7.2Node.js Foundation
Affected:14.15.0 14.19.1Fixed in:14.19.1Node.js Foundation

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

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

70.56%probability of exploitation in 30 days
99thpercentile

Very high risk: more likely to be exploited than 99% of all known CVEs.

References

Related Vulnerabilities

Other CWE-835 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-13935High7.588%-Fix
CVE-2020-36227High7.578%-Fix
CVE-2024-20353High8.671%KEV-
CVE-2019-14241High7.570%--
CVE-2017-16944High7.563%-Fix
CVE-2023-34966High7.560%-Fix
Embed a live status badge for CVE-2022-0778
CVE-2022-0778 severity badge

Markdown

[![CVE-2022-0778](https://tridentstack.com/cve/badge/CVE-2022-0778.svg)](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.

See how it worksStart freeThis CVE lookup is free and always will be.

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.