CVE-2026-39824: CWE-190: Integer Overflow or Wraparound in golang.org/x/sys golang.org/x/sys/windows
CVE-2026-39824 is an integer overflow vulnerability in the NewNTUnicodeString function of the golang. org/x/sys/windows package. The function does not properly check for string length overflow when creating an NTUnicodeString, which uses a 16-bit length field. If a string exceeding the maximum size is provided, the function returns a truncated string instead of an error. This behavior could lead to unexpected handling of string data.
AI Analysis
Technical Summary
The vulnerability exists in the NewNTUnicodeString function within the golang.org/x/sys/windows package. It fails to validate that the input string length fits within the 16-bit size limit of an NTUnicodeString. When an oversized string is passed, the function truncates the string silently rather than signaling an error condition. This is classified as a CWE-190 integer overflow or wraparound issue.
Potential Impact
The impact is that applications using this function may receive truncated strings without error notification, potentially causing logic errors or incorrect processing of string data. There is no indication of direct memory corruption or code execution from the available data. No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, developers should implement additional validation on string lengths before passing them to NewNTUnicodeString to prevent overflow conditions.
CVE-2026-39824: CWE-190: Integer Overflow or Wraparound in golang.org/x/sys golang.org/x/sys/windows
Description
CVE-2026-39824 is an integer overflow vulnerability in the NewNTUnicodeString function of the golang. org/x/sys/windows package. The function does not properly check for string length overflow when creating an NTUnicodeString, which uses a 16-bit length field. If a string exceeding the maximum size is provided, the function returns a truncated string instead of an error. This behavior could lead to unexpected handling of string data.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the NewNTUnicodeString function within the golang.org/x/sys/windows package. It fails to validate that the input string length fits within the 16-bit size limit of an NTUnicodeString. When an oversized string is passed, the function truncates the string silently rather than signaling an error condition. This is classified as a CWE-190 integer overflow or wraparound issue.
Potential Impact
The impact is that applications using this function may receive truncated strings without error notification, potentially causing logic errors or incorrect processing of string data. There is no indication of direct memory corruption or code execution from the available data. No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, developers should implement additional validation on string lengths before passing them to NewNTUnicodeString 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: 5/22/2026, 7:59:48 PM
Last enriched: 5/22/2026, 8:14:58 PM
Last updated: 5/22/2026, 9:09:45 PM
Views: 3
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.