CVE-2022-0778: Vulnerability in OpenSSL library

Published Mar 9, 2022
·
Updated

A flaw was found in OpenSSL. It is possible to trigger an infinite loop by crafting a certificate that has invalid elliptic curve parameters. Since certificate parsing happens before verification of the certificate signature, any process that parses an externally supplied certificate may be subject to a denial of service attack.

Other sources

A security advisory was released affecting the version of OpenSSL library used in some Fortinet products:CVE-2022-0778:The BNmodsqrt() 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 parametersAlso any other applications that use the BNmodsqrt() 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).

FortiGuard

AMD. A buffer overflow issue was addressed with improved memory handling.

Apple

AMD. A memory corruption issue was addressed with improved state management.

Apple

apache. Multiple issues were addressed by updating apache to version 2.4.53.

Apple

AppKit. A logic issue was addressed with improved validation.

Apple

Credit

CVE-2022-0778, an anonymous researcher, Liu Long(Ant Security Light), Jack Dates(RET2 Systems Inc), Antonio Zekic@@antoniozekic, Jeonghoon Shin(Theori working with Trend Micro Zero Day Initiative), Peter Nguyễn Vũ Hoàng@@peternguyen14(STAR Labs), Ned Williamson(Google Project Zero), @@gorelics(BreakPoint), (BreakPoint), Ron Masas(BreakPoint), Wojciech Reguła@@_r3ggi(SecuRing), Arsenii Kostromin (0x3c3e)(Microsoft), Jonathan Bar Or(Microsoft), Zhipeng Huo@@R3dF09(Tencent Security Xuanwu Lab), Yuebin Sun@@yuebinsun2020(Tencent Security Xuanwu Lab), Max Shavrick@@_mxms(the Google Security Team), Zubair Ashraf(Crowdstrike), CVE-2022-23308, Mickey Jin@@patch1t, @@gorelics, Linus Henze(Pinauten GmbH), Peter Nguyễn Vũ Hoàng(STAR Labs), Felix Poulin-Belanger, Antonio Cheong Yu Xuan(YCISCQ), Arsenii Kostromin (0x3c3e), CVE-2021-4136, CVE-2021-4166, CVE-2021-4173, CVE-2021-4187, CVE-2021-4192, CVE-2021-4193, CVE-2021-46059, CVE-2022-0128, Heige(KnownSec 404 Team), Bo Qu(Palo Alto Networks), Scarlet Raine, Wang Yu(Cyberserval), CVE-2022-0530, Tavis Ormandy, CVE-2021-45444, Yonghwi Jin@@jinmo123(Theori), Lockheed Martin Red Team, Jeremy Brown(Trend Micro Zero Day Initiative), Michael DePlante@@izobashi(Trend Micro Zero Day Initiative), Qi Sun(Trend Micro), Ye Zhang@@co0py_Cat(Baidu Security), Robert Ai(Trend Micro), CVE-2021-44224, CVE-2021-44790, CVE-2022-22719, CVE-2022-22720, CVE-2022-22721, Paul Walker(Bury), Nathaniel Ekoniak(Ennate Technologies), Gergely Kalman@@gergely_kalman(Mandiant), (Mandiant), Joshua Mason(Mandiant), Ron Waisberg(SecuRing), an anonymous researcher(SecuRing), (Perception Point), Ron Hass@@ronhass7(Perception Point), ryuzaki, Chijin Zhou(ShuiMuYuLin Ltd), Tsinghua wingtecher lab, Jeonghoon Shin(Theori), SorryMybad@@S0rryMybad(Kunlun Lab), Dongzhuo Zhao(ADLab of Venustech), ABC Research s.r.o, Jon Thompson(Evolve), IA), actae0n(Blacksun Hackers Club working with Trend Micro Zero Day Initiative), Andrew Williams(Google), Avi Drissman(Google), chenyuwang@@mzzzz__(Tencent Security Xuanwu Lab), Jordy Zomer@@pwningsystems

Affected Software

77 affected componentsFixes available
redhat/jbcs-httpd24-apr-util<0:1.6.1-91.el8
0:1.6.1-91.el8
redhat/jbcs-httpd24-curl<0:7.78.0-3.el8
0:7.78.0-3.el8
redhat/jbcs-httpd24-httpd<0:2.4.37-80.el8
0:2.4.37-80.el8
redhat/jbcs-httpd24-nghttp2<0:1.39.2-41.el8
0:1.39.2-41.el8
redhat/jbcs-httpd24-openssl<1:1.1.1g-11.el8
1:1.1.1g-11.el8
redhat/jbcs-httpd24-openssl-chil<0:1.0.0-11.el8
0:1.0.0-11.el8
redhat/jbcs-httpd24-openssl-pkcs11<0:0.4.10-26.el8
0:0.4.10-26.el8
redhat/jbcs-httpd24-apr-util<0:1.6.1-91.jbcs.el7
0:1.6.1-91.jbcs.el7
redhat/jbcs-httpd24-curl<0:7.78.0-3.jbcs.el7
0:7.78.0-3.jbcs.el7
redhat/jbcs-httpd24-httpd<0:2.4.37-80.jbcs.el7
0:2.4.37-80.jbcs.el7
redhat/jbcs-httpd24-nghttp2<0:1.39.2-41.jbcs.el7
0:1.39.2-41.jbcs.el7
redhat/jbcs-httpd24-openssl<1:1.1.1g-11.jbcs.el7
1:1.1.1g-11.jbcs.el7
redhat/jbcs-httpd24-openssl-chil<0:1.0.0-11.jbcs.el7
0:1.0.0-11.jbcs.el7
redhat/jbcs-httpd24-openssl-pkcs11<0:0.4.10-26.jbcs.el7
0:0.4.10-26.jbcs.el7
redhat/openssl<0:1.0.1e-60.el6_10
0:1.0.1e-60.el6_10
redhat/openssl<1:1.0.2k-25.el7_9
1:1.0.2k-25.el7_9
redhat/openssl<1:1.0.1e-62.el7_3
1:1.0.1e-62.el7_3
redhat/openssl<1:1.0.2k-10.el7_4
1:1.0.2k-10.el7_4
redhat/openssl<1:1.0.2k-18.el7_6
1:1.0.2k-18.el7_6
redhat/openssl<1:1.0.2k-21.el7_7
1:1.0.2k-21.el7_7
redhat/compat-openssl10<1:1.0.2o-4.el8_6
1:1.0.2o-4.el8_6
redhat/openssl<1:1.1.1k-6.el8_5
1:1.1.1k-6.el8_5
redhat/openssl<1:1.1.1c-5.el8_1.1
1:1.1.1c-5.el8_1.1
redhat/openssl<1:1.1.1c-19.el8_2
1:1.1.1c-19.el8_2
redhat/openssl<1:1.1.1g-16.el8_4
1:1.1.1g-16.el8_4
redhat/compat-openssl11<1:1.1.1k-4.el9_0
1:1.1.1k-4.el9_0
redhat/jws5-tomcat<0:9.0.50-5.redhat_00007.1.el7
0:9.0.50-5.redhat_00007.1.el7
redhat/jws5-tomcat-native<0:1.2.30-4.redhat_4.el7
0:1.2.30-4.redhat_4.el7
redhat/jws5-tomcat<0:9.0.50-5.redhat_00007.1.el8
0:9.0.50-5.redhat_00007.1.el8
redhat/jws5-tomcat-native<0:1.2.30-4.redhat_4.el8
0:1.2.30-4.redhat_4.el8
redhat/redhat-virtualization-host<0:4.3.22-20220330.1.el7_9
0:4.3.22-20220330.1.el7_9
redhat/openssl<1.0.2
1.0.2
redhat/openssl<1.1.1
1.1.1
redhat/openssl<3.0.2
3.0.2
rust/openssl-src<111.18.0
111.18.0
rust/openssl-src>=300.0.0<300.0.5
300.0.5
Apple macOS Big Sur<11.6.6
11.6.6
Apple Catalina
IBM Engineering Requirements Quality Assistant On-Premises<=All
Apple macOS Monterey<12.4
12.4
debian/openssl
1.1.1w-0+deb11u11.1.1w-0+deb11u23.0.15-1~deb12u13.0.14-1~deb12u23.5.0-1
OpenSSL OpenSSL>=1.0.2<1.0.2zd
OpenSSL OpenSSL>=1.1.0<1.1.1n
OpenSSL OpenSSL>=3.0.0<3.0.2
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
NetApp Cloud Volumes Ontap Mediator
NetApp Clustered Data ONTAP
NetApp Clustered Data Ontap Antivirus Connector
NetApp Santricity Smi-s Provider
NetApp Storagegrid
All of the following
NetApp A250 Firmware
NetApp A250
All of the following
NetApp 500f Firmware
NetApp 500f
Fedoraproject Fedora=34
Fedoraproject Fedora=36
Tenable Nessus<8.15.4
Tenable Nessus>=10.0.0<10.1.2
MariaDB MariaDB>=10.2.0<10.2.42
MariaDB MariaDB>=10.3.0<10.3.33
MariaDB MariaDB>=10.4.0<10.4.23
MariaDB MariaDB>=10.5.0<10.5.14
MariaDB MariaDB>=10.6.0<10.6.6
MariaDB MariaDB>=10.7.0<10.7.2
Nodejs Node.js>=12.0.0<=12.12.0
Nodejs Node.js>=12.13.0<12.22.11
Nodejs Node.js>14.0.0<=14.14.0
Nodejs Node.js>=14.15.0<14.19.1
Nodejs Node.js>16.0.0<=16.12.0
Nodejs Node.js>=16.13.0<16.14.2
Nodejs Node.js>17.0.0<17.7.2
NetApp A250 Firmware
NetApp A250
NetApp 500f Firmware
NetApp 500f

Remediation

Information

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.

Event History

Mar 9, 2022
Data Sourced
via Red Hat·11:42 AM
DescriptionSeverityAffected Software
Mar 15, 2022
CVE Published
12:00 AM
CVE Published
via MITRE·05:05 PM
Data Sourced
via MITRE·05:05 PM
DescriptionWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeaknessAffected Software
Mar 16, 2022
Advisory Published
via GitHub·12:00 AM
Apr 1, 2022
Advisory Published
via FortiGuard·12:00 AM
Data Sourced
via FortiGuard·12:00 AM
DescriptionSeverityWeaknessAffected Software
May 16, 2022
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Updated
via Apple·12:00 AM
Description
Updated
via Apple·12:00 AM
DescriptionWeakness
Jun 28, 2024
Data Sourced
via Launchpad·02:20 AM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·02:17 AM
RemedyDescriptionSeverityAffected Software
Oct 24, 2024
Advisory Published
via FortiGuard·12:00 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2022-0778.

2

What is the severity of CVE-2022-0778?

The severity of CVE-2022-0778 is high.

3

How does the vulnerability CVE-2022-0778 affect OpenSSL?

The vulnerability CVE-2022-0778 affects OpenSSL by causing the BN_mod_sqrt() function to loop forever for non-prime moduli.

4

Which software versions are affected by CVE-2022-0778?

The software versions affected by CVE-2022-0778 are OpenSSL 1.0.2 up to exclusive and OpenSSL 1.1.1 up to exclusive.

5

How can I fix the vulnerability CVE-2022-0778?

To fix the vulnerability CVE-2022-0778, update OpenSSL to a version that includes the fix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203