Skip to content
NewA calmer, faster ZeroHour

CVE-2026-120631

DoS in Perl CGI::Cookie before 5.00 via expires regex

CVSS
—
EPSS
—
Published
·
Modified
Analyze CVE-2026-120631 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

CGI::Cookie's parse reads the Cookie header's expires value unescaped into a regex that removes it from the string. A client can trigger a crash or catastrophic backtracking by sending a malicious expires value in the Cookie header. Versions 4.67 to before 5.00 are affected. Affected users include anyone running vulnerable CGI applications.

What to do: Upgrade CGI::Cookie to 5.00. No workaround listed.

ProductAffectedFixed in
Perl CGI::Cookie4.67 before 5.005.00
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

CGI::Cookie versions from 4.67 before 5.00 for Perl allow denial of service via the client cookie expires value used as a regex in parse. CGI's cookie method reads the Cookie request header through parse, which interpolates the header's expires value unescaped into the substitution pattern that removes it from the cookie string. A client can make the request die with an invalid pattern, or tie up the process with one that backtracks catastrophically.

Weakness
CWE-625, CWE-1333

In the news

1 story