| タイトル | The Perl FoundationのPerlにおける整数オーバーフローの発生によるバッファオーバーフローの脆弱性 |
|---|---|
| 概要 | Perlのバージョン5.43.10以前の32ビットビルドには、繰り返し固定文字列を含む正規表現をコンパイルする際にヒープバッファオーバーフローが発生する脆弱性があります。regcomp_study.cのPerl_study_chunk関数は、結合された部分文字列バッファのサイズをバイトではなく文字数でチェックしていました。最小カウントが大きい定量化された固定部分文字列の場合、バイト長である mincount * l がSSize_tをオーバーフローし、過小なSvGROW割り当てを引き起こします。その結果、コピー操作がバッファの末尾を超えて書き込みを行います。攻撃者が制御する正規表現を32ビットPerlビルドでコンパイルすると、コンパイル時にヒープバッファオーバーフローが発生します。 |
| 想定される影響 | ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| 対策 | ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月26日0:00 |
| 登録日 | 2026年5月29日11:15 |
| 最終更新日 | 2026年5月29日11:15 |
| CVSS3.0 : 緊急 | |
| スコア | 9.8 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| The Perl Foundation |
| Perl 5.43.10 およびそれ以前 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年05月29日] 掲載 |
2026年5月29日11:15 |
| 概要 | Perl versions through 5.43.10 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds. Perl_study_chunk in regcomp_study.c checked the size of the joined substring buffer in characters rather than bytes. For a quantified fixed substring with a large minimum count, the byte length mincount * l could overflow SSize_t, producing an undersized SvGROW allocation; the subsequent copy writes past the end of the buffer. A caller that compiles an attacker-controlled regular expression on a 32-bit perl build triggers a heap buffer overflow at compile time. |
|---|---|
| 公表日 | 2026年5月26日9:16 |
| 登録日 | 2026年5月27日4:08 |
| 最終更新日 | 2026年5月28日3:43 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:* | 5.43.10 | ||||