PT-2021-12082 · Gin · Gin-Gonic/Gin
Thinkerou
·
Published
2021-04-14
·
Updated
2025-04-11
·
CVE-2020-36567
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions:
gin-gonic/gin versions prior to 1.6.0
Description:
The issue allows remote attackers to inject arbitrary log lines due to unsanitized input in the default logger. This can be achieved by manipulating the request path, which affects the default Formatter for the Logger middleware.
Recommendations:
For versions prior to 1.6.0, update to version 1.6.0 or later to resolve the issue. As a temporary workaround, consider disabling the default logger until a patch is available. Restrict access to the Logger middleware to minimize the risk of exploitation. Avoid using the default Formatter for the Logger middleware until the issue is resolved.
Exploit
Fix
Improper Encoding or Escaping of Output
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Gin-Gonic/Gin