1. Accueil
  2. Vulnérabilités
  3. CVE-2022-0778

CVE-2022-0778

Infinite loop in BN_mod_sqrt() reachable when parsing certificates

Publiée le 15 mars 2022 · modifiée le 14 oct. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Moyen 58/100

Résumé

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

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Openssl (4 ligne(s))
Openssl
ProduitVersionsCorrigé dansSource
Openssl Versions non précisées — CNA (éditeur ou attributeur)
Openssl de 1.0.2 (inclus) à 1.0.2zd (exclu) — NVD
Openssl de 1.1.0 (inclus) à 1.1.1n (exclu) — NVD
Openssl de 3.0.0 (inclus) à 3.0.2 (exclu) — NVD
Debian (3 ligne(s))
Debian
ProduitVersionsCorrigé dansSource
Debian linux 9.0 — NVD
Debian linux 10.0 — NVD
Debian linux 11.0 — NVD
Fedoraproject (2 ligne(s))
Fedoraproject
ProduitVersionsCorrigé dansSource
Fedora 34 — NVD
Fedora 36 — NVD
Mariadb (6 ligne(s))
Mariadb
ProduitVersionsCorrigé dansSource
Mariadb de 10.2.0 (inclus) à 10.2.42 (exclu) — NVD
Mariadb de 10.3.0 (inclus) à 10.3.33 (exclu) — NVD
Mariadb de 10.4.0 (inclus) à 10.4.23 (exclu) — NVD
Mariadb de 10.5.0 (inclus) à 10.5.14 (exclu) — NVD
Mariadb de 10.6.0 (inclus) à 10.6.6 (exclu) — NVD
Mariadb de 10.7.0 (inclus) à 10.7.2 (exclu) — NVD
Netapp (7 ligne(s))
Netapp
ProduitVersionsCorrigé dansSource
500f firmware Versions non précisées — NVD
A250 firmware Versions non précisées — NVD
Cloud volumes ontap mediator Versions non précisées — NVD
Clustered data ontap Versions non précisées — NVD
Clustered data ontap antivirus connector Versions non précisées — NVD
Santricity smi-s provider Versions non précisées — NVD
Storagegrid Versions non précisées — NVD
Nodejs (7 ligne(s))
Nodejs
ProduitVersionsCorrigé dansSource
Node.js de 12.0.0 (inclus) à 12.12.0 (inclus) — NVD
Node.js de 12.13.0 (inclus) à 12.22.11 (exclu) — NVD
Node.js de 14.0.0 (exclu) à 14.14.0 (inclus) — NVD
Node.js de 14.15.0 (inclus) à 14.19.1 (exclu) — NVD
Node.js de 16.0.0 (exclu) à 16.12.0 (inclus) — NVD
Node.js de 16.13.0 (inclus) à 16.14.2 (exclu) — NVD
Node.js de 17.0.0 (exclu) à 17.7.2 (exclu) — NVD
Tenable (2 ligne(s))
Tenable
ProduitVersionsCorrigé dansSource
Nessus avant 8.15.4 (exclu) — NVD
Nessus de 10.0.0 (inclus) à 10.1.2 (exclu) — NVD

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
NVD
Faiblesse (CWE)
NVD
Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-835 · Autre (CWE-835)

Comment sont obtenues et calculées ces données