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

Published Dec 27, 2022
·
Updated

A flaw was found in gin. This issue occurs when 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.

Other sources

Gin-Gonic Gin Web Framework could allow a remote attacker to bypass security restrictions, caused by improper input validation by the default logger. By sending a specially-crafted request, an attacker could exploit this vulnerability to inject arbitrary log lines.

IBM

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 Software

4 affected componentsFixes available
redhat/gin<1.6.0
1.6.0
gin-gonic gin<1.6.0
IBM Planning Analytics Local - IBM Planning Analytics Workspace<=2.1
IBM Planning Analytics Local - IBM Planning Analytics Workspace<=2.0

Event History

Dec 27, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·08:58 PM
Data Sourced
via MITRE·08:58 PM
DescriptionWeakness
Dec 28, 2022
Data Sourced
via Red Hat·07:02 AM
DescriptionSeverityAffected Software
Jan 20, 58283
Event
09:19 PM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2020-36567?

CVE-2020-36567 is a vulnerability in github.com/gin-gonic/gin before v1.6.0 that allows remote attackers to inject arbitrary log entries by manipulating the request path.

2

What is the severity of CVE-2020-36567?

CVE-2020-36567 has a severity rating of 7.5 (High).

3

How does CVE-2020-36567 affect the gin-gonic/gin package?

CVE-2020-36567 affects the gin-gonic/gin package before version 1.6.0.

4

How can I fix CVE-2020-36567?

To fix CVE-2020-36567, update the gin-gonic/gin package to version 1.6.0 or later.

5

Where can I find more information about CVE-2020-36567?

You can find more information about CVE-2020-36567 in the following references: [CVE](https://www.cve.org/CVERecord?id=CVE-2020-36567), [NVD](https://nvd.nist.gov/vuln/detail/CVE-2020-36567), [GitHub Commit](https://github.com/gin-gonic/gin/commit/a71af9c144f9579f6dbe945341c1df37aaf09c0d), [GitHub Pull Request](https://github.com/gin-gonic/gin/pull/2237), [Red Hat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=2156683), [Red Hat Errata](https://access.redhat.com/errata/RHSA-2023:0934), [GO-2020-0001](https://pkg.go.dev/vuln/GO-2020-0001).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203