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 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.
Links
- https://github.com/leejo/CGI.pm/commit/0b3527faaa9de55f79ca7d59dd3bcfb2c5540e00
- https://github.com/leejo/CGI.pm/commit/0b3527faaa9de55f79ca7d59dd3bcfb2c5540e00.patch
- https://lists.security.metacpan.org/cve-announce/msg/44875022/
- 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-120644
- https://www.cve.org/CVERecord?id=CVE-2026-120644

