本文へ移動

#CVE-2026-77299

脆弱性の一覧へ戻る

編集部の見出し:regexp2(Go):ゼロ幅部分式の回数指定でメモリ枯渇(7.5)

CVE(NVD)CVSS 7.5 High

NVD の情報

Regexp2 is a feature-rich RegExp engine for Go. Prior to version 2.3.0, when regexp2 compiles and matches a pattern containing a large fixed-count quantifier applied to a zero-width subexpression — e.g. (?:){50000000} — the match engine executes the empty loop body m-1 times, pushing two integers onto the backtracking stack on every iteration. Because the parser accepts any repetition count up to math.MaxInt32 and the backtracking stack grows without bound, a pattern of fewer than 20 bytes matched against an empty input can force multi-gigabyte allocation and OOM-kill the process. MatchTimeout does not fully mitigate this because the memory is allocated faster than the 100 ms timeout clock can fire. This issue has been patched in version 2.3.0.

公開日
2026-11-06
最終更新(NVD)
2026-11-06
NVD の状態
Received
脆弱性の種類
CWE-400、CWE-770

深刻度(CVSS)

  • 7.5 HighCVSS 3.1/副/評価:security-advisories@github.comCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

悪用の状況

CISA KEV には掲載されていません(掲載されていないことは、悪用されていないことの証明ではありません)。

解消方法

  • regexp2 のバージョンアップ2.3.0 以降根拠:公告(編集部の転記)

「NVD の条件から推定」は、NVD が影響ありとする版の上限から読み取ったもので、修正版とは限りません。「解消方法の情報なし」は、修正が無いという意味ではありません。必ずベンダーの公告で確認してください。

編集部の記載(レポート掲載時)

レポートの編集部がベンダー公告などから転記した内容です。検証済みの値ではないため、必ず出典で確認してください。

2026-11-06 のレポートregexp2(Go):ゼロ幅部分式の回数指定でメモリ枯渇(7.5)

2.3.0 で修正。

悪用状況(編集部):不明

公告に記載の修正版

参照(NVD)

NVD から取得:2026-11-06T09:45:25.674Z

This product uses the NVD API but is not endorsed or certified by the NVD.

悪用の確認情報は CISA Known Exploited Vulnerabilities Catalog(NVD 経由で取得)によります。EPSS は FIRST(www.first.org/epss)によります。