Disclosure summary
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).
Source-reported weakness categories
CWE-835
Source-specific records & product guidance
Sources retain their own attribution and scoring. Follow the original record to confirm affected versions, fixed releases, and configuration conditions.
NIST NVD · nvd:CVE-2022-0778
Open original source · Updated Oct 14, 2026
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).
Source severity: HIGH / 7.5
Src 3903b1582d75bc313f · RSS-d5db43c5852ec43399465da78d58e34b1e7
Open original source · Updated Apr 01, 2022
Vulnerability in OpenSSL library
CVE mention in publisher metadata; check the original affected versions.
Indexed product associations
These cached associations support search and triage. Confirm applicability, platform conditions, and fixed versions in the original record.
| Vendor | Product | Version | Source / relationship |
|---|---|---|---|
| debian | debian linux | 10.0 | nvd / vulnerable |
| debian | debian linux | 11.0 | nvd / vulnerable |
| debian | debian linux | 9.0 | nvd / vulnerable |
| fedoraproject | fedora | 34 | nvd / vulnerable |
| fedoraproject | fedora | 36 | nvd / vulnerable |
| mariadb | mariadb | * | nvd / vulnerable |
| netapp | 500f firmware | - | nvd / vulnerable |
| netapp | a250 firmware | - | nvd / vulnerable |
| netapp | cloud volumes ontap mediator | - | nvd / vulnerable |
| netapp | clustered data ontap | - | nvd / vulnerable |
| netapp | clustered data ontap antivirus connector | - | nvd / vulnerable |
| netapp | santricity smi-s provider | - | nvd / vulnerable |
| netapp | storagegrid | - | nvd / vulnerable |
| nodejs | node.js | * | nvd / vulnerable |
| nodejs | node.js | * | nvd / vulnerable |
| openssl | openssl | * | nvd / vulnerable |
| tenable | nessus | * | nvd / vulnerable |
Original records & references
- NIST NVD record
- CVE Program record
- openssl-security@openssl.org — Third Party Advisory
- openssl-security@openssl.org
- openssl-security@openssl.org
- openssl-security@openssl.org
- openssl-security@openssl.org — Mailing List, Third Party Advisory
- openssl-security@openssl.org — Mailing List, Third Party Advisory
- openssl-security@openssl.org
- openssl-security@openssl.org
- openssl-security@openssl.org
- openssl-security@openssl.org — Third Party Advisory
- openssl-security@openssl.org — Third Party Advisory
- openssl-security@openssl.org — Third Party Advisory
- openssl-security@openssl.org — Third Party Advisory
- openssl-security@openssl.org
- openssl-security@openssl.org — Third Party Advisory
- openssl-security@openssl.org — Third Party Advisory
- openssl-security@openssl.org — Third Party Advisory
- openssl-security@openssl.org — Third Party Advisory
- openssl-security@openssl.org — Vendor Advisory
- openssl-security@openssl.org — Third Party Advisory
- openssl-security@openssl.org — Third Party Advisory
- openssl-security@openssl.org — Third Party Advisory
- openssl-security@openssl.org — Third Party Advisory
- openssl-security@openssl.org — Third Party Advisory
- openssl-security@openssl.org — Third Party Advisory
- 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
- 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
- 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
- 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
- 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
GitHub repository matches
Repository matches are links and GitHub-supplied metadata only. They are not verified working proof-of-concept code. Each supported query is bounded to ten pages and at most 1,000 indexed results. This is not a complete index of GitHub or public exploit research. Coverage can also be limited by provider availability, rate limits, rejected metadata, incomplete search results, manual review, and the recorded refresh time.
No stored repository matches
Repository discovery has not recorded an update for this CVE yet.
Discovery progress
0 of 3 discovery queries finished. GitHub returned 0 indexed results; 0 malformed or disallowed results were rejected.
No discovery update has been recorded for this CVE.
View all 0 stored repository matches
PUBLISHED 2022-03-15T17:15:08+00:00
MODIFIED 2026-10-14T13:17:14+00:00
INGESTED 2026-10-14T18:18:05+00:00