Laravelの数値検証で極端な指数の入力によりリソースを使い果たされる脆弱性
概要
Laravelの数値検証ルールに、極端な指数を含む入力でメモリとCPUを大量に消費させられる脆弱性が見つかりました。12.74.0と13.44.1より前のバージョンが影響を受けます。修正版の12.74.0または13.44.1への更新で対処できます。対象は、上限のないフィールドに対してmultiple_ofやgt・gte・lt・lteのルールを使っているアプリケーションです。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Laravelの数値検証ルールに、極端な指数を含む入力でメモリとCPUを大量に消費させられる脆弱性が見つかりました。12.74.0と13.44.1より前のバージョンが影響を受けます。修正版の12.74.0または13.44.1への更新で対処できます。対象は、上限のないフィールドに対してmultiple_ofやgt・gte・lt・lteのルールを使っているアプリケーションです。
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Laravel is a web application framework. Prior to 12.74.0 and 13.44.1, The multiple_of validation rule, and the gt, gte, lt and lte rules when they compare against another numeric field, expand numeric input using arbitrary-precision arithmetic without bounding its exponent. A request containing a very small or very large exponent value, such as one in scientific notation, can cause excessive memory and CPU use and may exhaust PHP's memory limit. Applications are affected when these rules are applied to an unbounded numeric field, with no preceding bounding rule such as min, max or between combined with bail. Comparisons against literal numbers, and the min, max, between and size rules, are not affected. This issue is fixed in versions 12.74.0 and 13.44.1.
出典: CVE.org (CVE Program・cvelistV5) NVD