CVE-2020-36567
Arbitrary log line injection in github.com/gin-gonic/gin
Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
7.5
Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.
- Record
CVE-2020-36567- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-116
- Updated
- 2026-11-02
CVE List
7.5
Arbitrary log line injection in github.com/gin-gonic/gin
Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.
- Record
CVE-2020-36567- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
EUVDEUVD-2022-7542
7.5
Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.
- Record
EUVD-2022-7542- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-6vm3-jj99-7229
7.5
Gin's default logger allows unsanitized input that can allow remote attackers to inject arbitrary log lines
Gin is a HTTP web framework written in Go (Golang). Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.
- Record
GHSA-6vm3-jj99-7229- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-116, CWE-117
- Updated
- 2026-11-02
OSV
7.5
Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.
- Record
CVE-2020-36567- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2020-36567
7.5
Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.
- Record
DEBIAN-CVE-2020-36567- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVGHSA-6vm3-jj99-7229
7.5
Gin's default logger allows unsanitized input that can allow remote attackers to inject arbitrary log lines
Gin is a HTTP web framework written in Go (Golang). Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.
- Record
GHSA-6vm3-jj99-7229- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-116, CWE-117
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2020-36567
7.5
Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.
- Record
UBUNTU-CVE-2020-36567- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVGO-2020-0001 No score
Arbitrary log line injection in github.com/gin-gonic/gin
The default Formatter for the Logger middleware (LoggerConfig.Formatter), which is included in the Default engine, allows attackers to inject arbitrary log entries by manipulating the request path.
- Record
GO-2020-0001- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/gin-gonic/ginGo |
before 1.6.0 | 1.6.0 |
golang-github-gin-gonic-ginDebian:12 |
before 1.6.3-1 | 1.6.3-1 |
golang-github-gin-gonic-ginDebian:13 |
before 1.6.3-1 | 1.6.3-1 |
golang-github-gin-gonic-ginDebian:14 |
before 1.6.3-1 | 1.6.3-1 |
golang-github-gin-gonic-ginUbuntu:18.04:LTS |
All versions, plus listed versions 1.2+dfsg1-21.2+dfsg1-2ubuntu1 |
None known |
golang-github-gin-gonic-ginUbuntu:20.04:LTS |
All versions, plus listed versions 1.3.0+dfsg1-3 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-36567 is a high vulnerability (CVSS 7.5) in Gin-gonic Gin, published April 14, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.54%, the 75th percentile. Fixed in github.com/gin-gonic/gin 1.6.0.
References
github.com/gin-gonic/gin/pull/2237
github.com/gin-gonic/gin/commit/a71af9c144f9579f6dbe945341c1df37aaf09c0d
pkg.go.dev/vuln/GO-2020-0001
nvd.nist.gov/vuln/detail/CVE-2020-36567
github.com/advisories/GHSA-6vm3-jj99-7229
security-tracker.debian.org/tracker/CVE-2020-36567
github.com/gin-gonic/gin
ubuntu.com/security/CVE-2020-36567
cve.org/CVERecord?id=CVE-2020-36567