Starlet(Perl)に巨大なContent-Lengthでサービス停止となる脆弱性
Summary
Starletの0.33より前の版には、Content-Lengthを巨大な値にしたリクエストでメモリを使い果たし、ワーカーを停止させられる脆弱性があります。数バイトのリクエストを繰り返すだけでワーカーの再起動を強制できるため、攻撃が容易な点に注意が必要です。対策として0.33以降の修正版に更新してください。
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.
Starletの0.33より前の版には、Content-Lengthを巨大な値にしたリクエストでメモリを使い果たし、ワーカーを停止させられる脆弱性があります。数バイトのリクエストを繰り返すだけでワーカーの再起動を強制できるため、攻撃が容易な点に注意が必要です。対策として0.33以降の修正版に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANStarlet |
< 0.33→ 0.33 |
0.33 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-115865 starlet Fix available
- Ubuntu UBUNTU-CVE-2026-115865 starlet No fixed version in this record
Original description The description as published by the source.
Starlet versions before 0.33 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 github.com
- web cpan.org