CVE-2026-39836

Panic in Dial and LookupPort when handling NUL byte on Windows in net

Published May 7, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
The Dial and LookupPort functions panic on Windows when provided with an input containing a NUL (0).

Analysis

AI-generated

Technical impact

The Go standard library’s net package contains a defect that causes the Dial and LookupPort functions to panic when a Windows platform receives an input string that contains a NUL (0) byte. The panic terminates the process, leading to a loss of service for the application that called the function. This issue is a classic instance of improper input validation that results in program termination, producing a denial of service condition for any process that relies on those network APIs.

Affected Systems

The vulnerability affects the Go standard library package net, which is bundled with all Go releases that include this defect. It is specific to Windows operating system environments. No explicit version range is given in the advisory, so the defect may be present in any Go version that has not yet incorporated the fix referenced in the Go issue tracker.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity, while the EPSS score of <1% shows a low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog, but the defect is deterministic and will crash any code that passes an unvalidated string containing a NUL byte to Dial or LookupPort on Windows. The attack vector is likely local or remote, depending on whether the offending input originates from an external request processed by a Go application. An attacker could trigger the crash by supplying a crafted address string or port name to a service that uses these functions, causing the service to terminate and disrupting availability for legitimate users.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest Go release that includes the fix referenced in Go issue 79006.
  • If an upgrade is not immediately available, sanitize any strings passed to Dial or LookupPort to remove NUL characters before use.
  • Monitor application logs for unexpected panics and consider implementing graceful error handling to restart services if a crash occurs.

Generated by OpenCVE AI on May 13, 2026 at 16:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Golang
Golang go
Weaknesses CWE-476
CPEs cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Vendors & Products Golang
Golang go
Type Values Removed Values Added
First Time appeared Go Standard Library
Go Standard Library net
Vendors & Products Go Standard Library
Go Standard Library net
Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Description The Dial and LookupPort functions panic on Windows when provided with an input containing a NUL (0).
Title Panic in Dial and LookupPort when handling NUL byte on Windows in net
References
Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-476

    NULL Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
May 8, 2026, 9:30 PM
Reserved
Apr 7, 2026, 6:13 PM
Status
Analyzed
Published
May 7, 2026, 8:16 PM
Modified
Oct 26, 2026, 8:10 PM