Skip to content
High 7.5

Regexp2に大量のメモリを消費させられる脆弱性、2.3.0で修正

CVE-2026-77299 First seen on SecPulse

Summary

Regexp2の2.3.0より前のバージョンには、空の部分パターンに大きな繰り返し回数を指定すると、メモリを際限なく消費してプロセスが強制終了されるおそれのある脆弱性があります。短い正規表現と空の入力だけで発生するため、この条件に当てはまる利用環境では急いで対応する必要があります。修正版の2.3.0で対処されているため、2.3.0以降へ更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Regexp2の2.3.0より前のバージョンには、空の部分パターンに大きな繰り返し回数を指定すると、メモリを際限なく消費してプロセスが強制終了されるおそれのある脆弱性があります。短い正規表現と空の入力だけで発生するため、この条件に当てはまる利用環境では急いで対応する必要があります。修正版の2.3.0で対処されているため、2.3.0以降へ更新してください。

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details