Skip to content
OpenAdvisories
High · 7.5 CVE-2020-36567 EUVD-2022-7542GHSA-6vm3-jj99-7229GO-2020-0001

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

Published Dec 27, 2022 · Updated Apr 11, 2025 · Assigned by Go

Description

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 products

VendorProductAffectedFixed
github.com/gin-gonic/gin github.com/gin-gonic/gin < 1.6.0 1.6.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 golang-github-gin-gonic-gin 1.6.3-1 —
Debian 13 golang-github-gin-gonic-gin 1.6.3-1 —
Debian 12 golang-github-gin-gonic-gin 1.6.3-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS golang-github-gin-gonic-gin No fix yet —
Ubuntu 18.04 LTS golang-github-gin-gonic-gin No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/gin-gonic/gin < 1.6.0 1.6.0 GHSA-6vm3-jj99-7229

References