github.com/spiffe/spire の脆弱性 (CVE-2021-27098)
概要
github.com/spiffe/spire に 脆弱性 (CVE-2021-27098) が存在。機密情報が外部に流出する可能性があります。対策: 0.12.1 以上に更新。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
In SPIRE 0.8.1 through 0.8.4 and before versions 0.9.4, 0.10.2, 0.11.3 and 0.12.1, specially crafted requests to the FetchX509SVID RPC of SPIRE Server’s Legacy Node API (github.com/spiffe/spire/pkg/server/endpoints/node) can result in the possible issuance of an X.509 certificate with a URI SAN for a SPIFFE ID that the agent is not authorized to distribute. Proper controls are in place to require that the caller presents a valid agent certificate that is already authorized to issue at least one SPIFFE ID, and the requested SPIFFE ID belongs to the same trust domain, prior to being able to trigger this vulnerability. This issue has been fixed in SPIRE versions 0.8.5, 0.9.4, 0.10.2, 0.11.3 and 0.12.1.
What are the changes introduced by the patched versions?
The changes introduced to address this issue are related to enforcing that the FetchX509SVID RPC of SPIRE Server’s Legacy Node API only issues X.509 certificates with SPIFFE IDs that the agent is authorized to distribute.
The patched version also includes a back-ported change that improves the handling of file descriptors related to workload attestation in SPIRE Agent.
There are no changes in the expected behavior of SPIRE.
Should I upgrade SPIRE?
All SPIRE users running affected versions are advised to upgrade to the corresponding patched version.
Workarounds
No workarounds have been identified for this vulnerability.
出典: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
github.com/spiffe/spire という製品で、CVE-2021-27098 という番号がついた弱点 (脆弱性) が見つかりました。
機密情報が外部に流出する可能性があります。
対策: github.com/spiffe/spire を 0.12.1 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「github.com/spiffe/spire CVE-2021-27098」を検索してください。
CVE-2021-27098 (github.com/spiffe/spire) — CWE-284
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 被害者操作不要
修正バージョン: 0.12.1 (即時適用推奨)
暫定回避: No workarounds have been identified for this vulnerability.
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
github.com/spiffe/spire に 脆弱性 (CWE-284) があります。
github.com/spiffe/spire の影響バージョンはベンダーのアドバイザリで確認してください。
重要度: ?。機密情報が外部に流出する可能性があります。
0.12.1 に更新してください。
暫定回避: No workarounds have been identified for this vulnerability.
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'github.com/spiffe/spire' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/spiffe/spireを grep し、稼働しているサービス・バージョンを把握する。 -
2暫定回避策の適用 mitigate
No workarounds have been identified for this vulnerability.パッチが適用されるまでの応急処置として、No workarounds have been identified for this vulnerability. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3パッチ適用 patch
Upgrade github.com/spiffe/spire to 0.12.1ステージング環境で 0.12.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
参照URL
- advisory nvd.nist.gov
- web github.com
- web github.com
- web cve.mitre.org