Infinite loop in BN_mod_sqrt() reachable when parsing certificates
CVSS score
7.5
EPSS probability
%73.2
Risk score
5.5
Published
4 y ago
Resmî kaynaklarda yeterli kanıt bulunamadı. Bu sonuç “yama yok” anlamına gelmez.
Impact on My Inventory
Only the personal products you have added to your account are assessed; an organisation's inventory does not appear here.
Checking session…
Vulnerability description
DayBreach CVE AI Research
CVE-2022-0778 has vendor, distribution, patch and security-source records on file. We can compare them and prepare an explanation linked to the evidence.
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).
IMPACT: Affected Products and Software
Affected Products
The following products are affected by CVE-2022-0778 vulnerability. Where our threat engine knows the exact affected versions, they are listed below.
| ID | VENDOR | PRODUCT | ACTION |
|---|---|---|---|
| 1 | openssl | openssl | View |
| 2 | openssl | openssl | View |
| 3 | openssl | openssl | View |
| 4 | openssl | openssl | View |
| 5 | debian | debian linux | View |
| 6 | debian | debian linux | View |
| 7 | debian | debian linux | View |
| 8 | netapp | cloud volumes ontap mediator | View |
| 9 | netapp | clustered data ontap | View |
| 10 | netapp | clustered data ontap antivirus connector | View |
| 11 | netapp | santricity smi-s provider | View |
| 12 | netapp | storagegrid | View |
| 13 | netapp | a250 firmware | View |
| 14 | netapp | a250 | View |
| 15 | netapp | 500f firmware | View |
| 16 | netapp | 500f | View |
| 17 | fedoraproject | fedora | View |
| 18 | fedoraproject | fedora | View |
| 19 | tenable | nessus | View |
| 20 | tenable | nessus | View |
| 21 | mariadb | mariadb | View |
| 22 | mariadb | mariadb | View |
| 23 | mariadb | mariadb | View |
| 24 | mariadb | mariadb | View |
| 25 | mariadb | mariadb | View |
| 26 | mariadb | mariadb | View |
| 27 | nodejs | node.js | View |
| 28 | nodejs | node.js | View |
| 29 | nodejs | node.js | View |
| 30 | nodejs | node.js | View |
| 31 | nodejs | node.js | View |
| 32 | nodejs | node.js | View |
| 33 | nodejs | node.js | View |
RED HAT CSAF/VEX: Product Impact Check
SCORING: CVSS from Multiple Sources
CVSS Scores
The Common Vulnerability Scoring System is a standardised framework for assessing the severity of vulnerabilities in software and systems. We collect and display CVSS scores from several sources for each CVE.
| SCORE | VERSION | SEVERITY | VECTOR | SOURCE |
|---|---|---|---|---|
| 7.5 | CVSS V31 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
| 7.5 | CVSS V3_1 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | CVE ADP |
| 5.0 | CVSS V2 | — | AV:N/AC:L/Au:N/C:N/I:N/A:P | NVD |
Patch and Remediation Guide
Solution & Remediation Advisory
İncelenen resmî kaynaklarda yama durumu doğrulanamadı. Bu sonuç “yama yok” anlamına gelmez.
Public exploit and active exploitation status
Verified exploit intelligence
No verified public PoC, exploit repository or Metasploit module has been found for this CVE yet.
Weakness Classification and Attack Patterns (CWE & CAPEC)
CWE - Common Weakness Enumeration
While CVE identifies specific instances of vulnerabilities, CWE categorises the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-0778 is associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-0778 weaknesses.
Attack Vector and Accessibility
Official Sources and Advisories
Similar Vulnerabilities
Improper input validation in Apache Log4j
Improper access control in N/a
Vulnerability in Apache Tomcat
Path traversal in N/a
Vulnerability in GNU Inetutils
Vulnerability in N/a
Get this vulnerability through the API
Affected products, version ranges, exploitation status and patch information in a single request, with a free key.
curl -H "x-api-key: $DAYBREACH_API_KEY" \ "https://api.daybreach.dev/api/v1/intel/cves/CVE-2022-0778"