CVE-2020-28483Gin-gonic Gin
High 7.1 No auth needed
Follow: this CVE · Gin-gonic · Gin-gonic Gin We alert you by email or Slack (account required).
- Priority
- 58
- CVSS 3.1
- 7.1
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 71
- Auth required
- No
- Published
- Jan 20, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-444
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Gin.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/gin-gonic/gin |
< 1.7.7 |
1.7.7 |
go get github.com/gin-gonic/gin@v1.7.7 |
| Go | github.com/gin-gonic/gin |
< 1.7.7 |
1.7.7 |
go get github.com/gin-gonic/gin@v1.7.7 |
Per OSV / GitHub Advisories (GHSA-h395-qcrw-5vmq, GO-2021-0052). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gin-gonic | gin | < 1.7.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link
- snyk.io Patch Third Party Advisory