DateTime-Lite 0.8.1未満で処理が過剰に続く脆弱性、サービス停止のおそれ
Summary
DateTime-Lite 0.8.1より前のバージョンには、秒を加算する処理で日単位のループが回り続け、CPUを使い尽くされる脆弱性があります。加算する秒数に上限がないため、攻撃者が秒数を指定できる場合は処理を長時間占有されるおそれがあります。修正版の0.8.1が公開されているので、0.8.1以降へ更新してください。
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.
DateTime-Lite 0.8.1より前のバージョンには、秒を加算する処理で日単位のループが回り続け、CPUを使い尽くされる脆弱性があります。加算する秒数に上限がないため、攻撃者が秒数を指定できる場合は処理を長時間占有されるおそれがあります。修正版の0.8.1が公開されているので、0.8.1以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANDateTime-Lite |
< 0.8.1→ 0.8.1 |
0.8.1 |
Original description The description as published by the source.
DateTime::Lite versions before 0.8.1 for Perl allow CPU exhaustion via a per-day loop when adding seconds.
_normalize_leap_seconds crosses day boundaries one day at a time, so add(seconds => $n) on an object with a non-floating time zone takes about |$n|/86400 iterations, and nothing limits $n. The XS implementation and the pure-Perl fallback both have the loop.
An attacker who controls the number of seconds added can keep the process busy for as long as they choose.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory metacpan.org
- advisory nvd.nist.gov
- advisory github.com
- package gitlab.com
- web openwall.com
- web github.com
- web cpan.org