OpenSSLのBN_mod_sqrt()に無限ループの脆弱性、証明書解析でサービス停止のおそれ
概要
2022年3月に公表された、OpenSSLのBN_mod_sqrt()関数の無限ループの脆弱性(CVE-2022-0778)です。細工された証明書や秘密鍵を解析させると処理が止まり、サービス停止攻撃を受けるおそれがあります。Rustのopenssl-srcでは111.18.0より前の版が対象で、111.18.0で修正されています。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Openssl という製品で、CVE-2022-0778 という番号がついた弱点 (脆弱性) が見つかりました。
不正な操作・情報露出のリスクがあります。重要度は CVSS スコア 7.5/10 です。
対策: ベンダー公式の修正版に更新してください。
心配なら、システム担当者や製品の公式サイトで「Openssl CVE-2022-0778」を検索してください。
CVE-2022-0778 (Openssl) — CWE-835 / CVSS v3 7.5
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要 / 被害者操作不要
影響バージョン: 1.1.1 - 1.1.1m
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
Openssl に 脆弱性 (CWE-835) があります。
Openssl の影響範囲: 1.1.1 - 1.1.1m。
重要度: 重要 (CVSS 7.5/10)。不正な操作・情報露出のリスクがあります。
ベンダー公式アドバイザリの修正版に更新してください。(修正前: 1.1.1 - 1.1.1m 該当バージョンが本番稼働中なら直ちに更新計画を立案)
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1
影響範囲の特定identify
grep -r 'Openssl' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
Opensslを grep し、稼働しているサービス・バージョンを把握する。 -
2
バージョン照合verify
Confirm if version satisfies `1.1.1 - 1.1.1m`Step 1 で見つかったバージョンが影響範囲
1.1.1 - 1.1.1mに該当するか照合。本番で稼働中ならインシデント扱い。 -
3
事後検証verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| crates.ioopenssl-src |
111.18.0 未満→ 111.18.0 |
111.18.0 |
| Bitnamimariadb-min |
10.2.0 以上 10.2.42 未満→ 10.2.42 10.3.0 以上 10.3.33 未満→ 10.3.33 10.4.0 以上 10.4.23 未満→ 10.4.23 10.5.0 以上 10.5.14 未満→ 10.5.14 10.6.0 以上 10.6.6 未満→ 10.6.6 10.7.0 以上 10.7.2 未満→ 10.7.2 |
10.2.42 10.3.33 10.4.23 10.5.14 10.6.6 10.7.2 |
| Bitnaminode |
12.0.0 以上 12.12.1 未満→ 12.12.1 12.13.0 以上 12.22.11 未満→ 12.22.11 14.0.0 以上 14.14.1 未満→ 14.14.1 14.15.0 以上 14.19.1 未満→ 14.19.1 16.0.0 以上 16.12.1 未満→ 16.12.1 16.13.0 以上 16.14.2 未満→ 16.14.2 17.0.0 以上 17.7.2 未満→ 17.7.2 |
12.12.1 12.22.11 14.14.1 14.19.1 16.12.1 16.14.2 17.7.2 |
| Bitnamimariadb |
10.2.0 以上 10.2.42 未満→ 10.2.42 10.3.0 以上 10.3.33 未満→ 10.3.33 10.4.0 以上 10.4.23 未満→ 10.4.23 10.5.0 以上 10.5.14 未満→ 10.5.14 10.6.0 以上 10.6.6 未満→ 10.6.6 10.7.0 以上 10.7.2 未満→ 10.7.2 |
10.2.42 10.3.33 10.4.23 10.5.14 10.6.6 10.7.2 |
| Bitnamimysql-client |
10.2.0 以上 10.2.42 未満→ 10.2.42 10.3.0 以上 10.3.33 未満→ 10.3.33 10.4.0 以上 10.4.23 未満→ 10.4.23 10.5.0 以上 10.5.14 未満→ 10.5.14 10.6.0 以上 10.6.6 未満→ 10.6.6 10.7.0 以上 10.7.2 未満→ 10.7.2 |
10.2.42 10.3.33 10.4.23 10.5.14 10.6.6 10.7.2 |
| Bitnaminode-min |
12.0.0 以上 12.12.1 未満→ 12.12.1 12.13.0 以上 12.22.11 未満→ 12.22.11 14.0.0 以上 14.14.1 未満→ 14.14.1 14.15.0 以上 14.19.1 未満→ 14.19.1 16.0.0 以上 16.12.1 未満→ 16.12.1 16.13.0 以上 16.14.2 未満→ 16.14.2 17.0.0 以上 17.7.2 未満→ 17.7.2 |
12.12.1 12.22.11 14.14.1 14.19.1 16.12.1 16.14.2 17.7.2 |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- Alpine Linux ALPINE-CVE-2022-0778 openssl3, openssl1.1-compat, openssl ほか 4 件 修正版あり
- Debian DEBIAN-CVE-2022-0778 openssl 修正版あり
- Ubuntu UBUNTU-CVE-2022-0778 openssl1.0, openssl, nodejs ほか 1 件 修正版あり
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
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 i…
出典: NIST National Vulnerability Database NVD GitHub Advisory
参照URL
- advisory lists.fedoraproject.org
- advisory lists.fedoraproject.org
- advisory lists.fedoraproject.org
- advisory security.gentoo.org
- advisory security.netapp.com
- advisory security.netapp.com
- advisory security.netapp.com
- advisory debian.org
- advisory nvd.nist.gov
- advisory github.com
- web packetstormsecurity.com
- web seclists.org
- web seclists.org
- web seclists.org
- web cert-portal.siemens.com
- web git.openssl.org
- web git.openssl.org
- web git.openssl.org
- web lists.debian.org
- web lists.debian.org
- web psirt.global.sonicwall.com
- web support.apple.com
- web support.apple.com
- web support.apple.com
- web openssl.org
- web oracle.com
- web oracle.com
- web tenable.com
- web tenable.com
- web tenable.com
- web tenable.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web rustsec.org
- web security.netapp.com
- web security.netapp.com
- web security.netapp.com
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web git.openssl.org
- web git.openssl.org
- web git.openssl.org