GoWorst: Critical5 advisories

github.com/gin-gonic/gin: known vulnerabilities

github.com/gin-gonic/gin has 5 reviewed security advisories in the GitHub Advisory Database — 1 critical, 2 high, 2 moderate. The most recent was published 2024-06-29. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the github.com/gin-gonic/gin versions running across your servers, containers and images, and ranks what to patch first.

How to fix github.com/gin-gonic/gin

Upgrade github.com/gin-gonic/gin to a release at or above the fixed version shown for each advisory below. For Go:

go get github.com/gin-gonic/gin@1.6.0 && go mod tidy (check govulncheck)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (5)

Gin mishandles a wildcard at the end of an origin string Critical 9.1 CWE-346 — Affected: before 1.6.0. Fixed in 1.6.0. Published 2024-06-29. GHSA-869c-j7wc-8jqv · CVE-2019-25211
Gin Web Framework does not properly sanitize filename parameter of Context.FileAttachment function Moderate 4.3 CWE-494 — Affected: from 1.3.1-0.20190301021747-ccb9e902956d up to 1.9.1. Fixed in 1.9.1. Published 2023-06-08. GHSA-2c4m-59x9-fr2g · CVE-2023-29401
Improper input validation in github.com/gin-gonic/gin Moderate 5.6 CWE-20 CWE-77 — Affected: before 1.9.0. Fixed in 1.9.0. Published 2023-05-04. GHSA-3vp4-m3rf-835h · CVE-2023-26125
Gin's default logger allows unsanitized input that can allow remote attackers to inject arbitrary log lines High 7.5 CWE-116 CWE-117 — Affected: before 1.6.0. Fixed in 1.6.0. Published 2022-12-27. GHSA-6vm3-jj99-7229 · CVE-2020-36567
Inconsistent Interpretation of HTTP Requests in github.com/gin-gonic/gin High 7.1 CWE-113 CWE-444 — Affected: before 1.7.7. Fixed in 1.7.7. Published 2021-01-20. GHSA-h395-qcrw-5vmq · CVE-2020-28483

Find github.com/gin-gonic/gin across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.