CVE-2026-39824

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

Published May 22, 2026 CVSS 3.1 · 3.3 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability exists in the golang.org/x/sys/windows package, where the NewNTUnicodeString function does not enforce the maximum length limit of a NTUnicodeString. When a string larger than the 16‑bit length field is supplied, the function silently truncates the string instead of reporting an error.

Affected Systems

The only vendor and product explicitly listed is golang.org/x/sys/windows. No specific versions are given, so any release that uses the current implementation of NewNTUnicodeString before a fix may be impacted.

Risk and Exploitability

The EPSS score of <1% indicates a very low probability of exploitation, and the issue is not listed in CISA KEV, suggesting limited publicly known exploits. The problem is an integer overflow that leads to truncation, but no exploitation details are disclosed. The risk depends on how the function is used in applications; it may cause unexpected behavior if the full string is required. The CVSS score of 3.3 indicates low impact.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Golang release that includes the NewNTUnicodeString integer overflow fix.
  • If an upgrade is impractical, validate the length of the string before calling NewNTUnicodeString to ensure it does not exceed the maximum NTUnicodeString size.
  • Review and audit code paths that use NewNTUnicodeString to confirm that truncated values will not introduce logic errors, and adjust logic if necessary.

Generated by OpenCVE AI on May 27, 2026 at 21:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-20
CWE-680
Type Values Removed Values Added
Weaknesses CWE-190
Metrics cvssV3_1

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

ssvc

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

Type Values Removed Values Added
First Time appeared Golang
Golang sys
Vendors & Products Golang
Golang sys
Type Values Removed Values Added
Weaknesses CWE-20
CWE-680
Type Values Removed Values Added
Description 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.
Title Invoking integer overflow in NewNTUnicodeString in golang.org/x/sys/windows
References
Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
May 27, 2026, 1:31 PM
Reserved
Apr 7, 2026, 6:13 PM
Status
Awaiting Analysis
Published
May 22, 2026, 8:16 PM
Modified
Jul 23, 2026, 4:10 PM