What’s Vulnerable › Vulnerabilities
CVE-2020-36567: Arbitrary log line injection in github.com/gin-gonic/gin
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-12-27 · updated 2026-06-17
- Weakness: CWE-116
Description
Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.
Affected products
- github.com/gin-gonic/gin: before 1.6.0 — fixed in 1.6.0
How to fix
Upgrade to a fixed version: github.com/gin-gonic/gin 1.6.0. Check the vendor advisory for mitigations.
References
- https://github.com/gin-gonic/gin/commit/a71af9c144f9579f6dbe945341c1df37aaf09c0d
- https://github.com/gin-gonic/gin/pull/2237
- https://pkg.go.dev/vuln/GO-2020-0001
- https://github.com/gin-gonic/gin/commit/a71af9c144f9579f6dbe945341c1df37aaf09c0d
- https://github.com/gin-gonic/gin/pull/2237
- https://pkg.go.dev/vuln/GO-2020-0001
Get alerted when CVE-2020-36567 or the next vulnerability affects your stack