MEDIUM5.6
GHSA-3vp4-m3rf-835h
Improper input validation in github.com/gin-gonic/gin
Quick fix
GHSA-3vp4-m3rf-835h — github.com/gin-gonic/gin: upgrade to the fixed version with the command below.
go get github.com/gin-gonic/gin@v1.9.0Details
Versions of the package github.com/gin-gonic/gin before version 1.9.0 are vulnerable to Improper Input Validation by allowing an attacker to use a specially crafted request via the X-Forwarded-Prefix header, potentially leading to cache poisoning.
**Note:** Although this issue does not pose a significant threat on its own it can serve as an input vector for other more impactful vulnerabilities. However, successful exploitation may depend on the server configuration and whether the header is used in the application logic.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-26125[ADVISORY]
- https://github.com/gin-gonic/gin/pull/3500[WEB]
- https://github.com/gin-gonic/gin/pull/3503[WEB]
- https://github.com/t0rchwo0d/gin/commit/fd9f98e70fb4107ee68c783482d231d35e60507b[WEB]
- https://github.com/gin-gonic/gin[PACKAGE]
- https://github.com/gin-gonic/gin/releases/tag/v1.9.0[WEB]
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGINGONICGIN-3324285[WEB]