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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | golang.org/x/sys | All versions before 0.44.0 (fixed in 0.44.0) |