← Back to search

CVE-2026-120644

9.1 CRITICALpublic exploit available

Published 2026-11-04 · Updated 2026-11-09

AI risk analysis

Summary
CGI::Cookie for Perl prior to version 5.00 allows attackers to inject arbitrary cookie attributes (e.g., Domain, SameSite) into Set-Cookie headers by injecting semicolons or control characters into unvalidated path, domain, or expires parameters sourced from user input. This enables session hijacking or bypass of security policies like SameSite protections.
Exploitability
Exploitation is straightforward for attackers who can control cookie parameters in HTTP requests to the vulnerable application, requiring no authentication or special conditions beyond the ability to submit crafted input.
Blast radius
Successful exploitation could allow attackers to set cookies with arbitrary domains (including .example.com), bypass SameSite restrictions, or steal/impersonate user sessions across subdomains.
Detection
Defenders should inspect web server access logs for Set-Cookie responses containing unexpected or malformed cookie attributes (e.g., extra Domain=, SameSite=, or semicolon-separated values) that originate from user-controlled input paths or domains; such anomalies may indicate injection attempts.
Prioritized remediation
Upgrade to CGI::Cookie version 5.00 or later, which validates and sanitizes cookie attributes before inclusion in the Set-Cookie header.
cookie-injectionsession-hijackwebperlcwe-116

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Weaknesses

CWE-116

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.