# CVE-2023-29401: GO-2023-1737 - Improper handling of filenames in Content-Disposition HTTP header in github.com/gin-gonic/gin

Source: https://junglewise.ai/threats/cve-2023-29401-gin-web-framework-does-not-properly-sanitize-filename-parameter  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-05-11  
License: CC BY 4.0 with a link back

CVE-2023-29401 · Severity: low · CVSS 3.1 · Published 2023-05-11

Improper handling of filenames in Content-Disposition HTTP header in github.com/gin-gonic/gin

Technologies: [github.com/gin-gonic/gin (Go)](https://junglewise.ai/threats/technologies/github-com-gin-gonic-gin). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2023-29401 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-29401 being exploited in the wild.

**How severe is CVE-2023-29401?** Low severity, with a CVSS score of 3.1, published 11 May 2023.

**Which products and versions are affected?** github.com/gin-gonic/gin (Go) SEMVER:introduced=1.3.1-0.20190301021747-ccb9e902956d,fixed=1.9.1.

**Is there a fix for CVE-2023-29401?** Yes. github.com/gin-gonic/gin (Go): upgrade to 1.9.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-29401?** Check whether you run github.com/gin-gonic/gin (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/gin-gonic/gin (Go): upgrade to 1.9.1 or later

  ```sh
  go get github.com/gin-gonic/gin@v1.9.1
  ```


## Affected products

- github.com/gin-gonic/gin (Go) SEMVER:introduced=1.3.1-0.20190301021747-ccb9e902956d,fixed=1.9.1

## Identifiers

- CVE-2023-29401
- GHSA-2c4m-59x9-fr2g
- GO-2023-1737

## Related threats

- [GO-2024-2955 - Gin mishandles a wildcard in the origin string in github.com/gin-contrib/cors](https://junglewise.ai/threats/cve-2019-25211-gin-mishandles-a-wildcard-at-the-end-of-an-origin-string)
- [Improper input validation in github.com/gin-gonic/gin](https://junglewise.ai/threats/cve-2023-26125-improper-input-validation-in-github-com-gin-gonic-gin)
- [GO-2020-0001 - Arbitrary log line injection in github.com/gin-gonic/gin](https://junglewise.ai/threats/cve-2020-36567-gin-s-default-logger-allows-unsanitized-input-that-can-allow)
- [GO-2020-0029 - Due to improper HTTP header santization, a malicious user can spoof their source IP address by setting…](https://junglewise.ai/threats/go-2020-0029-due-to-improper-http-header-santization-a-malicious-user-62b88c8c)
- [GO-2021-0052 - Inconsistent interpretation of HTTP Requests in github.com/gin-gonic/gin](https://junglewise.ai/threats/cve-2020-28483-inconsistent-interpretation-of-http-requests-in-github-com-gin)
