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

High 7.5 Published Updated

Remote attackers can inject arbitrary log lines via unsanitized input in the default logger of the Gin web framework.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-36567?

CVE-2020-36567 is a high-severity vulnerability in github.com/gin-gonic/gin, published on 27 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-116

Which versions are affected by CVE-2020-36567?

3 open source packages ship an affected version, including github.com/gin-gonic/gin. It affects 1 product.

PackageAffectedFixed in
github.com/gin-gonic/gin GoAll versions1.6.0
github.com/gin-gonic/gin GoAll versions1.6.0
github.com/gin-gonic/gin GoAll versions1.6.0

Products include Gin-Gonic Gin.

How do I fix CVE-2020-36567?

Upgrade github.com/gin-gonic/gin to 1.6.0 or later.

Is CVE-2020-36567 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-36567 exists.

Sources

Also known as DEBIAN-CVE-2020-36567, GHSA-6vm3-jj99-7229, GO-2020-0001, UBUNTU-CVE-2020-36567.

Is CVE-2020-36567 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free