Skip to content
Heist/ feed
Back to feed
High

golang-github-lucas-clemente-quic-go — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-40898

quic-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.

Products
golang-github-lucas-clemente-quic-go
Affected versions
0.18.0-3, 0.24.0-1, 0.25.0-1, 0.37.4-1, 0.38.2-1, 0.50.0-1, 0.50.1-2, 0.59.0-2
Fixed versions
Not specified
CVEs
CVE-2026-40898
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:25 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-40898

core-osv · Original source

Published 4 Jun 2026, 19:16 UTC

quic-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.

osv:UBUNTU-CVE-2026-40898

golang-github-lucas-clemente-quic-go

Fixed versions: Not specified

golang-github-lucas-clemente-quic-go

Fixed versions: Not specified

golang-github-lucas-clemente-quic-go

Fixed versions: Not specified

golang-github-lucas-clemente-quic-go

Fixed versions: Not specified

golang-github-lucas-clemente-quic-go

Fixed versions: Not specified

Complete source record
{
  "id": "70b8389e6f24ecba8f71551b1eb3e3f8df47873e9af9a0d900ac0b5cf8a022b2",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-40898",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-40898",
    "summary": "quic-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.",
    "evidence": "osv:UBUNTU-CVE-2026-40898",
    "products": [
      {
        "name": {
          "value": "golang-github-lucas-clemente-quic-go",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.18.0-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.24.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.25.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-lucas-clemente-quic-go",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.37.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.38.2-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-lucas-clemente-quic-go",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.50.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.50.1-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-lucas-clemente-quic-go",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.59.0-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-lucas-clemente-quic-go",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.50.1-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.59.0-2",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-40898",
      "aliases": [
        "UBUNTU-CVE-2026-40898"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-lucas-clemente-quic-go",
            "purl": "pkg:deb/ubuntu/golang-github-lucas-clemente-quic-go?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.18.0-3",
            "0.24.0-1",
            "0.25.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40898.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-lucas-clemente-quic-go-dev",
                "binary_version": "0.25.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-lucas-clemente-quic-go",
            "purl": "pkg:deb/ubuntu/golang-github-lucas-clemente-quic-go?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.37.4-1",
            "0.38.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40898.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-lucas-clemente-quic-go-dev",
                "binary_version": "0.38.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-lucas-clemente-quic-go",
            "purl": "pkg:deb/ubuntu/golang-github-lucas-clemente-quic-go?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.50.0-1",
            "0.50.1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40898.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-lucas-clemente-quic-go-dev",
                "binary_version": "0.50.1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-lucas-clemente-quic-go",
            "purl": "pkg:deb/ubuntu/golang-github-lucas-clemente-quic-go?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.59.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40898.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-lucas-clemente-quic-go-dev",
                "binary_version": "0.59.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-lucas-clemente-quic-go",
            "purl": "pkg:deb/ubuntu/golang-github-lucas-clemente-quic-go?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.50.1-2",
            "0.59.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40898.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-lucas-clemente-quic-go-dev",
                "binary_version": "0.59.0-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:54:54.165733770Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-40898"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-40898",
        "https://www.cve.org/CVERecord?id=CVE-2026-40898",
        "https://github.com/quic-go/quic-go/security/advisories/GHSA-vvgj-x9jq-8cj9"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-40898",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 353583,
  "published_at": "2026-06-04T19:16:00+00:00"
}