Improper Input Validation Affecting github.com/gin-gonic/gin package, versions <1.9.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.18% (56th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGINGONICGIN-5406508
  • published12 May 2023
  • disclosed4 Apr 2023
  • creditmotoyasu-saburi

Introduced: 4 Apr 2023

CVE-2023-29401  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade github.com/gin-gonic/gin to version 1.9.1 or higher.

Overview

github.com/gin-gonic/gin is a package that implements a HTTP web framework called gin.

Affected versions of this package are vulnerable to Improper Input Validation via the FileAttachment function, due to improper handling of the filename in the Content-Disposition response header.

Exploiting this vulnerability allows the extension/file name to be tampered with when downloading files.

CVSS Scores

version 3.1