Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Versions of the package github.com/gin-gonic/gin before 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.
For more information on CVSS3 Scores, click here.
### Suggested Fix
Type: Upgrade version
Release Date: 2023-05-04
Fix Resolution: v1.9.0
:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2023-29401
### Vulnerable Library - github.com/gin-gonic/GIN-v1.6.3
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
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";x=.txt" will be sent as a file named "setup.bat". If the FileAttachment function is called with names provided by an untrusted source, this may permit an attacker to cause a file to be served with a name different than provided. Maliciously crafted attachment file name can modify the Content-Disposition header.
:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.
Vulnerable Library - github.com/gin-gonic/GIN-v1.6.3
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Library home page: https://proxy.golang.org/github.com/gin-gonic/!g!i!n/@v/v1.6.3.zip
Path to dependency file: /go-remediate/go.mod
Path to vulnerable library: /go-remediate/go.mod
Found in HEAD commit: 270cc58a78fd567e736a727c44967bccbfd512ab
Vulnerabilities
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
CVE-2023-26125
### Vulnerable Library - github.com/gin-gonic/GIN-v1.6.3Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Library home page: https://proxy.golang.org/github.com/gin-gonic/!g!i!n/@v/v1.6.3.zip
Path to dependency file: /go-remediate/go.mod
Path to vulnerable library: /go-remediate/go.mod
Dependency Hierarchy: - :x: **github.com/gin-gonic/GIN-v1.6.3** (Vulnerable Library)
Found in HEAD commit: 270cc58a78fd567e736a727c44967bccbfd512ab
Found in base branch: main
### Vulnerability DetailsVersions of the package github.com/gin-gonic/gin before 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.
Publish Date: 2023-05-04
URL: CVE-2023-26125
### CVSS 3 Score Details (5.6)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: Low
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Release Date: 2023-05-04
Fix Resolution: v1.9.0
:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.CVE-2023-29401
### Vulnerable Library - github.com/gin-gonic/GIN-v1.6.3Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Library home page: https://proxy.golang.org/github.com/gin-gonic/!g!i!n/@v/v1.6.3.zip
Path to dependency file: /go-remediate/go.mod
Path to vulnerable library: /go-remediate/go.mod
Dependency Hierarchy: - :x: **github.com/gin-gonic/GIN-v1.6.3** (Vulnerable Library)
Found in HEAD commit: 270cc58a78fd567e736a727c44967bccbfd512ab
Found in base branch: main
### Vulnerability DetailsThe 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";x=.txt" will be sent as a file named "setup.bat". If the FileAttachment function is called with names provided by an untrusted source, this may permit an attacker to cause a file to be served with a name different than provided. Maliciously crafted attachment file name can modify the Content-Disposition header.
Publish Date: 2023-06-08
URL: CVE-2023-29401
### CVSS 3 Score Details (4.3)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: Low - Availability Impact: None
For more information on CVSS3 Scores, click here.:rescue_worker_helmet:Automatic Remediation will be attempted for this issue.