All reports
Medium

perl-cgi: perl-cgi: Cookie attribute injection via unvalidated parameters

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-120644

Probability of exploitation in the next 30 days: 0.42%

FIRST EPSS · 2026-11-20

Description

CGI::Cookie versions before 5.00 for Perl allow cookie attribute injection via unvalidated path, domain and expires values. The path, domain and expires values are written into the Set-Cookie header without checking for semicolons or control characters. An application that sets them from request data can be made to add other cookie attributes, such as Domain or SameSite.

A flaw was found in perl-cgi. This vulnerability allows a remote attacker to inject arbitrary cookie attributes into HTTP (Hypertext Transfer Protocol) Set-Cookie response headers. The issue occurs because the module fails to properly validate semicolons or control characters in path, domain, and expiration values. If an application constructs cookies using untrusted user input, an attacker can manipulate attributes such as Domain or SameSite, potentially weakening cookie security policies and bypassing browser protections.