Every CVE Search/ Get API key

CVE-2020-36567

Arbitrary log line injection in github.com/gin-gonic/gin

7.5 HighFix available

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

1.54%Up 0.5 points since Dec 28, 2022
90%50%10%1%

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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
github.com/gin-gonic/gin
Go
before 1.6.0
1.6.0
golang-github-gin-gonic-gin
Debian:12
before 1.6.3-1
1.6.3-1
golang-github-gin-gonic-gin
Debian:13
before 1.6.3-1
1.6.3-1
golang-github-gin-gonic-gin
Debian:14
before 1.6.3-1
1.6.3-1
golang-github-gin-gonic-gin
Ubuntu:18.04:LTS
All versions, plus listed versions
1.2+dfsg1-21.2+dfsg1-2ubuntu1
None known
golang-github-gin-gonic-gin
Ubuntu:20.04:LTS
All versions, plus listed versions
1.3.0+dfsg1-3
None known

History

History
RecordedChangedSources
first indexedCVE 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

MoveEnter Open