gin vulnerabilities and fixes
Recent CVEs affecting gin, with upgrade or downgrade steps. 4 tracked.
gin has 4 tracked vulnerabilities, 0 critical. A fixed release or vendor patch exists for 3. Most recent: 2023-06-08. Highest priority: CVE-2020-36567 (score 55/100).
- CVE-2023-31873 HIGH 7.8 DOWNGRADE Gin 0.7.4 allows execution of arbitrary code when a crafted file is opened, e.g., via require('child_process')
- CVE-2023-29401 MEDIUM 4.3 UPGRADE The filename parameter of the Context.FileAttachment function is not properly sanitized
- CVE-2023-26125 MEDIUM 5.6 UPGRADE Versions of the package github.com/gin-gonic/gin before 1.9.0 are vulnerable to Improper Input Validation by a
- CVE-2020-36567 HIGH 7.5 UPGRADE Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to i
FAQ
How do I fix gin vulnerabilities?
Open the CVE for your version, check the affected range, then follow the listed action: upgrade to the fixed release, or downgrade or mitigate if no fix exists yet. Commands for each OS are shown on every CVE page.
Is gin being exploited right now?
None of the tracked gin CVEs are on the CISA Known Exploited Vulnerabilities list at the moment. This is checked every 20 minutes.
Which gin CVE should I patch first?
CVE-2020-36567 currently ranks highest (55/100): Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to i.