Search criteria

1 vulnerability found for golang.org/x/sys/windows by golang.org/x/sys

CVE-2026-39824 (GCVE-0-2026-39824)

Vulnerability from cvelistv5 – Published: 2026-05-22 19:39 – Updated: 2026-05-22 19:39
VLAI
Title
Invoking integer overflow in NewNTUnicodeString in golang.org/x/sys/windows
Summary
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.
Severity
No CVSS data available.
CWE
  • CWE-190 - Integer Overflow or Wraparound
Assigner
Go
Impacted products
Vendor Product Version
golang.org/x/sys golang.org/x/sys/windows Affected: 0 , < 0.44.0 (semver)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "collectionURL": "https://pkg.go.dev",
          "defaultStatus": "unaffected",
          "packageName": "golang.org/x/sys/windows",
          "platforms": [
            "windows"
          ],
          "product": "golang.org/x/sys/windows",
          "programRoutines": [
            {
              "name": "NewNTUnicodeString"
            }
          ],
          "vendor": "golang.org/x/sys",
          "versions": [
            {
              "lessThan": "0.44.0",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "CWE-190: Integer Overflow or Wraparound",
              "lang": "en"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-22T19:39:47.629Z",
        "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "shortName": "Go"
      },
      "references": [
        {
          "url": "https://go.dev/issue/78916"
        },
        {
          "url": "https://go.dev/cl/770080"
        },
        {
          "url": "https://groups.google.com/g/golang-announce/c/6MMI8Lj-Atg"
        },
        {
          "url": "https://pkg.go.dev/vuln/GO-2026-5024"
        }
      ],
      "title": "Invoking  integer overflow in NewNTUnicodeString in golang.org/x/sys/windows"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
    "assignerShortName": "Go",
    "cveId": "CVE-2026-39824",
    "datePublished": "2026-05-22T19:39:47.629Z",
    "dateReserved": "2026-04-07T18:13:03.527Z",
    "dateUpdated": "2026-05-22T19:39:47.629Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}