CVE-2020-28483
JSON

7.1high

HTTP Response Splitting

Severity
7.1high CVSS:3.1 by snyk
Exploit likelihood
1.33% (higher than 71% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-h395-qcrw-5vmqGO-2021-0052SNYK-GOLANG-GITHUBCOMGINGONICGIN-1041736

Description

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.

Affected

Product or packageVersionsReported by
github.com/gin-gonic/ginbefore unspecifiedCVE List
github.com/gin-gonic/gin (Go)before 1.7.7GitHub Advisory Database, Go Vulnerability Database
gin-gonic ginbefore 1.7.0NVD

All scores

snyk7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
GitHub7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
NVD5.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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.

Go Vulnerability Database

Due to improper HTTP header sanitization, a malicious user can spoof their source IP address by setting the X-Forwarded-For header. This may allow a user to bypass IP based restrictions, or obfuscate their true source.

NVD (es)

Esto afecta a todas las versiones del paquete github.com/gin-gonic/gin. Cuando gin se expone directamente a Internet, la IP de un cliente se puede falsificar configurando el encabezado X-Fordered-For

References

https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGINGONICGIN-1041736patch, third-party-advisory, web
https://github.com/gin-gonic/gin/pull/2474%23issuecomment-729696437broken-link
https://nvd.nist.gov/vuln/detail/CVE-2020-28483advisory
https://github.com/gin-gonic/gin/issues/2232report, web
https://github.com/gin-gonic/gin/issues/2473report, web
https://github.com/gin-gonic/gin/issues/2862report, web
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/2632fix, web
https://github.com/gin-gonic/gin/pull/2675fix, web
https://github.com/gin-gonic/gin/pull/2844fix, web
https://github.com/gin-gonic/gin/pull/2844/files#diff-e6ce689a25eaef174c2dd51fe869fabbe04a6c6afbd416b23eda138c82e761baR1432web

Sources

SourceRecordLicence
CVE ListCVE-2020-28483 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-h395-qcrw-5vmq changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2021-0052 changed 2026-07-08CC-BY-4.0
NVDCVE-2020-28483 changed 2026-06-17Public domain