Skip to content

github.com/gin-gonic/GIN-v1.6.3: 3 vulnerabilities (highest severity is: 7.1) #2

@dev-mend-for-github-com

Description

@dev-mend-for-github-com
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.mod

Path to vulnerable library: /go/pkg/mod/cache/download/github.com/gin-gonic/gin/@v/v1.6.3.mod

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (github.com/gin-gonic/GIN-v1.6.3 version) Remediation Possible**
CVE-2020-28483 High 7.1 github.com/gin-gonic/GIN-v1.6.3 Direct v1.6.0
CVE-2023-26125 Medium 5.6 github.com/gin-gonic/GIN-v1.6.3 Direct N/A
CVE-2023-29401 Medium 4.3 github.com/gin-gonic/GIN-v1.6.3 Direct N/A

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2020-28483

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.mod

Path to vulnerable library: /go/pkg/mod/cache/download/github.com/gin-gonic/gin/@v/v1.6.3.mod

Dependency Hierarchy:

  • github.com/gin-gonic/GIN-v1.6.3 (Vulnerable Library)

Found in base branch: master

Vulnerability Details

This affects all versions of package github.com/gin-gonic/gin. When gin is exposed directly to the internet, a client's IP can be spoofed by setting the X-Forwarded-For header.

Publish Date: 2021-01-20

URL: CVE-2020-28483

CVSS 3 Score Details (7.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://nvd.nist.gov/vuln/detail/CVE-2020-28483

Release Date: 2021-01-20

Fix Resolution: v1.6.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2023-26125

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.mod

Path to vulnerable library: /go/pkg/mod/cache/download/github.com/gin-gonic/gin/@v/v1.6.3.mod

Dependency Hierarchy:

  • github.com/gin-gonic/GIN-v1.6.3 (Vulnerable Library)

Found in base branch: master

Vulnerability Details

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.

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.

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.

Library home page: https://proxy.golang.org/github.com/gin-gonic/!g!i!n/@v/v1.6.3.zip

Path to dependency file: /go.mod

Path to vulnerable library: /go/pkg/mod/cache/download/github.com/gin-gonic/gin/@v/v1.6.3.mod

Dependency Hierarchy:

  • github.com/gin-gonic/GIN-v1.6.3 (Vulnerable Library)

Found in base branch: master

Vulnerability Details

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.

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.


⛑️Automatic Remediation will be attempted for this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions