Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-78659 Overview
CVE-2026-78659 is a denial-of-service vulnerability in the Go standard library net/http package. The flaw affects HTTP/2 servers that process client-supplied Trailer headers. When a client sends a Trailer header declaring a large number of fields, the server allocates a Request.Trailer map entry for each declared field. Each map entry carries memory overhead, enabling a malicious client to exhaust server memory while bypassing the Server.MaxHeaderValueCount and Server.MaxHeaderBytes limits. HTTP/1 servers are not affected because they do not multiplex many requests over one TCP connection and calculate MaxHeaderBytes differently. The issue is tracked by the Go security team as GO-2026-6603 and is classified under CWE-405: Asymmetric Resource Consumption.
Critical Impact
A remote unauthenticated attacker can exhaust server memory on Go HTTP/2 services by sending crafted Trailer headers, resulting in denial of service.
Affected Products
- Go standard library net/http package (HTTP/2 server implementations)
- Go golang.org/x/net/http2 package
- Applications and services built on Go that expose HTTP/2 endpoints
Discovery Timeline
- 2026-10-08 - CVE-2026-78659 published to NVD
- 2026-10-09 - Last updated in NVD database
Technical Details for CVE-2026-78659
Vulnerability Analysis
The Go HTTP server exposes declared trailer fields to handlers through Request.Trailer, a map[string][]string. During request parsing on HTTP/2 connections, the server reads the Trailer header value, splits it into field names, and pre-populates the map with one entry per declared name. Because Request.Trailer is a Go map, each entry incurs allocator overhead beyond the raw byte length of the field name. An attacker who declares thousands of trailer field names in a single request can force the server to allocate memory disproportionate to the bytes transmitted. The Server.MaxHeaderValueCount and Server.MaxHeaderBytes limits are evaluated against raw header bytes and do not account for the per-entry overhead of the resulting map, so the limits do not bound this allocation. Repeated HTTP/2 streams on a single TCP connection amplify the effect.
Root Cause
The underlying weakness is asymmetric resource consumption [CWE-405]. The server converts a compact, delimited header value into a data structure whose memory footprint grows faster than the input size, without applying a bound tied to the output structure.
Attack Vector
Exploitation requires only network reachability to an HTTP/2 endpoint. No authentication or user interaction is needed. The attacker opens an HTTP/2 connection, issues requests whose Trailer headers declare a large number of field names, and multiplexes many such requests across streams to accelerate memory growth. The vulnerability does not impact confidentiality or integrity. Technical details are published in the Go.dev Vulnerability Report GO-2026-6603 and the upstream Go.dev Issue Tracker #81857.
Detection Methods for CVE-2026-78659
Indicators of Compromise
- HTTP/2 requests containing Trailer headers that declare an unusually large number of field names, often hundreds or thousands per request.
- Sudden growth in Go process resident set size (RSS) correlated with inbound HTTP/2 traffic from a small number of source addresses.
- Elevated garbage collector activity and runtime.MemStats allocation counters on servers using net/http.
Detection Strategies
- Parse access logs and HTTP/2 frame captures for Trailer header values that enumerate many comma-separated field names.
- Instrument reverse proxies or service meshes to count declared trailer fields per request and alert on outliers.
- Correlate memory pressure, out-of-memory kills, and HTTP/2 stream counts in observability pipelines.
Monitoring Recommendations
- Export Go runtime metrics (HeapAlloc, HeapObjects, NumGC) via Prometheus or OpenTelemetry and set threshold alerts for anomalous growth.
- Enable connection-level rate limits and per-connection stream limits on HTTP/2 ingress points.
- Track distributions of request header sizes and trailer field counts to establish a baseline and detect abuse.
How to Mitigate CVE-2026-78659
Immediate Actions Required
- Upgrade Go to a patched release containing the fixes referenced in Go code change 847185 and Go code change 847314, then rebuild and redeploy affected binaries.
- Review the Golang Announce update and the follow-up Golang Announce notice to confirm the exact fixed versions for your Go release train.
- Audit services that terminate HTTP/2 directly in Go for exposure, prioritizing internet-facing APIs and gateways.
Patch Information
The Go security team released fixes tracked under GO-2026-6603. Apply the upstream patches delivered through the Go toolchain updates and recompile all first-party Go services. Container images using Go base layers must be rebuilt because the vulnerability resides in the standard library linked into each binary.
Workarounds
- Terminate HTTP/2 at a hardened reverse proxy that enforces a strict cap on the number of declared trailer fields per request.
- Disable HTTP/2 on the Go server and serve HTTP/1.1 only, since HTTP/1 servers are not affected.
- Add middleware that inspects the incoming Trailer header, rejects requests whose field count exceeds a conservative threshold, and returns a 431 response.
# Verify the installed Go toolchain version before and after patching
go version
# Rebuild affected services with the patched toolchain
go build -trimpath -o /usr/local/bin/myservice ./cmd/myservice
# Example reverse proxy guard (nginx) limiting header count and size
# large_client_header_buffers and http2 directives bound inbound headers
# large_client_header_buffers 4 8k;
# http2_max_field_size 4k;
# http2_max_header_size 16k;
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

