English version →
カテゴリ
CVE-2026-67550 medium CVSS 5.7

re2 に 境界外読み取り (CVE-2026-67550)

概要

re2 に 脆弱性 (CVE-2026-67550) が存在。不正な操作・情報露出のリスクがあります。re2 経由で攻撃可能。対策: 1.25.1 以上に更新。

原文の説明

取得元が公開している説明をそのまま載せています (多くは英語)。

Summary

re2 validates the user-settable lastIndex against the subject's UTF-8 byte length but then uses it as a UTF-16 code-unit count to walk the subject buffer, with no bounds check. For any non-ASCII subject, the byte length is larger than the true character count, so a lastIndex between those two values passes validation while pointing past the end of the buffer. The subsequent walk reads out of bounds. With a large subject the read marches into unmapped memory and the process dies with SIGABRT/SIGSEGV — an uncatchable crash (try/catch cannot stop it), i.e. a denial of service for any worker/process that runs the match. In some cases the out-of-bounds bytes are copied into the returned value (a bounded, best-effort heap information leak).

Root cause

The subject wrapper stores the UTF-8 byte length in StrVal::length:

  • lib/addon.cc:200 auto argLength = utf8Length(s, isolate); — UTF-8 byte count
  • lib/addon.cc:209 lastStringValue.reset(buffer, argSize, argLength, startFrom, false, isAscii);

setIndex then validates the (UTF-16) lastIndex against that byte length and walks the buffer by character count:

// lib/addon.cc:229
void StrVal::setIndex(size_t newIndex) {
    isValidIndex = newIndex <= length;   // length == UTF-8 BYTE length, not UTF-16 length
    if (!isValidIndex) { index = newIndex; byteIndex = 0; return; }
    ...
    // addon.cc:263
    byteIndex = index < newIndex
        ? getUtf16PositionByCounter(d…

出典: NIST National Vulnerability Database NVD GitHub Advisory

自動生成の要約

取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。

re2 という製品で、CVE-2026-67550 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに re2 のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
不正な操作・情報露出のリスクがあります。重要度は CVSS スコア 5.7/10 です。
対策: re2 を 1.25.1 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「re2 CVE-2026-67550」を検索してください。

CVE-2026-67550 (re2) — CWE-125 / CVSS v3 5.7
攻撃ベクター: ローカル / 認証不要 / 被害者操作不要
脆弱箇所: re2 / lastIndex / setIndex / getUtf16PositionByCounter
修正バージョン: 1.25.1 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。

❓ 何が問題か

re2 に 境界外読み取り (CWE-125) があります。攻撃者は re2 を経由して脆弱な処理に到達し、認証なしで悪用できます。

📍 影響範囲

re2 の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: re2 / lastIndex / setIndex / getUtf16PositionByCounter。

🔥 重要度

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

🔧 修正方法

1.25.1 に更新してください。

🛡️ 暫定回避

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

🔍 検知方法

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

対応アクション

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

  1. 1
    影響範囲の特定 identify
    grep -r 're2' . | grep -v node_modules

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

  2. 2
    パッチ適用 patch
    Upgrade re2 to 1.25.1

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

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

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

影響パッケージ

npm re2
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.25.2"}]}]

ディストリビューション別の修正状況

各ディストリビューションが公開している、この CVE の修正パッケージ

参照URL

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