Skip to content

CVE-2026-87768 DateTime::Lite versions before 0.8.1 for Perl allow CPU exhaustion via a per-day loop when adding seconds

HighCVSS 7.5 EPSS 0.42%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

Description

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
cpan DateTime-Lite < 0.8.1 0.8.1 Fixed

Affected products

ProductAffected versionsFixed in
cpan DateTime-Lite < 0.8.1 0.8.1

References