Home / OpenSSL / OpenSSL / CVE-2022-0778
CVE-2022-0778: is it exploited, and which versions of OpenSSL are affected and fixed?
CVE-2022-0778 is an infinite loop (denial of service) vulnerability in OpenSSL. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:08 UTC). Affected: openssl-src from 300.0.0 before 300.0.5 and openssl-src before 111.18.0 (GitHub advisory GHSA-x3mh-jvjw-3xwx). Fixed in 300.0.5 and 111.18.0 (GitHub advisory GHSA-x3mh-jvjw-3xwx). Severity: High (7.5, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:08 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:50 UTC.
What is CVE-2022-0778?
Infinite loop in BN_mod_sqrt() reachable when parsing certificates
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).
From the CVE record by openssl, last updated October 14, 2026, 12:12 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| OpenSSL | OpenSSL | 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) |
As the CVE record by openssl states it, last updated October 14, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| crates.io | openssl-src | >= 300.0.0, < 300.0.5 | 300.0.5 | GHSA-x3mh-jvjw-3xwx |
| crates.io | openssl-src | < 111.18.0 | 111.18.0 | GHSA-x3mh-jvjw-3xwx |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 24, 2024. Summary: openssl-src's infinite loop in `BN_mod_sqrt()` reachable when parsing certificates.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| openssl | openssl | from 1.0.2 before 1.0.2zd | application |
| openssl | openssl | from 1.1.0 before 1.1.1n | application |
| openssl | openssl | from 3.0.0 before 3.0.2 | application |
| debian | debian linux | 9.0 | operating system |
| debian | debian linux | 10.0 | operating system |
| debian | debian linux | 11.0 | operating system |
| netapp | cloud volumes ontap mediator | all versions | application |
| netapp | clustered data ontap | all versions | application |
| netapp | clustered data ontap antivirus connector | all versions | application |
| netapp | santricity smi-s provider | all versions | application |
| netapp | storagegrid | all versions | application |
| netapp | a250 firmware | all versions | operating system |
| netapp | 500f firmware | all versions | operating system |
| fedoraproject | fedora | 34 | operating system |
| fedoraproject | fedora | 36 | operating system |
| tenable | nessus | before 8.15.4 | application |
| tenable | nessus | from 10.0.0 before 10.1.2 | application |
| mariadb | mariadb | from 10.2.0 before 10.2.42 | application |
| mariadb | mariadb | from 10.3.0 before 10.3.33 | application |
| mariadb | mariadb | from 10.4.0 before 10.4.23 | application |
| mariadb | mariadb | from 10.5.0 before 10.5.14 | application |
| mariadb | mariadb | from 10.6.0 before 10.6.6 | application |
| mariadb | mariadb | from 10.7.0 before 10.7.2 | application |
| nodejs | node.js | from 12.0.0 through 12.12.0 | application |
| nodejs | node.js | from 12.13.0 before 12.22.11 | application |
NVD analysis (status Modified), last modified October 14, 2026, 13:17 UTC.
How severe is CVE-2022-0778?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | CISA-ADP |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
| Medium 5.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-0778 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, May 22, 2026)
- EPSS
- 73.2% probability of exploitation activity in the next 30 days, percentile 99.5 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-835 Loop with Unreachable Exit Condition
Where are the vendor advisories and references?
- https://www.openssl.org/news/secadv/20220315.txt
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=a466912611aa6cbdf550cd10601390e587451246
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=3118eb64934499d93db3230748a452351d1d9a65
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=380085481c64de749a6dd25cdf0bcf4360b30f83
- DSA-5103 vendor-advisory
- [debian-lts-announce] 20220317 [SECURITY] [DLA 2952-1] openssl security update mailing-list
- [debian-lts-announce] 20220317 [SECURITY] [DLA 2953-1] openssl1.0 security update mailing-list
- FEDORA-2022-a5f51502f0 vendor-advisory
- FEDORA-2022-9e88b5d8d7 vendor-advisory
- FEDORA-2022-8bb51f6901 vendor-advisory
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://security.netapp.com/advisory/ntap-20220321-0002/
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0002
- https://www.tenable.com/security/tns-2022-06
- https://www.tenable.com/security/tns-2022-07
- https://www.tenable.com/security/tns-2022-08
- 20220516 APPLE-SA-2022-05-16-4 Security Update 2022-004 Catalina mailing-list
- 20220516 APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6 mailing-list
- 20220516 APPLE-SA-2022-05-16-2 macOS Monterey 12.4 mailing-list
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://support.apple.com/kb/HT213257
- https://support.apple.com/kb/HT213256
- https://support.apple.com/kb/HT213255
- https://www.tenable.com/security/tns-2022-09
- https://security.netapp.com/advisory/ntap-20220429-0005/
- http://packetstormsecurity.com/files/167344/OpenSSL-1.0.2-1.1.1-3.0-BN_mod_sqrt-Infinite-Loop.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-712929.pdf
- GLSA-202210-02 vendor-advisory
- https://security.netapp.com/advisory/ntap-20240621-0006/
- https://cert-portal.siemens.com/productcert/html/ssa-712929.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-108696.html
- https://cert-portal.siemens.com/productcert/html/ssa-028723.html
- https://cert-portal.siemens.com/productcert/html/ssa-019200.html
Who found and reported it?
- Tavis Ormandy (Google) (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- February 28, 2022
- Published
- March 15, 2022, 17:05 UTC
- CVE record updated
- October 14, 2026, 12:12 UTC by openssl
- NVD
- Modified, last modified October 14, 2026, 13:17 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:50 UTC; KEV December 3, 2026, 10:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect OpenSSL?
- Apr 7, 2014CVE-2014-0160 Openssl: out-of-bounds read exploited
- Dec 1, 2026CVE-2026-123780 OpenSSL: denial of service (resources allocated without limits)
- Dec 1, 2026CVE-2026-120667 OpenSSL: out-of-bounds write (memory corruption)
- Dec 1, 2026CVE-2026-120666 OpenSSL: data authenticity not verified
- Dec 1, 2026CVE-2026-120665 OpenSSL: improper certificate validation
- Nov 24, 2026CVE-2026-84785 OpenSSL: denial of service (resources allocated without limits)
- Nov 18, 2026CVE-2026-95690 OpenSSL: denial of service (resources allocated without limits)
- Nov 18, 2026CVE-2026-84786 OpenSSL: NULL pointer dereference (crash)
Questions about CVE-2022-0778
Is CVE-2022-0778 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:08 UTC. FIRST's EPSS gives it a 73.2% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of OpenSSL are affected by CVE-2022-0778?
openssl-src from 300.0.0 before 300.0.5 and openssl-src before 111.18.0, per the GitHub advisory GHSA-x3mh-jvjw-3xwx. The tables above give every range the sources list.
Which version fixes CVE-2022-0778?
300.0.5 and 111.18.0, per the GitHub advisory GHSA-x3mh-jvjw-3xwx. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-0778?
High (7.5, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2022-0778?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.