CGI for Perlに HTTP ヘッダーインジェクションの脆弱性
Summary
CGI for Perlのバージョン5.00より前には、HTTPヘッダーを細工して挿入できる脆弱性があります。ヘッダー値を外部入力から組み立てているアプリケーションでは、応答にヘッダーを追加されたり、応答を分割されたりするおそれがあります。修正版はバージョン5.00です。CGIを使っている場合は、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.
CGI for Perlのバージョン5.00より前には、HTTPヘッダーを細工して挿入できる脆弱性があります。ヘッダー値を外部入力から組み立てているアプリケーションでは、応答にヘッダーを追加されたり、応答を分割されたりするおそれがあります。修正版はバージョン5.00です。CGIを使っている場合は、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-120639 libcgi-pm-perl Fix available
- Ubuntu UBUNTU-CVE-2026-120639 libcgi-pm-perl No fixed version in this record
Original description The description as published by the source.
CGI versions before 5.00 for Perl allow HTTP header injection via entity decoding after the newline check in header and unchecked values in multipart_start and do_push.
With autoEscape off, header decodes HTML entities in extra header values after its newline check, so an encoded CR or LF reaches the response. multipart_start does not check header values for newlines, and do_push does not check the type it prints in each part.
An application that passes request data into these header values can be made to add headers or split the response.
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
- patch github.com
- REDHAT Red Hat
- web metacpan.org
- web github.com
- web cpan.org