Live threats

All CVEs / Gin-gonic

CVE-2020-28483Gin-gonic Gin

High 7.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gin.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
gin-gonicgin< 1.7.0

Official sources

References

Links published by the sources. Open them with care.