QID 375598

Date Published: 2021-06-24

QID 375598: Go Denial Of Service Vulnerability

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.

CVE-2021-31525: A vulnerability was found in net/http of the Go standard library when parsing very large HTTP header values, causing a crash and subsequent denial of service. This vulnerability affects both clients and servers written in Go, however servers are only vulnerable if the default 1 MB value for MaxHeaderBytes is increased.

Affected Version:
Go version before 1.15.12
Go version 1.16.x before 1.16.4

QID Detection Logic(authenticated):
This QID checks for vulnerable version of Go installed on the target.

Note: For unix target, this QID will only work if Go path is properly set in environment variable.

Successful exploitation could result in denial of service attack.

  • CVSS V3 rated as Medium - 5.9 severity.
  • CVSS V2 rated as Low - 2.6 severity.
  • Solution
    It is advised to install the latest Go version from Go download page.
    Vendor References

    CVEs related to QID 375598

    Software Advisories
    Advisory ID Software Component Link
    Go URL Logo golang.org/dl/