CVE Vulnerabilities

CVE-2026-120631

Permissive Regular Expression

Published: Nov 04, 2026 | Modified: Nov 04, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7.5 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

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.

Weakness

The product uses a regular expression that does not sufficiently restrict the set of allowed values.

Affected Software

NameVendorStart VersionEnd Version
Libcgi-pm-perlUbuntuupstream*

Extended Description

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:

Potential Mitigations

References