cve.bz

CVE-2026-120631 Permissive Regular Expression

7.5 highEPSS 0.6%

High (7.5). EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.6% (unchanged from 0.6% a week ago) estimated probability of exploitation activity in the next 30 days; 43rd percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-11-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-625 Permissive Regular Expression
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-120631 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-120631?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-120631?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-120631 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13libcgi-pm-perlno fix listedDEBIAN-CVE-2026-120631
Debian14libcgi-pm-perl5.02-1DEBIAN-CVE-2026-120631
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 morelibcgi-pm-perlno fix listedUBUNTU-CVE-2026-120631
openSUSETumbleweedperl-CGI5.20.0-1.1openSUSE-SU-2026:12465-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as Important because an unauthenticated remote attacker can cause a denial of service across the network without requiring credentials or user interaction. Web applications and services that parse incoming client cookies using perl-CGI are directly susceptible to process termination or resource starvation when exposed to untrusted traffic. Deployments that do not expose CGI scripts to untrusted networks or do not process cookie headers are not exposed to remote exploitation.

Red Hat's mitigation

--- CME Mitigation Guidance (2026-11-04) ---

Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.

The highest-value action is to eliminate unescaped regular expression interpolation by parsing cookie expiration attributes with string offset operations instead of regex substitution patterns in CGI::Cookie: upgrade to CGI 5.00+ (or the fixed Perl Cgi builds), which remove the matched expires substring using string offsets with substr instead of interpolating the value into a regex pattern, closing all 2 injection vectors (HTTP Cookie header with invalid regex metacharacters, HTTP Cookie header with pathological backtracking regex constructs). Until patched, this is a concern on applications using CGI::Cookie->parse or CGI->cookie to parse incoming HTTP request cookies, so restrict network access to applications processing HTTP cookies with CGI::Cookie or sanitize incoming Cookie headers at reverse proxies and web application firewalls to block metacharacters in expires attributes. These controls limit blast radius and contain exploitation, but they do not fix the underlying unescaped regex interpolation defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-1316 Algorithmic Complexity Safeguards (Pattern/Regex Execution Limits) (high)

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10perl-CGIAffected
Red Hat Enterprise Linux 7perl-CGIAffected
Red Hat Enterprise Linux 8perl-CGIAffected
Red Hat Enterprise Linux 9perl-CGIAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-120631.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON