Denial of service in Go programming language

Published: 2021-05-27 | Updated: 2021-07-15
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2021-31525
Exploitation vector Network
Public exploit N/A
Vulnerable software
Go programming language
Universal components / Libraries / Scripting languages

Vendor Google

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Uncontrolled Recursion

EUVDB-ID: #VU54910

Risk: Medium


CVE-ID: CVE-2021-31525

CWE-ID: CWE-674 - Uncontrolled Recursion

Exploit availability: No


The vulnerability allows a remote attacker to perform a DoS attack.

The vulnerability exists due to uncontrolled recursion when processing HTTP headers. A remote attacker can send a large header to ReadRequest or ReadResponse and perform a denial of service (DoS) attack.


Install update from vendor's website.

Vulnerable software versions

Go programming language: 1.16 - 1.16.3, 1.15 - 1.15.11

CPE2.3 External links

Q & A

Can this vulnerability be exploited remotely?

Is there known malware, which exploits this vulnerability?