深刻度 中

Gin Web Framework does not properly sanitize filename parameter of Context.FileAttachment function

github.com/gin-gonic/gin(ライブラリ)の脆弱性です。深刻度は「中」、CVSS は 4.3です。修正版は 1.9.1 です。

対象
github.com/gin-gonic/gin(ライブラリ)
CVE 番号
CVE-2023-29401
深刻度
中CVSS 4.3CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
影響を受けるバージョン
  • 1.3.1-0.20190301021747-ccb9e902956d 以上、1.9.1 未満
修正版
1.9.1
公開日
情報の更新日
出典
OSV.dev(GitHub Advisory を含む OSS 脆弱性データベース)

どのような脆弱性ですか

日本語解説は確認中です。

The filename parameter of the Context.FileAttachment function is not properly sanitized. A maliciously crafted filename can cause the Content-Disposition header to be sent with an unexpected filename value or otherwise modify the Content-Disposition header. For example, a filename of "setup.bat&quo…(原文の抜粋です。全文は下の参考情報から確認できます)

どう対応すればよいですか

github.com/gin-gonic/gin を、修正版の 1.9.1 以降に更新してください。

更新の前に、サイトのバックアップを取っておくと、不具合が出たときに戻せます。

PHP・サーバー・ライブラリの脆弱性の一覧へ戻る

あなたのサイトは影響を受けていますか

Cyber Shield Guard は、サイトで使っているプラグインとテーマを脆弱性データベースと毎日突き合わせ、該当があれば通知します。登録したサイトが対象かどうかを確かめられます。