Perl CGI::Cookieに脆弱性、Cookie属性を外部から注入されるおそれ
Summary
Perl向けCGIモジュールのCGI::Cookieに、path・domain・expiresの値を検証せずにSet-Cookieヘッダーへ書き込む脆弱性が見つかりました。リクエストの値をそのまま使うアプリケーションでは、DomainやSameSiteなど別のCookie属性を追加されるおそれがあり、CVSSは9.1です。影響するのは5.00より前のバージョンで、修正版は5.00です。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Perl向けCGIモジュールのCGI::Cookieに、path・domain・expiresの値を検証せずにSet-Cookieヘッダーへ書き込む脆弱性が見つかりました。リクエストの値をそのまま使うアプリケーションでは、DomainやSameSiteなど別のCookie属性を追加されるおそれがあり、CVSSは9.1です。影響するのは5.00より前のバージョンで、修正版は5.00です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANCGI |
< 5.00→ 5.00 |
5.00 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-120644 libcgi-pm-perl Fix available
- Ubuntu UBUNTU-CVE-2026-120644 libcgi-pm-perl No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory metacpan.org
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- REDHAT Red Hat
- web metacpan.org
- web github.com
- web cpan.org