CVE-2026-39824: CWE-190: Integer Overflow or Wraparound in golang.org/x/sys golang.org/x/sys/windows
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.
AI Analysis
Technical Summary
The vulnerability in golang.org/x/sys/windows (CVE-2026-39824) involves the NewNTUnicodeString function failing to validate the length of input strings against the maximum size allowed by the NTUnicodeString structure, which uses a 16-bit length field. When an input string length exceeds this maximum, the function truncates the string silently rather than returning an error, leading to an integer overflow or wraparound condition. This can result in unexpected behavior or data integrity issues in applications relying on this function for Unicode string handling on Windows systems.
Potential Impact
The impact is limited to potential integrity issues caused by truncated strings where the length overflow occurs. There is no direct impact on confidentiality or availability. The CVSS score of 3.3 (low) reflects that the vulnerability requires local access with low privileges and does not allow user interaction or elevate privileges. No known exploits are reported in the wild.
Mitigation Recommendations
No official patch or remediation level has been published yet. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, developers should avoid passing strings that could exceed the 16-bit length limit to NewNTUnicodeString or implement additional length checks in their code to prevent overflow conditions.
CVE-2026-39824: CWE-190: Integer Overflow or Wraparound in golang.org/x/sys golang.org/x/sys/windows
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.
CVSS v3.1
Score 3.3low
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in golang.org/x/sys/windows (CVE-2026-39824) involves the NewNTUnicodeString function failing to validate the length of input strings against the maximum size allowed by the NTUnicodeString structure, which uses a 16-bit length field. When an input string length exceeds this maximum, the function truncates the string silently rather than returning an error, leading to an integer overflow or wraparound condition. This can result in unexpected behavior or data integrity issues in applications relying on this function for Unicode string handling on Windows systems.
Potential Impact
The impact is limited to potential integrity issues caused by truncated strings where the length overflow occurs. There is no direct impact on confidentiality or availability. The CVSS score of 3.3 (low) reflects that the vulnerability requires local access with low privileges and does not allow user interaction or elevate privileges. No known exploits are reported in the wild.
Mitigation Recommendations
No official patch or remediation level has been published yet. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, developers should avoid passing strings that could exceed the 16-bit length limit to NewNTUnicodeString or implement additional length checks in their code to prevent overflow conditions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Go
- Date Reserved
- 2026-04-07T18:13:03.527Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a10b5b4e1370fbb4848af4e
Added to database: 05/22/2026, 19:59:48 UTC
Last enriched: 05/29/2026, 20:21:14 UTC
Last updated: 07/12/2026, 07:47:31 UTC
Views: 114
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.