ADVISORIES

Go Vulnerability Database

GO-2026-5024

Invoking integer overflow in NewNTUnicodeString in golang.org/x/sys/windows

Details

NewNTUnicodeString does not check for string length overflow. When provided with a string that overflows the maximum size of a NTUnicodeString (a 16-bit number of bytes), it returns a truncated string rather than an error.

Affected packages

EcosystemPackageAffected versions
Gogolang.org/x/sys
All versions before 0.44.0 (fixed in 0.44.0)

References