VDB
Sign up
—

GO-2026-5024

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

Quick fix

GO-2026-5024 — golang.org/x/sys: upgrade to the fixed version with the command below.

go get golang.org/x/sys@v0.44.0

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/golang.org/x/sys
Introduced in: 0Fixed in: 0.44.0
Fixgo get golang.org/x/sys@v0.44.0

References