CGI for Perlで入力値の汚染フラグが外れ、検証されない値が通る脆弱性
Summary
CGI for Perlの5.00より前のバージョンでは、アップロードされたファイル名や一部のCookieなどの値が、汚染モード(-T)でも汚染フラグを外された状態で返されます。このため、検証を省いたまま値が使われるおそれがあり、CVSSは8.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.
CGI for Perlの5.00より前のバージョンでは、アップロードされたファイル名や一部のCookieなどの値が、汚染モード(-T)でも汚染フラグを外された状態で返されます。このため、検証を省いたまま値が使われるおそれがあり、CVSSは8.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-120642 libcgi-pm-perl Fix available
- Ubuntu UBUNTU-CVE-2026-120642 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 request-derived values untainted under taint mode.
The upload filename, uploadInfo values, some path_info and script_name values, Accept results, and the name lists from url_param and cookie are returned without the taint flag, as is a cookie named expires from 4.67 on.
These values come from regex captures or hash keys, which Perl does not taint, so they pass -T checks unvalidated.
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