CGI for Perlに脆弱性、アップロードファイル名のパス検証が不十分で任意の場所に書き込まれるおそれ
Summary
CGI for Perlの5.00より前の版には、アップロードされたファイル名に含まれるパスが検証されずそのまま返される脆弱性があります。このファイル名で保存するアプリケーションでは、想定外のディレクトリにファイルを書き込まれるおそれがあります。修正版は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より前の版には、アップロードされたファイル名に含まれるパスが検証されずそのまま返される脆弱性があります。このファイル名で保存するアプリケーションでは、想定外のディレクトリにファイルを書き込まれるおそれがあります。修正版は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-120641 libcgi-pm-perl Fix available
- Ubuntu UBUNTU-CVE-2026-120641 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 return upload filenames with any client-supplied path, including ../ and Windows paths.
The name returned for an uploaded file is the filename parameter of the part's Content-Disposition header, unchanged.
An application that saves the upload under this name can be made to write outside the intended directory.
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