Affected versions
Ubuntu16.04:LTS/libcgi-pm-perl
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu18.04:LTS/libcgi-pm-perl
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu20.04:LTS/libcgi-pm-perl
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/libcgi-pm-perl
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu24.04:LTS/libcgi-pm-perl
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.04:LTS/libcgi-pm-perl
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.10/libcgi-pm-perl
- Affected versions
- *
- Fixed version
- Not reported
Description
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.
Links
- https://github.com/leejo/CGI.pm/commit/95e044af2ec24d99a61e99d6291580ad47aff641
- https://github.com/leejo/CGI.pm/commit/95e044af2ec24d99a61e99d6291580ad47aff641.patch
- https://lists.security.metacpan.org/cve-announce/msg/44874720/
- https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI/Cookie.pm
- https://metacpan.org/release/LEEJO/CGI-5.00/changes
- https://ubuntu.com/security/CVE-2026-120631
- https://www.cve.org/CVERecord?id=CVE-2026-120631

