CVE-2020-28483: Inconsistent Interpretation of HTTP Requests in github.com/gin-gonic/gin
7.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.57512%
CWE
Published
6/23/2021
Updated
5/20/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/gin-gonic/gin | go | < 1.7.7 | 1.7.7 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The primary vulnerability stemmed from ClientIP() in context.go which directly trusted X-Forwarded-For headers without validating the remote IP against trusted proxies. The GitHub patch shows this function was modified to add proxy validation through the new RemoteIP() and validateHeader() methods. The prepareTrustedCIDRs function in gin.go also contributed as improper initialization (fixed in #2675) could leave trust checks incomplete. The high confidence for ClientIP is based on direct header handling changes in the fix commit, while prepareTrustedCIDRs gets medium confidence due to its role in proxy validation setup.