Skip to main content

CVE-2020-28483 — Vulnerability in github.com/gin-gonic/gin

HIGH

Inconsistent Interpretation of HTTP Requests in github.com/gin-gonic/gin

Published June 23, 2021Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.33%). Schedule for your next planned update.

Does your project use an affected github.com/gin-gonic/gin version?

Paste your go.sum to check it for CVE-2020-28483 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

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

Advisory Timeline

  • First published June 23, 2021 (1982 days ago).
  • Last revised September 10, 2026 — 1904 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/gin-gonic/gin to 1.7.7 or later
go get github.com/gin-gonic/gin@v1.7.7

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: Go (1).

PackageFixed In
github.com/gin-gonic/gin Go · Affected: All versions1.7.7

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N

Frequently Asked Questions

What is CVE-2020-28483?
Inconsistent Interpretation of HTTP Requests in github.com/gin-gonic/gin. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.1/10).
How do I check if my project is affected by CVE-2020-28483?
CVE-2020-28483 affects github.com/gin-gonic/gin. It has a 1.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-28483 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.1

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
1.33%
EPSS percentile: 71.2

This is an above-median EPSS score — 71.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-h395-qcrw-5vmq
GO-2021-0052
SNYK-GOLANG-GITHUBCOMGINGONICGIN-1041736

Related CVEs

  • CVE-2019-25211
    CRITICAL

    Gin mishandles a wildcard at the end of an origin string

  • CVE-2026-108262
    HIGH

    DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885

  • CVE-2026-130007
    HIGH

    k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution

  • CVE-2023-29401
    MEDIUM

    Gin Web Framework does not properly sanitize filename parameter of Context.FileAttachment function

  • CVE-2023-26125
    MEDIUM

    Improper input validation in github.com/gin-gonic/gin

  • CVE-2023-29401

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

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum