CVE-2022-0778: Infinite loop in BN_mod_sqrt() reachable when parsing certificates

CVE-2022-0778 affects 198 listed versions of Aruba ClearPass Policy Manager, Palo Alto Networks Cortex XDR agent, Palo Alto Networks GlobalProtect and 4 more products in the Dawnsentry catalogue.

7.5CVSS high
None knownexploitation
73%EPSS (next 30 days)
15 March 2022published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Aruba ClearPass Policy Manager

64 of 113 listed versions are affected. Fixed in 6.10.5, 6.9.11, 6.8.9_Hotfix_for_Q1_2022_Security_issues. The newest release, 6.14.1-HF3, is not affected.

6.10.4 6.10.3-HF1 6.10.3 6.10.2 6.9.10 6.9.9-HF1 6.9.9 6.9.7 6.9.6 6.9.5 6.9.4 6.9.3 6.9.2 6.8.9 6.8.8 6.8.7 6.8.6 6.8.5 6.8.4 6.8.1 6.7.14 6.7.13 6.7.12 6.7.6 6.7.5 6.7.3 6.7.2 6.7.1 6.6.10 6.6.9 6.6.5 6.6.2 6.6.0 6.5.7 6.5.6 6.5.5 6.5.4 6.5.3 6.5.2 6.5.1 6.5.0 6.5 6.4.7 6.4.6 6.4.5 6.4.4 6.4.3 6.4.2 6.4.0 6.3.6 6.3.5 6.3.4 6.3.0.61712 6.3.0.60730 6.3 6.2.6.62196 6.2.6 6.2.5.61640 6.2 6.1.4.61696 and 4 more

Palo Alto Networks Cortex XDR agent

37 of 125 listed versions are affected. Fixed in 7.7.0.60725, 7.6.2.60545, 7.5.100.60642, 6.1.9.61370. The newest release, 9.1.0, is not affected.

7.7.0.59559 7.7.0.2356 7.7-content_update330 7.7 7.6.2.59612 7.6.2.2311 7.6.2-content_update330 7.6.2 7.6.1-content_update330 7.6.1 7.6 7.5.100.59687 7.5.100.2276 7.5.3.60113 7.5.3.59465 7.5.3.2265 7.5.3-content_update330 7.5.3 7.5.2-content_update330 7.5.2 7.5.1-content_update330 7.5.1 7.4 6.1.9-content_update330 6.1.9 6.1.8-content_update330 6.1.8 6.1.7.60245 6.1.7.1690 6.1.7-content_update330 6.1.7 6.1.6-content_update330 6.1.6 6.1.5-content_update330 6.1.5 6.1.4-content_update330 6.1.4

Palo Alto Networks GlobalProtect

28 of 134 listed versions are affected. Fixed in 5.3.4, 5.2.12, 5.1.11. The newest release, 6.3.5, is not affected.

5.3.2 5.3.1 5.3.0 5.3 5.2.11 5.2.10 5.2.9 5.2.8 5.2.7 5.2.6 5.2.5 5.2.4 5.2.3 5.2.2 5.2.1 5.2.0 5.1.10 5.1.9 5.1.8 5.1.7 5.1.6 5.1.5 5.1.4 5.1.3 5.1.2 5.1.1 5.1.0 5.1

MariaDB

23 of 250 listed versions are affected. Fixed in 10.4.23, 10.3.33, 10.2.42. The newest release, 13.1.2, is not affected.

10.4.22 10.4.21 10.4.20 10.3.32 10.3.31 10.3.30 10.3.29 10.3.28 10.3.27 10.3.26 10.3.25 10.2.41 10.2.40 10.2.39 10.2.38 10.2.37 10.2.36 10.2.35 10.2.34 10.2.33 10.2.32 10.2.31 10.2.30

Aruba AOS-CX

22 of 111 listed versions are affected. Fixed in 10.09.1020, 10.08.1060, 10.07.0080, 10.06.0200. The newest release, 10.19.0000, is not affected.

10.09.1010 10.09.0010 10.09.0002 10.09.0001 10.08.1050 10.08.1040 10.08.1030 10.08.0130 10.08.0010 10.08.0001 10.07.0070 10.07.0061 10.07.0050 10.07.0030 10.07.0020 10.07.0010 10.07.0009 10.06.190 10.06.0180 10.06.0170 10.06.0130 10.06.0120

Palo Alto Networks PAN-OS

14 of 250 listed versions are affected. Fixed in 10.0.10, 9.0.16-h2, 8.1.23. The newest release, 12.2.4-h3, is not affected.

10.0.9 10.0.8-h11 10.0.8-h10 9.0.16-h1 9.0.16 8.1.22 8.1.21-h1 8.1.21 8.1.20-h1 8.1.20 8.1.19 8.1.18 8.1.17 8.1.16

Node.js

10 of 250 listed versions are affected. Fixed in 17.7.2. The newest release, 26.14.0, is not affected.

17.7.1 17.7.0 17.6.0 17.5.0 17.4.0 17.3.1 17.3.0 17.2.0 17.1.0 17.0.1

What it is

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).

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

Published by OpenSSL on 15 March 2022. Last changed 14 October 2026.

Sources

Check one version you run: look CVE-2022-0778 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.