深刻度 中
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 以降に更新してください。
更新の前に、サイトのバックアップを取っておくと、不具合が出たときに戻せます。
参考情報
- https://nvd.nist.gov/vuln/detail/CVE-2023-29401(新しいタブで開きます)
- https://github.com/gin-gonic/gin/issues/3555(新しいタブで開きます)
- https://github.com/gin-gonic/gin/pull/3556(新しいタブで開きます)
- https://github.com/gin-gonic/gin(新しいタブで開きます)
- https://github.com/gin-gonic/gin/releases/tag/v1.9.1(新しいタブで開きます)
- https://pkg.go.dev/vuln/GO-2023-1737(新しいタブで開きます)
github.com/gin-gonic/gin のほかの脆弱性
- Improper handling of filenames in Content-Disposition HTTP header in github.com/gin-gonic/gin
- Improper input validation in github.com/gin-gonic/gin
- Gin's default logger allows unsanitized input that can allow remote attackers to inject arbitrary log lines
- Arbitrary log line injection in github.com/gin-gonic/gin
あなたのサイトは影響を受けていますか
Cyber Shield Guard は、サイトで使っているプラグインとテーマを脆弱性データベースと毎日突き合わせ、該当があれば通知します。登録したサイトが対象かどうかを確かめられます。