CGI for Perlに無限ループの脆弱性、攻撃者が短いリクエストでサーバープロセスを占有できる
Summary
CGI for Perlの5.00より前の版には、$DISABLE_UPLOADSが設定されている場合に、本文が短いリクエストで無限ループが起きる脆弱性があります。リクエスト1件でサーバープロセスを回り続けさせられるため、可用性への影響が懸念されます。修正版は5.00で、CPANの配布版を5.00以降に更新してください。
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.
CGI for Perlの5.00より前の版には、$DISABLE_UPLOADSが設定されている場合に、本文が短いリクエストで無限ループが起きる脆弱性があります。リクエスト1件でサーバープロセスを回り続けさせられるため、可用性への影響が懸念されます。修正版は5.00で、CPANの配布版を5.00以降に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANCGI |
< 5.00→ 5.00 |
5.00 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-120651 libcgi-pm-perl Fix available
- Ubuntu UBUNTU-CVE-2026-120651 libcgi-pm-perl No fixed version in this record
Original description The description as published by the source.
CGI versions before 5.00 for Perl allow an infinite loop on a short request body when $DISABLE_UPLOADS is set.
When $CGI::PUTDATA_UPLOAD or an upload hook is set, read_postdata_putdata takes a request body that is not a form submission. With $CGI::DISABLE_UPLOADS set, it discards the body by reading until Content-Length bytes have arrived. Once a body shorter than its Content-Length runs out, every read returns 0, so the loop never ends.
A client can keep a server process spinning with one such request.
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
- patch github.com
- REDHAT Red Hat
- web metacpan.org
- web github.com
- web cpan.org