CVE-2022-0778

HIGH7.5EPSS 7.5%

Infinite loop in `BN_mod_sqrt()` reachable when parsing certificates

發布日:2022/3/16修改日:2025/6/10
也稱為:GHSA-x3mh-jvjw-3xwxALPINE-CVE-2022-0778BIT-mariadb-2022-0778BIT-mariadb-min-2022-0778BIT-mysql-client-2022-0778BIT-node-2022-0778BIT-node-min-2022-0778CGA-h325-75qc-q583RUSTSEC-2022-0014

描述

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.

受影響套件(12)

  • Alpine/libretlsfrom 0, < 3.3.3p1-r3
  • Alpine/opensslfrom 0, < 1.1.1n-r0
  • Alpine/openssl3from 0, < 3.0.2-r0
  • Bitnami/mariadb>= 10.2.0, < 10.2.42, >= 10.3.0, < 10.3.33, >= 10.4.0, < 10.4.23, >= 10.5.0, < 10.5.14, >= 10.6.0, < 10.6.6, >= 10.7.0, < 10.7.2
  • Bitnami/mariadb-min>= 10.2.0, < 10.2.42, >= 10.3.0, < 10.3.33, >= 10.4.0, < 10.4.23, >= 10.5.0, < 10.5.14, >= 10.6.0, < 10.6.6, >= 10.7.0, < 10.7.2
  • Bitnami/mysql-client>= 10.2.0, < 10.2.42, >= 10.3.0, < 10.3.33, >= 10.4.0, < 10.4.23, >= 10.5.0, < 10.5.14, >= 10.6.0, < 10.6.6, >= 10.7.0, < 10.7.2
  • Bitnami/node>= 12.0.0, < 12.12.1, >= 12.13.0, < 12.22.11, >= 14.0.0, < 14.14.1, >= 14.15.0, < 14.19.1, >= 16.0.0, < 16.12.1, >= 16.13.0, < 16.14.2, >= 17.0.0, < 17.7.2
  • Bitnami/node-min>= 12.0.0, < 12.12.1, >= 12.13.0, < 12.22.11, >= 14.0.0, < 14.14.1, >= 14.15.0, < 14.19.1, >= 16.0.0, < 16.12.1, >= 16.13.0, < 16.14.2, >= 17.0.0, < 17.7.2
  • crates.io/openssl-src>= 0.0.0-0, < 111.18.0, >= 300.0.0, < 300.0.5
  • crates.io/openssl-src>= 300.0.0, < 300.0.5
  • Debian/opensslfrom 0, < 1.1.1k-1+deb11u2
  • Debian/openssl1.0from 0, < 1.0.2u-1~deb9u7

CVSS 分數

來源版本嚴重程度向量
osvCVSS 3.1HIGH7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

參考連結(51)