CVE-2026-40898
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedquic-go is an implementation of the QUIC protocol in Go. Prior to version 0.59.1, an attacker can cause excessive memory allocation in quic-go's HTTP/3 client and server implementations by sending a QPACK-encoded HEADERS frame that decodes into a large trailer field section with many unique field names and/or large values. The implementation builds an `http.Header` for the corresponding `http.Request` or `http.Response`, while only enforcing limits on the size of the QPACK-compressed HEADERS frame, not on the decoded field section. This can lead to memory exhaustion. This is very similar to CVE-2025-64702. The difference is that this issue uses HTTP trailers, rather than HTTP headers, as the attack vector. A misbehaving or malicious peer can cause a denial-of-service (DoS) attack against quic-go's HTTP/3 servers or clients by triggering excessive memory allocation, potentially leading to crashes or resource exhaustion. This affects both servers and clients due to symmetric header construction. Version 0.59.1 enforces RFC 9114 decoded field section size limits for trailers as well. It incrementally decodes QPACK entries and checks the field section size after each entry, aborting the stream if an entry causes the limit to be exceeded.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidencequic-go versions prior to 0.59.1 fail to enforce limits on decoded QPACK trailer field sections, only checking the compressed HEADERS frame size. Attackers can send specially crafted QPACK-encoded HEADERS frames with large trailers containing many unique field names or large values, causing excessive memory allocation and memory exhaustion DoS against HTTP/3 clients and servers.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 0.59.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify quic-go version in useRun 'go list -m all | grep quic-go' or inspect your go.mod file for the quic-go module versionAffected if The version listed is below 0.59.1 (e.g., 0.59.0, 0.58.0, etc.)
-
Confirm HTTP/3 traffic handlingCheck if your application initializes an HTTP/3 server or client using quic-go's h3 package. Look for usage of h3.Server or h3.Client in your codebaseAffected if Your application uses h3.Server or h3.Client to handle HTTP/3 connections
-
Verify trailer processing is enabledReview your HTTP handler code to see if http.Response.Header (trailers) are read or processed after receiving HTTP/3 requests. Check for calls to request.Trailer() or reading from response trailersAffected if Your handlers read or process HTTP trailers from incoming requests or outgoing responses
-
Check for size limits on decoded headersInspect your quic-go or h3 configuration for any custom MaxHeaderBytes or field section size limits. In code, search for h3.Transport settings or quic.ConfigAffected if No decoded field section size limits are configured and you rely on the default quic-go behavior (versions prior to 0.59.1 had no such limits for trailers)
You are affected if your installed quic-go version is below 0.59.1 AND your application processes HTTP/3 traffic with trailers, since prior versions did not enforce limits on decoded trailer sizes.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped0.59.1
Upgrade quic-go to version 0.59.1 or later, which enforces RFC 9114 decoded field section size limits for trailers by incrementally decoding QPACK entries and aborting streams that exceed size limits.
quic-go v0.59.1
- 1. Identify all Go projects that depend on quic-go library
- 2. Run `go list -m all` or check go.mod files to find current quic-go version
- 3. Update quic-go to version 0.59.1 or later by running `go get github.com/quic-go/quic-go@latest` or `go get github.com/quic-go/[email protected]`
- 4. Run `go mod tidy` to update dependencies and verify the upgrade
- 5. Rebuild and test the application to ensure compatibility
- 6. Redeploy updated services to production
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,752.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-40898 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-40898 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data