Skip to content
Critical 9.8

CGI for Perlで添付ファイル名の検証不足による脆弱性、保存名を細工される恐れ

CVE-2026-120647 First seen on SecPulse

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

PackageAffected → Fixed
CPANCGI
< 5.00→ 5.00

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details