CVE-2020-28483
HIGH 7.1CVSS 3.1Inconsistent Interpretation of HTTP Requests in github.com/gin-gonic/gin
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.
- Published
- 20 Jan 2021
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-113CWE-444
- Also known as
- GHSA-h395-qcrw-5vmqGO-2021-0052SNYK-GOLANG-GITHUBCOMGINGONICGIN-1041736
- Sources
- NVDJSONOSV GHSA-h395-qcrw-5vmqJSONOSV GO-2021-0052JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gin-gonic | gincpe:2.3:a:gin-gonic:gin:*:*:*:*:*:*:*:* |
< 1.7.0 | 1.7.0 |
| OSV | Go | github.com/gin-gonic/gin | < 1.7.7 | 1.7.7 |
References
- https://github.com/gin-gonic/gin/pull/2474%23issuecomment-729696437 · Broken Link
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGINGONICGIN-1041736 · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-28483 · ADVISORY
- https://github.com/gin-gonic/gin/issues/2232 · WEB, REPORT
- https://github.com/gin-gonic/gin/issues/2473 · WEB, REPORT
- https://github.com/gin-gonic/gin/issues/2862 · WEB, REPORT
- https://github.com/gin-gonic/gin/pull/2474 · WEB
- https://github.com/gin-gonic/gin/pull/2474#23issuecomment-729696437 · WEB
- https://github.com/gin-gonic/gin/pull/2632 · WEB, FIX
- https://github.com/gin-gonic/gin/pull/2675 · WEB, FIX
- https://github.com/gin-gonic/gin/pull/2844 · WEB, FIX
- https://github.com/gin-gonic/gin/pull/2844/files#diff-e6ce689a25eaef174c2dd51fe869fabbe04a6c6afbd416b23eda138c82e761baR1432 · WEB
- https://github.com/gin-gonic/gin/commit/03e5e05ae089bc989f1ca41841f05504d29e3fd9 · WEB, FIX
- https://github.com/gin-gonic/gin/commit/5929d521715610c9dd14898ebbe1d188d5de8937 · WEB, FIX
- https://github.com/gin-gonic/gin/commit/bfc8ca285eb46dad60e037d57c545cd260636711 · WEB, FIX
- https://pkg.go.dev/vuln/GO-2021-0052 · WEB
- https://github.com/gin-gonic/gin/releases/tag/v1.7.7 · WEB
- https://github.com/gin-gonic/gin/releases/tag/v1.7.0 · WEB
- https://github.com/gin-gonic/gin · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 20 Jan 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 23 Jun 2021)