Gin · Gin-Gonic/Gin · CVE-2020-36567
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.