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

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

Weakness Enumeration

Related Identifiers

CVE-2020-36567
GHSA-6VM3-JJ99-7229
GO-2020-0001

Affected Products

Gin-Gonic/Gin