Skip to content

CVE-2026-60075 Date::Manip versions through 7.00 for Perl allow CPU exhaustion via quadratic backtracking in the unanchored time substitution in _parse_time

HighCVSS 7.5 EPSS 0.37%
Published
Updated
Exploit status
No public exploit known

Description

Date::Manip versions through 7.00 for Perl allow CPU exhaustion via quadratic backtracking in the unanchored time substitution in _parse_time.

_parse_time removes a time from anywhere in the string with the unanchored substitution s/$timerx/ /, where $timerx is an auto-generated alternation of time patterns reached through a leading (?:$atrx|^|\s+). The engine therefore retries the match at every position of an interior whitespace run: at each start position the leading \s+ consumes the rest of the run greedily, the time alternation fails because the run holds no digits, and the engine backtracks a space at a time across the run before advancing the start position, which is quadratic in the length of the run. No time need be present in the string for this to happen, only a long run of whitespace, and the parse time rises about fourfold for each doubling of the run: a few kilobytes of whitespace costs seconds of CPU per parse and tens of kilobytes costs minutes.

Any caller that passes an untrusted string of unbounded length to ParseDate(), Date::Manip::Date->parse() or ->parse_time() can be made to spend unbounded CPU in a single parse, a denial of service.

Affected products

ProductAffected versionsFixed in
cpan Date-Manip <= 7.00 No fix listed
redhat/perl-Date-Manip(Red Hat:enterprise_linux:10.2) < 6.94-5.el10_2.1 6.94-5.el10_2.1
redhat/perl-Date-Manip(Red Hat:enterprise_linux:8) < 6.60-3.el8_10.1 6.60-3.el8_10.1
redhat/perl-Date-Manip(Red Hat:enterprise_linux:9) < 6.85-3.el9_8.1 6.85-3.el9_8.1
redhat/perl-Date-Manip(Red Hat:rhel_els:6) All versions No fix listed
redhat/perl-Date-Manip(Red Hat:rhel_els:7) All versions No fix listed
debian/libdate-manip-perl(Debian:12) All versions No fix listed
debian/libdate-manip-perl(Debian:12) = 6.91-1 No fix listed
debian/libdate-manip-perl(Debian:12) = 6.92-1 No fix listed
debian/libdate-manip-perl(Debian:12) = 6.93-1 No fix listed
debian/libdate-manip-perl(Debian:12) = 6.94-1 No fix listed
debian/libdate-manip-perl(Debian:12) = 6.95-1 No fix listed
debian/libdate-manip-perl(Debian:12) = 6.96-1 No fix listed
debian/libdate-manip-perl(Debian:12) = 6.97-1 No fix listed
debian/libdate-manip-perl(Debian:12) = 6.98-1 No fix listed
debian/libdate-manip-perl(Debian:12) = 6.99-1 No fix listed
debian/libdate-manip-perl(Debian:12) = 6.99-2 No fix listed
debian/libdate-manip-perl(Debian:12) = 7.00-1 No fix listed
debian/libdate-manip-perl(Debian:13) All versions No fix listed
debian/libdate-manip-perl(Debian:13) = 6.98-1 No fix listed
debian/libdate-manip-perl(Debian:13) = 6.99-1 No fix listed
debian/libdate-manip-perl(Debian:13) = 6.99-2 No fix listed
debian/libdate-manip-perl(Debian:13) = 7.00-1 No fix listed
debian/libdate-manip-perl(Debian:14) < 6.99-2 6.99-2
debian/libdate-manip-perl(Debian:14) = 6.98-1 No fix listed
Show 4 more
ProductAffected versionsFixed in
debian/libdate-manip-perl(Debian:14) = 6.99-1 No fix listed
ubuntu/libdate-manip-perl(Ubuntu:22.04) All versions No fix listed
ubuntu/libdate-manip-perl(Ubuntu:24.04) All versions No fix listed
ubuntu/libdate-manip-perl(Ubuntu:26.04) All versions No fix listed

References