CVE-2022-0778

Description from NVD

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

Information Acquisition Date:2022-06-02T00:36Z
CVSS 2.0: 5.0 MEDIUM CVSS 3.x: 7.5 HIGH

▼ CVSS3 Vec CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

▼ CVSS2 Vec AV:N/AC:L/Au:N/C:N/I:N/A:P

NVD References

 https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=380085481c64de749a6dd25cdf0bcf4360b30f83
     source:CONFIRM
     tags:Broken Link    
 https://www.openssl.org/news/secadv/20220315.txt
     source:CONFIRM
     tags:Vendor Advisory    
 https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=a466912611aa6cbdf550cd10601390e587451246
     source:CONFIRM
     tags:Mailing List    Patch    Vendor Advisory    
 https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=3118eb64934499d93db3230748a452351d1d9a65
     source:CONFIRM
     tags:Mailing List    Patch    Vendor Advisory    
 DSA-5103
     source:DEBIAN
     tags:Third Party Advisory    
 [debian-lts-announce] 20220317 [SECURITY] [DLA 2953-1] openssl1.0 security update
     source:MLIST
     tags:Mailing List    Third Party Advisory    
 [debian-lts-announce] 20220317 [SECURITY] [DLA 2952-1] openssl security update
     source:MLIST
     tags:Mailing List    Third Party Advisory    
 https://security.netapp.com/advisory/ntap-20220321-0002/
     source:CONFIRM
     tags:Third Party Advisory    
 FEDORA-2022-a5f51502f0
     source:FEDORA
     tags:Mailing List    
 https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0002
     source:CONFIRM
     tags:Third Party Advisory    
 https://www.tenable.com/security/tns-2022-06
     source:CONFIRM
     tags:
 https://www.tenable.com/security/tns-2022-07
     source:CONFIRM
     tags:
 FEDORA-2022-9e88b5d8d7
     source:FEDORA
     tags:
 FEDORA-2022-8bb51f6901
     source:FEDORA
     tags:
 https://www.tenable.com/security/tns-2022-08
     source:CONFIRM
     tags:
 https://www.oracle.com/security-alerts/cpuapr2022.html
     source:MISC
     tags:
 https://www.tenable.com/security/tns-2022-09
     source:CONFIRM
     tags:
 https://security.netapp.com/advisory/ntap-20220429-0005/
     source:CONFIRM
     tags:
 https://support.apple.com/kb/HT213256
     source:CONFIRM
     tags:
 https://support.apple.com/kb/HT213255
     source:CONFIRM
     tags:
 https://support.apple.com/kb/HT213257
     source:CONFIRM
     tags:
 20220516 APPLE-SA-2022-05-16-2 macOS Monterey 12.4
     source:FULLDISC
     tags:
 20220516 APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6
     source:FULLDISC
     tags:
 20220516 APPLE-SA-2022-05-16-4 Security Update 2022-004 Catalina
     source:FULLDISC
     tags:

This vulnerability may involve a PoC.

Refer to Information on External Sites

CVE InfomationExploits or more Infomation
mitreEXPLOIT DATABASE
NVD0day.today
vulmon.comgithub
CVE DetailsTwitter
JVN ENG JPN
Reconshell

Software Tag: OpenSSL(9 tweets)



List of frequently cited URLs

URLNum of Times Referred to
https://gi1584
https://alerts.vulmon.com/?utm_source=twitter&utm_medium=so...168
https://cvetrends.com56
http://cyberiqs.com/latestnews28
http://security.sios.com10
https://thehackernews.com/2022/03/new-infinite-loop-bug-in-...8
https://securityaffairs.co/wordpress/129104/security/openss...6
https://noticiasseguridad.com/vulnerabilidades/cve-2022-077...5
https://github.com/drago-96/CVE-2022-07784
https://ubuntu.com/security/CVE-2022-07784
https://cert-portal.siemens.com/productcert/html/ssa-712929...4
https://ift.tt/OlTMCEy3
http://LWN.net3
https://youtu.be/FUMeoYncAd83
https://zenn.dev/kurenaif/articles/ec2eec4ec7ec523
https://twitter.com/gentilkiwi/status/15056853637921669203
https://www.reddit.com/r/netsec/comments/teusjn/openssl_cve...3
https://www.rtcsec.com/article/exploiting-cve-2022-0778-in-...3
https://www.venafi.com/blog/openssl-patches-new-bug-targeti...3
https://news.sophos.com/en-us/2022/06/01/cve-2022-0778-open...3
https://www.openssl.org/news/secadv/20220315.txt3
https://access.redhat.com/security/cve/CVE-2022-07783
https://networks.unify.com/security/advisories/OBSO-2207-01...3
https://news.ycombinator.com/item?id=306876783
https://www.securityweek.com/high-severity-dos-vulnerabilit...3
https://www.bleepingcomputer.com/news/security/palo-alto-ne...3
https://security.paloaltonetworks.com/CVE-2022-07783

Information from Twitter

User URL Info Source Date
UnifyCoSecurity https://networks.unify.com/security/advisories/OBSO-2207-01... Source UnifyCoSecurity 1597486997022834688 2022/11/29
sidfm_jp https://sid.softek.jp/content/show/44398 Source sidfm_jp         1602589168961728512 2022/12/13
ProductCERT https://cert-portal.siemens.com/productcert/html/ssa-712929... Source ProductCERT      1602597516331081729 2022/12/13
Woronka https://cert-portal.siemens.com/productcert/html/ssa-712929... Source Woronka          1602600619105259520 2022/12/13
TheSecMaster1 https://thesecmaster.com/how-to-fix-cve-2022-0778-a-denial-... Source TheSecMaster1    1604393599977852928 2022/12/18
ProductCERT https://cert-portal.siemens.com/productcert/html/ssa-712929... Source ProductCERT      1612754172150947840 2023/01/10
Woronka https://cert-portal.siemens.com/productcert/html/ssa-712929... Source Woronka          1612762386510893057 2023/01/10
sidfm_jp https://sid.softek.jp/content/show/44563 Source sidfm_jp         1613725046144630785 2023/01/13

List of frequently cited URLs

URLNum of Times Referred to
gi1584
alerts.vulmon.com168
cvetrends.com56
cyberiqs.com28
security.sios.com10
thehackernews.com8
securityaffairs.co6
noticiasseguridad.com5
github.com4
ubuntu.com4
cert-portal.siemens.com4
ift.tt3
LWN.net3
youtu.be3
zenn.dev3
twitter.com3
www.reddit.com3
www.rtcsec.com3
www.venafi.com3
news.sophos.com3
www.openssl.org3
access.redhat.com3
networks.unify.com3
news.ycombinator.com3
www.securityweek.com3
www.bleepingcomputer.com3
security.paloaltonetworks.com3

Information from Twitter

User URL Info Source
UnifyCoSecurity networks.unify.com Show Tweet
sidfm_jp sid.softek.jp Show Tweet
ProductCERT cert-portal.siemens.com Show Tweet
Woronka cert-portal.siemens.com Show Tweet
TheSecMaster1 thesecmaster.com Show Tweet
ProductCERT cert-portal.siemens.com Show Tweet
Woronka cert-portal.siemens.com Show Tweet
sidfm_jp sid.softek.jp Show Tweet

GitHub Search Results: Up to 10
NameURL
drago-96/CVE-2022-0778 https://github.com/drago-96/CVE-2022-0778
0xUhaw/CVE-2022-0778 https://github.com/0xUhaw/CVE-2022-0778
jkakavas/CVE-2022-0778-POC https://github.com/jkakavas/CVE-2022-0778-POC
yywing/cve-2022-0778 https://github.com/yywing/cve-2022-0778

GitHub Search Results: Up to 10
NameURL
drago-96/CVE-2022-0778 github.com
0xUhaw/CVE-2022-0778 github.com
jkakavas/CVE-2022-0778-POC github.com
yywing/cve-2022-0778 github.com

2023/01/13 Score : 0
Added Har-sia Database : 2022/03/16
Last Modified : 2023/01/13
Highest Scored Date : 2022/03/16
Highest Score : 127