CVE-2022-0778OpenSSL Vulnerability
openssl - security update
Published Mar 15, 2022 · Updated Dec 4, 2026 · Also known as ALPINE-CVE-2022-0778, BIT-mariadb-2022-0778, BIT-mariadb-min-2022-0778, BIT-mysql-client-2022-0778, BIT-node-2022-0778, BIT-node-min-2022-0778, CGA-62rf-jf63-4fc4, CGA-gfvc-gh75-59r2, CGA-jj56-xjxp-26mr, CGA-pv2w-wv5p-p7p3, CLEANSTART-2024-FF84409, CLEANSTART-2026-OI68179, CLEANSTART-2026-SV91559, CLSA-2022-1647550273, CLSA-2022-1647550569, CLSA-2022-1647550603, CLSA-2022-1647550812, CLSA-2022-1647550873, DEBIAN-CVE-2022-0778, DLA-2953-1, ECHO-1376-9dd4-3430, EUVD-2022-1575, GHSA-x3mh-jvjw-3xwx, JLSEC-2026-227, MGASA-2022-0113, OESA-2022-1603, OESA-2022-1898, OESA-2022-1924, OESA-2023-1830, RUSTSEC-2022-0014, SUSE-RU-2022:0861-1, SUSE-SU-2022:0851-1, SUSE-SU-2022:0853-1, SUSE-SU-2022:0854-1, SUSE-SU-2022:0856-1, SUSE-SU-2022:0857-1, SUSE-SU-2022:0859-1, SUSE-SU-2022:0860-1, SUSE-SU-2022:0861-1, SUSE-SU-2022:0935-1, SUSE-SU-2022:14915-1, SUSE-SU-2022:14916-1, TR-22-0235, TR-22-0281, TR-22-0285, TR-22-0515, TR-22-0537, UBUNTU-CVE-2022-0778, USN-5328-1, USN-5328-2, USN-6457-1, openSUSE-SU-2022:0856-1, openSUSE-SU-2024:11927-1, openSUSE-SU-2024:11933-1, openSUSE-SU-2024:11944-1, openSUSE-SU-2024:11953-1, openSUSE-SU-2024:12444-1, openSUSE-SU-2025:14965-1
Key Facts
Patch immediately- CVE-2022-0778 is a high-severity vulnerability (CVSS 7.5 v3.1) affecting Mariadb, Cloud Volumes Ontap Mediator (Netapp), Clustered Data Ontap (Netapp) and 22 more products.
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 73% probability of exploitation in the next 30 days.
- Fixed versions are available, including BFCClient V2.17, cargo-audit-advisory-db 20220323-1.1, compat-openssl098 0.9.8j-106.33.1.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS (30-day exploit likelihood)
73%
Higher than 99.4% of all scored CVEs
Exploit maturity
None known
ATLAS score
33/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
None known
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2022-0778
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-0778
- advisoryhttps://security.alpinelinux.org/vuln/CVE-2022-0778
- advisoryhttps://security-tracker.debian.org/tracker/CVE-2022-0778
- advisoryhttps://ubuntu.com/security/CVE-2022-0778
- advisoryhttp://www.ibm.com/blogs/psirt/security-bulletin-denial-of-service-vulnerability-in-openssl-as-shipped-with-ibm-security-verify-bridge-docker-image-cve-2022-0778/
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).
Affected Products
1,635 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| MariadbMariadb | >= 10.2.0 | 10.2.42 |
| Cloud Volumes Ontap MediatorNetapp | See advisory | n/a |
| Clustered Data OntapNetapp | See advisory | n/a |
| Clustered Data Ontap Antivirus ConnectorNetapp | See advisory | n/a |
| Santricity Smi-S ProviderNetapp | See advisory | n/a |
Patched Releases
BFCClient
V2.17
cargo-audit-advisory-db
20220323-1.1
compat-openssl098
0.9.8j-106.33.1
compat-openssl10
1:1.0.2o-4.el8_6
compat-openssl11
1:1.1.1k-4.0.1.el9_0, 1:1.1.1k-4.el9_0
corepack14
14.19.1-150200.15.31.1
edk2
202002-24.oe2003sp4, 202011-20.oe2203sp1, 202011-20.oe2203sp3, 202011-20.oe2203sp4, 2022.02-3ubuntu0.22.04.4, 2024.02-2ubuntu0.6, 20240223gitedc6681206c1-1, 2025.02-3ubuntu2.2
edk2-aarch64
20200801stable-1.amzn2.0.5
edk2-ovmf
20200801stable-1.amzn2.0.5
edk2-tools
20200801stable-1.amzn2.0.5
edk2-tools-doc
20200801stable-1.amzn2.0.5
edk2-tools-python
20200801stable-1.amzn2.0.5
efi-shell-aa64
2024.02-2ubuntu0.6, 2025.02-3ubuntu2.2
efi-shell-arm
2024.02-2ubuntu0.6, 2025.02-3ubuntu2.2
efi-shell-ia32
2024.02-2ubuntu0.6, 2025.02-3ubuntu2.2
efi-shell-loongarch64
2025.02-3ubuntu2.2
efi-shell-riscv64
2024.02-2ubuntu0.6, 2025.02-3ubuntu2.2
efi-shell-x64
2024.02-2ubuntu0.6, 2025.02-3ubuntu2.2
glibc
2.31-150300.20.1, 2.31-150300.20.7
glibc-32bit
2.31-150300.20.7
glibc-devel
2.31-150300.20.7
glibc-devel-32bit
2.31-150300.20.7
glibc-devel-static
2.31-150300.20.7
glibc-extra
2.31-150300.20.7
glibc-i18ndata
2.31-150300.20.7
Timeline
Publicly disclosed
Mar 15, 2022
Last updated
Dec 4, 2026
Weakness Type
- CWE-835 Loop with Unreachable Exit Condition
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2022-0778
- advisorysecurity.alpinelinux.org · CVE-2022-0778
- advisorysecurity-tracker.debian.org · CVE-2022-0778
- advisoryubuntu.com · CVE-2022-0778
FAQ
Common Questions.
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.
Affected: Mariadb versions >= 10.2.0; Cloud Volumes Ontap Mediator (Netapp); Clustered Data Ontap (Netapp), among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including BFCClient V2.17, cargo-audit-advisory-db 20220323-1.1, compat-openssl098 0.9.8j-106.33.1.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2022-0778 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo