CVE Database›Document archive›CVE-2026-33811

CVE-2026-33811

net: golang: Go net package: Denial of Service via long CNAME response in LookupCNAME

Loading…

Severity

Important

Red Hat Product Security

7.5

CVSS 3.1

Review impact separately from score.

Published · May 8, 2026

Updated · November 4, 2026

Description

A flaw was found in the net package of Go (golang), specifically when using the LookupCNAME function with the cgo DNS resolver. A remote attacker could exploit this by providing a very long Canonical Name (CNAME) response. This can trigger a double-free of C memory, leading to a crash and a Denial of Service (DoS) for the affected application.

Statement

This is an Important denial of service vulnerability in the Go net package, affecting applications configured to use the cgo DNS resolver. A remote attacker could trigger a double-free memory error by providing a very long CNAME response, leading to a crash of the vulnerable application and impacting service availability.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate this issue, applications can be configured to use the pure Go DNS resolver instead of the cgo DNS resolver. This can be achieved by setting the GODEBUG environment variable to netdns=go. For example, to run a Go application with this mitigation: GODEBUG=netdns=go /path/to/your/go/application. This change may require restarting affected applications or services to take effect. Users should verify that this change does not negatively impact DNS resolution for their specific application environment.

CVSS / CWE

CVSS 3.1 · 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CWE-1341 · Multiple Releases of Same Resource or Handle