CVE-2020-28483 — Vulnerability in github.com/gin-gonic/gin
Inconsistent Interpretation of HTTP Requests in github.com/gin-gonic/gin
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.
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 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).
| Package | Fixed In |
|---|---|
| github.com/gin-gonic/gin Go · Affected: All versions | 1.7.7 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-113
- CWE-444
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-28483ADVISORY
- https://github.com/gin-gonic/gin/issues/2232WEB
- https://github.com/gin-gonic/gin/issues/2473WEB
- https://github.com/gin-gonic/gin/issues/2862WEB
- https://github.com/gin-gonic/gin/pull/2474WEB
- https://github.com/gin-gonic/gin/pull/2474#23issuecomment-729696437WEB
- https://github.com/gin-gonic/gin/pull/2632WEB
- https://github.com/gin-gonic/gin/pull/2675WEB
- https://github.com/gin-gonic/gin/pull/2844WEB
- https://github.com/gin-gonic/gin/pull/2844/files#diff-e6ce689a25eaef174c2dd51fe869fabbe04a6c6afbd416b23eda138c82e761baR1432WEB
- https://github.com/gin-gonic/gin/commit/03e5e05ae089bc989f1ca41841f05504d29e3fd9WEB
- https://github.com/gin-gonic/gin/commit/5929d521715610c9dd14898ebbe1d188d5de8937WEB
- https://github.com/gin-gonic/gin/commit/bfc8ca285eb46dad60e037d57c545cd260636711WEB
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGINGONICGIN-1041736WEB
- https://pkg.go.dev/vuln/GO-2021-0052WEB
- https://github.com/gin-gonic/gin/releases/tag/v1.7.7WEB
- https://github.com/gin-gonic/gin/releases/tag/v1.7.0WEB
- https://github.com/gin-gonic/ginPACKAGE
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
Significant impact if exploited, or exploitable with modest effort.
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
Related CVEs
- CVE-2019-25211CRITICAL
Gin mishandles a wildcard at the end of an origin string
- CVE-2026-108262HIGH
DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885
- CVE-2026-130007HIGH
k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution
- CVE-2023-29401MEDIUM
Gin Web Framework does not properly sanitize filename parameter of Context.FileAttachment function
- CVE-2023-26125MEDIUM
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