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
-
ALAS2-2024-2502
Amazon Linux 2 2017.12 - ALAS2-2024-2502: important priority package update for edk2
-
ALAS2023-2023-037
Amazon Linux 2023 - ALAS2023-2023-037: Important priority package update for mariadb105
-
ALAS2023-2023-051
Amazon Linux 2023 - ALAS2023-2023-051: Important priority package update for openssl
-
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…
- ALPINE-EDGE-CVE-2022-0778
-
ALSA-2022:1065
Important: openssl security update
-
ALSA-2022:5326
Low: compat-openssl10 security update
-
AZL-9051
CVE-2022-0778 affecting package openssl for versions less than 1.1.1k-12
- CGA-62rf-jf63-4fc4
- CGA-gfvc-gh75-59r2
- CGA-jj56-xjxp-26mr
- CGA-pv2w-wv5p-p7p3
-
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…
-
DLA-2952-1
openssl - security update
-
DLA-2953-1
openssl1.0 - security update
-
DSA-5103-1
openssl - security update
-
ELSA-2022-1065
ELSA-2022-1065: openssl security update (IMPORTANT)
-
ELSA-2022-1066
ELSA-2022-1066: openssl security update (IMPORTANT)
-
ELSA-2022-4899
ELSA-2022-4899: compat-openssl11 security and bug fix update (IMPORTANT)
-
ELSA-2022-5326
ELSA-2022-5326: compat-openssl10 security update (LOW)
-
ELSA-2022-9224
ELSA-2022-9224: openssl security update (IMPORTANT)
-
ELSA-2022-9225
ELSA-2022-9225: openssl security update (IMPORTANT)
-
ELSA-2022-9233
ELSA-2022-9233: openssl security update (IMPORTANT)
-
ELSA-2022-9237
ELSA-2022-9237: openssl security update (IMPORTANT)
-
ELSA-2022-9243
ELSA-2022-9243: openssl security update (IMPORTANT)
-
ELSA-2022-9246
ELSA-2022-9246: openssl security update (IMPORTANT)
-
ELSA-2022-9249
ELSA-2022-9249: openssl security update (IMPORTANT)
-
ELSA-2022-9255
ELSA-2022-9255: openssl security update (IMPORTANT)
-
ELSA-2022-9258
ELSA-2022-9258: openssl security update (IMPORTANT)
-
ELSA-2022-9272
ELSA-2022-9272: openssl security update (IMPORTANT)
-
GHSA-x3mh-jvjw-3xwx
openssl-src's infinite loop in `BN_mod_sqrt()` reachable when parsing certificates
-
OESA-2022-1603
openssl security update
-
OESA-2022-1898
intel-sgx-ssl security update
-
OESA-2022-1924
linux-sgx security update
-
OESA-2022-1938
shim security update
-
OESA-2023-1830
mariadb security update
-
OESA-2024-2092
edk2 security update
-
OESA-2024-2093
edk2 security update
-
OESA-2024-2094
edk2 security update
-
OESA-2024-2095
edk2 security update
-
RHSA-2022:1065
Red Hat Security Advisory: openssl security update
-
RHSA-2022:1066
Red Hat Security Advisory: openssl security update
-
RHSA-2022:1071
Red Hat Security Advisory: openssl security update
-
RHSA-2022:1073
Red Hat Security Advisory: openssl security update
-
RHSA-2022:1076
Red Hat Security Advisory: openssl security update
-
RHSA-2022:1077
Red Hat Security Advisory: openssl security update
-
RHSA-2022:1078
Red Hat Security Advisory: openssl security update
-
RHSA-2022:1082
Red Hat Security Advisory: openssl security update
-
RHSA-2022:1091
Red Hat Security Advisory: openssl security update
-
RHSA-2022:1112
Red Hat Security Advisory: openssl security update
-
RHSA-2022:1263
Red Hat Security Advisory: RHV-H security update (redhat-virtualization-host) 4.3.22
-
RHSA-2022:1389
Red Hat Security Advisory: Red Hat JBoss Core Services Apache HTTP Server 2.4.37 SP11 security update
-
RHSA-2022:1519
Red Hat Security Advisory: Red Hat JBoss Web Server 5.6.2 Security Update
-
RHSA-2022:4896
Red Hat Security Advisory: Red Hat Virtualization security, bug fix, and enhancement update [ovirt-4.5.0]
-
RHSA-2022:4899
Red Hat Security Advisory: compat-openssl11 security and bug fix update
-
RHSA-2022:5326
Red Hat Security Advisory: compat-openssl10 security update
-
RLSA-2022:1065
Important: openssl security update
-
RLSA-2022:4899
Important: compat-openssl11 security and bug fix update
-
RLSA-2022:5326
Low: compat-openssl10 security update
-
RUSTSEC-2022-0014
Infinite loop in `BN_mod_sqrt()` reachable when parsing certificates
-
SUSE-RU-2022:0861-1
Security update for openssl-1_1
-
SUSE-SU-2022:0851-1
Security update for openssl-1_1
-
SUSE-SU-2022:0853-1
Security update for openssl-1_1
-
SUSE-SU-2022:0854-1
Security update for openssl
-
SUSE-SU-2022:0856-1
Security update for openssl-1_0_0
-
SUSE-SU-2022:0857-1
Security update for openssl-1_0_0
-
SUSE-SU-2022:0859-1
Security update for compat-openssl098
-
SUSE-SU-2022:0860-1
Security update for openssl-1_1
-
SUSE-SU-2022:0861-1
Security update for openssl-1_1
-
SUSE-SU-2022:0935-1
Security update for nodejs12
-
SUSE-SU-2022:1459-1
Security update for nodejs14
-
SUSE-SU-2022:1461-1
Security update for nodejs12
-
SUSE-SU-2022:1462-1
Security update for nodejs14
-
SUSE-SU-2022:14915-1
Security update for openssl
-
SUSE-SU-2022:14916-1
Security update for openssl1
-
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…
-
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…
-
USN-5328-1
openssl, openssl1.0 vulnerability
-
USN-5328-2
openssl vulnerability
-
USN-6457-1
nodejs vulnerabilities
-
USN-7894-1
edk2 vulnerabilities
-
openSUSE-SU-2022:0856-1
Security update for openssl-1_0_0
-
openSUSE-SU-2024:11927-1
libopenssl-3-devel-3.0.2-1.1 on GA media
-
openSUSE-SU-2024:11933-1
libopenssl-1_1-devel-1.1.1n-1.1 on GA media
-
openSUSE-SU-2024:11944-1
libcrypto47-3.4.3-1.1 on GA media
-
openSUSE-SU-2024:11953-1
cargo-audit-advisory-db-20220323-1.1 on GA media
-
openSUSE-SU-2024:12444-1
python310-ecdsa-0.18.0-1.1 on GA media
-
openSUSE-SU-2025:14965-1
python311-ecdsa-0.19.1-1.1 on GA media
References
- http://packetstormsecurity.com/files/167344/OpenSSL-1.0.2-1.1.1-3.0-BN_mod_sqrt-Infinite-Loop.html
- http://seclists.org/fulldisclosure/2022/May/33
- http://seclists.org/fulldisclosure/2022/May/35
- http://seclists.org/fulldisclosure/2022/May/38
- https://cert-portal.siemens.com/productcert/pdf/ssa-712929.pdf
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=3118eb64934499d93db3230748a452351d1d9a65
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=380085481c64de749a6dd25cdf0bcf4360b30f83
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=a466912611aa6cbdf550cd10601390e587451246
- https://lists.debian.org/debian-lts-announce/2022/03/msg00023.html
- https://lists.debian.org/debian-lts-announce/2022/03/msg00024.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/323SNN6ZX7PRJJWP2BUAFLPUAE42XWLZ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GDB3GQVJPXJE7X5C5JN6JAA4XUDWD6E6/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W6K3PR542DXWLEFFMFIDMME4CWMHJRMG/
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0002
- https://security.gentoo.org/glsa/202210-02
- https://security.netapp.com/advisory/ntap-20220321-0002/
- https://security.netapp.com/advisory/ntap-20220429-0005/
- https://security.netapp.com/advisory/ntap-20240621-0006/
- https://support.apple.com/kb/HT213255
- https://support.apple.com/kb/HT213256
- https://support.apple.com/kb/HT213257
- https://www.debian.org/security/2022/dsa-5103
- https://www.openssl.org/news/secadv/20220315.txt
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.tenable.com/security/tns-2022-06
- https://www.tenable.com/security/tns-2022-07
- https://www.tenable.com/security/tns-2022-08
- https://www.tenable.com/security/tns-2022-09
- https://cert-portal.siemens.com/productcert/html/ssa-019200.html
- https://cert-portal.siemens.com/productcert/html/ssa-028723.html
- https://cert-portal.siemens.com/productcert/html/ssa-108696.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-712929.html