Monocerosに大きなContent-Lengthを送られ、メモリ枯渇でワーカーが停止する脆弱性
Summary
Perl向けWebフレームワークのMonocerosに、サービス拒否(DoS)の脆弱性が見つかりました。大きなContent-Lengthを宣言したリクエストを送られると、メモリが枯渇してワーカーが強制終了し、数バイトのリクエストを繰り返すだけでワーカーの再起動を強制されます。影響は0.30より前の版で、0.30で修正されています。0.30以上へ更新してください。
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.
Perl向けWebフレームワークのMonocerosに、サービス拒否(DoS)の脆弱性が見つかりました。大きなContent-Lengthを宣言したリクエストを送られると、メモリが枯渇してワーカーが強制終了し、数バイトのリクエストを繰り返すだけでワーカーの再起動を強制されます。影響は0.30より前の版で、0.30で修正されています。0.30以上へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANMonoceros |
< 0.30→ 0.30 |
0.30 |
Original description The description as published by the source.
Monoceros versions before 0.30 for Perl allow a request declaring a large Content-Length to kill a worker by exhausting memory.
The request body is read in a loop that asks sysread for all of the remaining declared length at once. Perl grows the read buffer to that size before any data arrives, so a length larger than available memory makes the worker exit with an uncatchable out of memory error before the application is called.
A remote attacker can force a worker restart with each request of a few bytes.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory metacpan.org
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web openwall.com
- web github.com
- web cpan.org