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.
CGIs cookie method reads the Cookie request header through parse, which interpolates the headers 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.
The product uses a regular expression that does not sufficiently restrict the set of allowed values.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Libcgi-pm-perl | Ubuntu | upstream | * |
This effectively causes the regexp to accept substrings that match the pattern, which produces a partial comparison to the target. In some cases, this can lead to other weaknesses. Common errors include: