ADVISORIES

Vulnerability

CVE-2022-0778

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

89 advisories report this vulnerability, across 15 ecosystems.

Advisories

  • ALAS2-2022-1766

    Amazon Linux 2 2017.12 - ALAS2-2022-1766: important priority package update for openssl openssl11

    Important CVE-2022-0778 Amazon Linux Updated 26 April 2022
  • ALAS2-2024-2502

    Amazon Linux 2 2017.12 - ALAS2-2024-2502: important priority package update for edk2

    Important CVE-2020-1971CVE-2021-23840CVE-2021-23841CVE-2021-3449 Amazon Linux Updated 23 September 2025
  • ALAS2023-2023-037

    Amazon Linux 2023 - ALAS2023-2023-037: Important priority package update for mariadb105

    Important CVE-2021-2372CVE-2021-2389CVE-2021-35604CVE-2021-46658 Amazon Linux Updated 22 February 2023
  • ALAS2023-2023-051

    Amazon Linux 2023 - ALAS2023-2023-051: Important priority package update for openssl

    Important CVE-2022-0778CVE-2022-1292CVE-2022-1343CVE-2022-1434 Amazon Linux Updated 22 February 2023
  • ALPINE-CVE-2022-0778

    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…

    CVE-2022-0778 Alpine Updated 20 November 2026
  • ALPINE-EDGE-CVE-2022-0778
    CVE-2022-0778 Alpine Updated 18 November 2026
  • ALSA-2022:1065

    Important: openssl security update

    CVE-2022-0778 AlmaLinux Updated 29 October 2026
  • ALSA-2022:5326

    Low: compat-openssl10 security update

    CVE-2022-0778 AlmaLinux Updated 29 October 2026
  • AZL-9051

    CVE-2022-0778 affecting package openssl for versions less than 1.1.1k-12

    CVE-2022-0778 Azure Linux Updated 21 April 2026
  • CGA-62rf-jf63-4fc4
    CVE-2022-0778 ChainguardWolfi Updated 5 November 2026
  • CGA-gfvc-gh75-59r2
    CVE-2022-0778 Chainguard Updated 29 October 2026
  • CGA-jj56-xjxp-26mr
    CVE-2022-0778 ChainguardWolfi Updated 5 November 2026
  • CGA-pv2w-wv5p-p7p3
    CVE-2022-0778 Chainguard Updated 29 October 2026
  • DEBIAN-CVE-2022-0778

    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…

    CVE-2022-0778 Debian Updated 20 November 2026
  • DLA-2952-1

    openssl - security update

    CVE-2019-1551CVE-2022-0778 Debian Updated 20 November 2026
  • DLA-2953-1

    openssl1.0 - security update

    CVE-2022-0778 Debian Updated 20 November 2026
  • DSA-5103-1

    openssl - security update

    CVE-2021-4160CVE-2022-0778 Debian Updated 20 November 2026
  • ELSA-2022-1065

    ELSA-2022-1065: openssl security update (IMPORTANT)

    Important CVE-2022-0778 Oracle Linux Updated 28 March 2022
  • ELSA-2022-1066

    ELSA-2022-1066: openssl security update (IMPORTANT)

    Important CVE-2022-0778 Oracle Linux Updated 29 March 2022
  • ELSA-2022-4899

    ELSA-2022-4899: compat-openssl11 security and bug fix update (IMPORTANT)

    Important CVE-2022-0778 Oracle Linux Updated 30 June 2022
  • ELSA-2022-5326

    ELSA-2022-5326: compat-openssl10 security update (LOW)

    Low CVE-2022-0778 Oracle Linux Updated 1 July 2022
  • ELSA-2022-9224

    ELSA-2022-9224: openssl security update (IMPORTANT)

    Important CVE-2022-0778 Oracle Linux Updated 18 March 2022
  • ELSA-2022-9225

    ELSA-2022-9225: openssl security update (IMPORTANT)

    Important CVE-2022-0778 Oracle Linux Updated 18 March 2022
  • ELSA-2022-9233

    ELSA-2022-9233: openssl security update (IMPORTANT)

    Important CVE-2022-0778 Oracle Linux Updated 23 March 2022
  • ELSA-2022-9237

    ELSA-2022-9237: openssl security update (IMPORTANT)

    Important CVE-2022-0778 Updated 21 March 2022
  • ELSA-2022-9243

    ELSA-2022-9243: openssl security update (IMPORTANT)

    Important CVE-2022-0778 Updated 23 March 2022
  • ELSA-2022-9246

    ELSA-2022-9246: openssl security update (IMPORTANT)

    Important CVE-2022-0778 Oracle Linux Updated 24 March 2022
  • ELSA-2022-9249

    ELSA-2022-9249: openssl security update (IMPORTANT)

    Important CVE-2022-0778 Oracle Linux Updated 30 March 2022
  • ELSA-2022-9255

    ELSA-2022-9255: openssl security update (IMPORTANT)

    Important CVE-2022-0778 Updated 31 March 2022
  • ELSA-2022-9258

    ELSA-2022-9258: openssl security update (IMPORTANT)

    Important CVE-2022-0778 Updated 31 March 2022
  • ELSA-2022-9272

    ELSA-2022-9272: openssl security update (IMPORTANT)

    Important CVE-2022-0778 Updated 8 April 2022
  • GHSA-x3mh-jvjw-3xwx

    openssl-src's infinite loop in `BN_mod_sqrt()` reachable when parsing certificates

    High CVE-2022-0778 crates.io Updated 10 September 2026
  • OESA-2022-1603

    openssl security update

    High CVE-2022-0778 openEuler Updated 18 August 2026
  • OESA-2022-1898

    intel-sgx-ssl security update

    High CVE-2022-0778CVE-2022-1292CVE-2022-2068CVE-2022-2097 openEuler Updated 18 August 2026
  • OESA-2022-1924

    linux-sgx security update

    High CVE-2022-0778 openEuler Updated 18 August 2026
  • OESA-2022-1938

    shim security update

    High CVE-2017-3735CVE-2018-0732CVE-2020-1971CVE-2021-23840 openEuler Updated 18 August 2026
  • OESA-2023-1830

    mariadb security update

    High CVE-2022-0778CVE-2022-32085CVE-2022-32087CVE-2022-32091 openEuler Updated 18 August 2026
  • OESA-2024-2092

    edk2 security update

    High CVE-2021-3712CVE-2022-0778 openEuler Updated 18 August 2026
  • OESA-2024-2093

    edk2 security update

    High CVE-2021-3712CVE-2022-0778 openEuler Updated 18 August 2026
  • OESA-2024-2094

    edk2 security update

    High CVE-2021-3712CVE-2022-0778 openEuler Updated 18 August 2026
  • OESA-2024-2095

    edk2 security update

    High CVE-2021-3712CVE-2022-0778 openEuler Updated 18 August 2026
  • RHSA-2022:1065

    Red Hat Security Advisory: openssl security update

    CVE-2022-0778 Red Hat Updated 23 November 2026
  • RHSA-2022:1066

    Red Hat Security Advisory: openssl security update

    CVE-2022-0778 Red Hat Updated 23 November 2026
  • RHSA-2022:1071

    Red Hat Security Advisory: openssl security update

    CVE-2022-0778 Red Hat Updated 23 November 2026
  • RHSA-2022:1073

    Red Hat Security Advisory: openssl security update

    CVE-2022-0778 Red Hat Updated 23 November 2026
  • RHSA-2022:1076

    Red Hat Security Advisory: openssl security update

    CVE-2022-0778 Red Hat Updated 23 November 2026
  • RHSA-2022:1077

    Red Hat Security Advisory: openssl security update

    CVE-2022-0778 Red Hat Updated 23 November 2026
  • RHSA-2022:1078

    Red Hat Security Advisory: openssl security update

    CVE-2022-0778 Red Hat Updated 23 November 2026
  • RHSA-2022:1082

    Red Hat Security Advisory: openssl security update

    CVE-2022-0778 Red Hat Updated 23 November 2026
  • RHSA-2022:1091

    Red Hat Security Advisory: openssl security update

    CVE-2022-0778 Red Hat Updated 23 November 2026
  • RHSA-2022:1112

    Red Hat Security Advisory: openssl security update

    CVE-2022-0778 Red Hat Updated 23 November 2026
  • RHSA-2022:1263

    Red Hat Security Advisory: RHV-H security update (redhat-virtualization-host) 4.3.22

    Known exploited CVE-2021-0920CVE-2021-4028CVE-2021-4083CVE-2021-4155 Red Hat Updated 23 November 2026
  • RHSA-2022:1389

    Red Hat Security Advisory: Red Hat JBoss Core Services Apache HTTP Server 2.4.37 SP11 security update

    CVE-2021-3516CVE-2021-3517CVE-2021-3518CVE-2021-3537 Red Hat Updated 23 November 2026
  • RHSA-2022:1519

    Red Hat Security Advisory: Red Hat JBoss Web Server 5.6.2 Security Update

    CVE-2022-0778 Red Hat Updated 23 November 2026
  • RHSA-2022:4896

    Red Hat Security Advisory: Red Hat Virtualization security, bug fix, and enhancement update [ovirt-4.5.0]

    CVE-2018-25032CVE-2021-4028CVE-2021-4083CVE-2022-0778 Red Hat Updated 23 November 2026
  • RHSA-2022:4899

    Red Hat Security Advisory: compat-openssl11 security and bug fix update

    CVE-2022-0778 Red Hat Updated 23 November 2026
  • RHSA-2022:5326

    Red Hat Security Advisory: compat-openssl10 security update

    CVE-2022-0778 Red Hat Updated 23 November 2026
  • RLSA-2022:1065

    Important: openssl security update

    CVE-2022-0778 Rocky Linux Updated 5 February 2026
  • RLSA-2022:4899

    Important: compat-openssl11 security and bug fix update

    CVE-2022-0778 Rocky Linux Updated 5 February 2026
  • RLSA-2022:5326

    Low: compat-openssl10 security update

    CVE-2022-0778 Rocky Linux Updated 4 February 2026
  • RUSTSEC-2022-0014

    Infinite loop in `BN_mod_sqrt()` reachable when parsing certificates

    CVE-2022-0778 crates.io Updated 10 June 2025
  • SUSE-RU-2022:0861-1

    Security update for openssl-1_1

    CVE-2022-0778 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0851-1

    Security update for openssl-1_1

    CVE-2022-0778 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0853-1

    Security update for openssl-1_1

    CVE-2022-0778 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0854-1

    Security update for openssl

    CVE-2022-0778 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0856-1

    Security update for openssl-1_0_0

    CVE-2022-0778 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0857-1

    Security update for openssl-1_0_0

    CVE-2022-0778 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0859-1

    Security update for compat-openssl098

    CVE-2022-0778 SUSE Updated 2 May 2025
  • SUSE-SU-2022:0860-1

    Security update for openssl-1_1

    CVE-2022-0778 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0861-1

    Security update for openssl-1_1

    CVE-2022-0778 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0935-1

    Security update for nodejs12

    CVE-2022-0778 SUSE Updated 4 February 2026
  • SUSE-SU-2022:1459-1

    Security update for nodejs14

    CVE-2021-44906CVE-2021-44907CVE-2022-0235CVE-2022-0778 SUSE Updated 4 February 2026
  • SUSE-SU-2022:1461-1

    Security update for nodejs12

    CVE-2021-44906CVE-2021-44907CVE-2022-0235CVE-2022-0778 SUSEopenSUSE Updated 2 May 2025
  • SUSE-SU-2022:1462-1

    Security update for nodejs14

    CVE-2021-44906CVE-2021-44907CVE-2022-0235CVE-2022-0778 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2022:14915-1

    Security update for openssl

    CVE-2022-0778 SUSE Updated 4 February 2026
  • SUSE-SU-2022:14916-1

    Security update for openssl1

    CVE-2022-0778 SUSE Updated 4 February 2026
  • SUSEVEX-CVE-2022-0778

    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…

    Important CVE-2022-0778 SUSE Updated 17 October 2026
  • UBUNTU-CVE-2022-0778

    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…

    CVE-2022-0778 Ubuntu Updated 5 October 2026
  • USN-5328-1

    openssl, openssl1.0 vulnerability

    CVE-2022-0778 Ubuntu Updated 25 May 2026
  • USN-5328-2

    openssl vulnerability

    CVE-2022-0778 Ubuntu Updated 29 June 2026
  • USN-6457-1

    nodejs vulnerabilities

    CVE-2022-0778CVE-2022-1292CVE-2022-2068CVE-2022-2097 Ubuntu Updated 25 May 2026
  • USN-7894-1

    edk2 vulnerabilities

    CVE-2021-3712CVE-2022-0778CVE-2022-4304CVE-2022-4450 Ubuntu Updated 9 November 2026
  • openSUSE-SU-2022:0856-1

    Security update for openssl-1_0_0

    CVE-2022-0778 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11927-1

    libopenssl-3-devel-3.0.2-1.1 on GA media

    CVE-2022-0778 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11933-1

    libopenssl-1_1-devel-1.1.1n-1.1 on GA media

    CVE-2022-0778 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11944-1

    libcrypto47-3.4.3-1.1 on GA media

    CVE-2022-0778 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11953-1

    cargo-audit-advisory-db-20220323-1.1 on GA media

    CVE-2022-0778 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:12444-1

    python310-ecdsa-0.18.0-1.1 on GA media

    CVE-2022-0778 openSUSE Updated 4 February 2026
  • openSUSE-SU-2025:14965-1

    python311-ecdsa-0.19.1-1.1 on GA media

    CVE-2022-0778 openSUSE Updated 4 February 2026

References