Appsecure logo

CVE-2022-41717: Medium Vulnerability in Golang HTTP/2

A medium-severity vulnerability in Golang's HTTP/2 server can lead to excessive memory growth, impacting resource availability. Organizations should prioritize remediation to mitigate risks.

MEDIUMPublic ExploitCVSS 5.3 · Published December 8, 2022

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

CVE-2022-41717 is a medium-severity vulnerability found in the Golang HTTP/2 server. This vulnerability allows an attacker to exploit excessive memory growth by sending large HTTP header keys. The server's connection cache, while capped in total entries, can be forced to allocate approximately 64 MiB per open connection if large keys are sent. This leads to potential resource exhaustion and impacts the server's availability, making it a significant concern for organizations.

The CVSS score for this vulnerability is 5.3, indicating a medium severity level. The attack vector is classified as network-based, with low attack complexity and no privileges or user interaction required for exploitation. As a result, this vulnerability poses a tangible risk to systems that utilize Golang's HTTP/2 implementation.

Organizations should prioritize patching immediately. The vulnerability has been modified recently, and the updated versions of Golang contain fixes that address this issue. It is crucial to ensure that all affected systems are updated to mitigate the risks associated with this vulnerability.

Additionally, it is noteworthy that while there are reports of exploits in the wild, there is currently no public proof of concept available. This indicates that while the vulnerability is known, its exploitation may not yet be widespread, providing a brief window for organizations to remediate.

Vulnerability Details

The official CVE description states that an attacker can cause excessive memory growth in a Go server accepting HTTP/2 requests. The cache of HTTP header keys sent by the client is capped in entries but can still lead to substantial memory allocation due to large key sizes. The vulnerability is categorized under CWE-770, which relates to insufficiently limiting resource consumption.

Technical Analysis

The root cause of this vulnerability lies in the handling of HTTP header keys within the HTTP/2 server implementation. Attackers can exploit this by sending oversized keys, resulting in excessive memory allocation per connection. The attack vector is network-based, requiring no authentication or user interaction, facilitating easier exploitation.

The attack complexity is low, as the only requirement is the ability to send HTTP/2 requests to the server. This makes it a viable attack vector for malicious entities. The impact of this vulnerability is primarily on availability, as excessive memory growth can lead to a denial of service, rendering the server unresponsive.

Risk & Impact Analysis

Risk to organizations includes potential service outages due to excessive memory consumption, which could lead to significant downtime and loss of service availability. The blast radius can affect all services relying on the vulnerable Go HTTP/2 server, exposing organizations to further risks if not patched promptly.

Given the CVSS score of 5.3, organizations should address this vulnerability in their priority patch cycle. The exploitation risk is moderate but should not be underestimated, especially for systems exposed to the internet.

Exploitation Status

Signal

Status

Known Exploit

Yes

Public PoC

No

Actively Exploited

No

Ransomware Use

No

Affected Versions

The following versions of Golang are affected by this vulnerability: all versions prior to 1.18.9 and versions from 1.19.0 to 1.19.4, as well as the HTTP/2 package versions prior to 0.4.0.

Mitigation & Remediation

Organizations must update to the latest version of Golang to mitigate this vulnerability. The vendor has released patches in versions 1.18.9 and 1.19.4 that address the issue. If immediate patching is not possible, consider implementing network controls to restrict access to the HTTP/2 server and monitor for unusual traffic patterns that may indicate exploitation attempts. For further assistance, organizations can refer to resources on penetration testing and review your security posture.

Detection Guidance

Monitor server logs for indications of excessively large HTTP header keys being sent. Look for unusual memory usage patterns that exceed normal thresholds, which may indicate attempts to exploit this vulnerability. Additionally, review network traffic for signs of potential exploitation attempts involving malformed HTTP/2 requests.

AppSecure Threat Intelligence Insight

This vulnerability highlights the importance of proper resource management within web server implementations. Security teams should prioritize understanding attack vectors associated with memory consumption and implement robust monitoring solutions. For best practices in securing your web applications, consider reviewing the penetration testing methodology and engage in regular vulnerability management program design to identify and mitigate potential weaknesses.

Additionally, exploring services such as web application penetration testing can help assess your applications for similar vulnerabilities.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.