CGI for Perlで添付ファイル名の検証不足による脆弱性、保存名を細工される恐れ
Summary
CGI for Perlの5.00より前の版では、header関数の添付ファイル名に含まれる二重引用符がエスケープされず、Content-Dispositionのファイル名を書き換えられる脆弱性があります。リクエストの値を添付ファイル名に使うアプリケーションでは、応答の保存名が攻撃者に変えられるおそれがあり、CVSSは9.8です。修正版の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より前の版では、header関数の添付ファイル名に含まれる二重引用符がエスケープされず、Content-Dispositionのファイル名を書き換えられる脆弱性があります。リクエストの値を添付ファイル名に使うアプリケーションでは、応答の保存名が攻撃者に変えられるおそれがあり、CVSSは9.8です。修正版の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-120647 libcgi-pm-perl Fix available
- Ubuntu UBUNTU-CVE-2026-120647 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 Content-Disposition parameter injection via unescaped double quotes in the header attachment filename.
header(-attachment => $name) writes $name into the quoted filename parameter of Content-Disposition without escaping double quotes.
An application that passes request data as the attachment name can be made to send a second filename parameter, changing the name the response is saved under.
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