本文へ移動
English version →
高 7.5

golang-fips/openssl(Go)にメモリリークの脆弱性 攻撃者の入力でリソースを枯渇させるおそれ

CVE-2024-1394 SecPulse初出

概要

2024年3月に公表された、RSAの暗号化・復号処理におけるメモリリークの脆弱性です。攻撃者が用意した入力によりリソースが枯渇するおそれがあり、CVSSは7.5です。golang-fips/openssl/v2は2.0.1より前、microsoft/go-crypto-opensslは0.2.9より前が影響を受けます。修正版は、golang-fips/openssl/v2が2.0.1、microsoft/go-crypto-opensslが0.2.9です。

AI要約

SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

github.com/golang-fips/go という製品で、CVE-2024-1394 という番号がついた弱点 (脆弱性) が見つかりました。
不正な操作・情報露出のリスクがあります。重要度は CVSS スコア 7.5/10 です。
対策: github.com/golang-fips/go を 2.0.1 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「github.com/golang-fips/go CVE-2024-1394」を検索してください。

CVE-2024-1394 (github.com/golang-fips/go) — CWE-401 / CVSS v3 7.5
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要 / 被害者操作不要
修正バージョン: 2.0.1 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。

何が問題か

github.com/golang-fips/go に 脆弱性 (CWE-401) があります。

影響範囲

github.com/golang-fips/go の影響バージョンはベンダーのアドバイザリで確認してください。

重要度

重要度: 重要 (CVSS 7.5/10)。不正な操作・情報露出のリスクがあります。

修正方法

2.0.1 に更新してください。

暫定回避

修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。

検知方法

Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。

対応アクション

SOC/SREチームが順番に実行すべき具体的なステップとコマンド例

  1. 1
    影響範囲の特定identify
    grep -r 'github.com/golang-fips/go' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で github.com/golang-fips/go を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    パッチ適用patch
    Upgrade github.com/golang-fips/go to 2.0.1

    ステージング環境で 2.0.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    事後検証verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

影響パッケージ

パッケージ影響を受ける版 → 修正版
Gogithub.com/golang-fips/go
1.22.1 以前→ 記載なし
Gogithub.com/golang-fips/openssl/v2
2.0.1 未満→ 2.0.1
Gogithub.com/microsoft/go-crypto-openssl
0.2.9 未満→ 0.2.9
Gogithub.com/microsoft/go-crypto-openssl/openssl
0.2.9 未満→ 0.2.9
Red HatRed Hat Ansible Automation Platform 2.4 for RHEL 8 —
Red HatRed Hat Ansible Automation Platform 2.4 for RHEL 9 —
Red HatRed Hat Developer Tools —
Red HatRed Hat Enterprise Linux 8 —
Red HatRed Hat Enterprise Linux 9 —
Red HatRed Hat Enterprise Linux 9.0 Update Services for SAP Solutions —
Red HatRed Hat Enterprise Linux 9.2 Extended Update Support —
Red HatRed Hat OpenShift Container Platform 4.12 —
Red HatRed Hat OpenShift Container Platform 4.13 —
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

A memory leak flaw was found in Golang in the RSA encrypting/decrypting code, which might lead to a resource exhaustion vulnerability using attacker-controlled inputs​. The memory leak happens in github.com/golang-fips/openssl/openssl/rsa.go#L113. The objects leaked are pkey​ and ctx​. That function uses named return parameters to free pkey​ and ctx​ if there is an error initializing the context or setting the different properties. All return statements related to error cases follow the "return nil, nil, fail(...)" pattern, meaning that pkey​ and ctx​ will be nil inside the deferred function that should free them.

出典: NIST National Vulnerability Database NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく