PortGate

Advisories · Linux & SSH

CVE-2022-0778 High CVSS 7.5

OpenSSL certificate loop denial of service

Disclosed 2022 · Last reviewed 2 Dec 2026

A crafted certificate could make OpenSSL loop forever while parsing a modulus.

What happened

BN_mod_sqrt did not handle a non-prime modulus and never returned.

Affected and patched versions

Affected
OpenSSL 1.0.2, 1.1.1 before 1.1.1n, and 3.0 before 3.0.2.
Patched
OpenSSL 1.1.1n, 3.0.2, and later, including later 3.x releases.

How to check your server

Check

openssl version

How to fix and harden

  1. Upgrade OpenSSL from the distribution. There are several fixed lines, so compare the changelog rather than one version number.
  2. Restart services that link OpenSSL, including the web server and the database.

Fix

openssl version

Sources

Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON