Skip to main content

golang.org/x/sys CVE-2026-39824

| EUVDEUVD-2026-31498 LOW
Integer Overflow or Wraparound (CWE-190)
2026-05-22 Go GHSA-4vpj-hr3r-4gpg
3.3
CVSS 3.1 · Vendor: Go
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local low-privilege access on Windows host
  2. Delivery
    Identify target Go application using NewNTUnicodeString
  3. Exploit
    Craft input string exceeding 65,535 bytes
  4. Execution
    Submit oversized string via application input path
  5. Persist
    NewNTUnicodeString silently truncates string without error
  6. Impact
    Application processes malformed string, bypassing length-dependent logic

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a local account with at least low privileges (PR:L, AV:L per CVSS vector) on a Windows system running a Go application compiled with golang.org/x/sys/windows prior to v0.44.0. The specific condition is that the application must call NewNTUnicodeString with an attacker-influenced input string whose UTF-16 encoded byte length exceeds 65,535 bytes (the 16-bit maximum for a UNICODE_STRING Length field). Exploitation is limited to Windows targets only - the affected code path is specific to the windows sub-package. Remote exploitation is not indicated by the CVSS vector (AV:L). The impact is confined to integrity (I:L) with no confidentiality or availability impact, limiting the blast radius even when conditions are met.

Impact

The CVSS 3.1 score of 3.3 (Low) is consistent with the constrained impact profile: AV:L requires local access, PR:L requires at least low-privilege execution on the target host, and the only scored impact is I:L (integrity). There is no confidentiality or availability impact, no scope change, and attack complexity is low once local access is achieved. EPSS at 0.02% (5th percentile) corroborates the assessment that mass exploitation is highly unlikely - the attack surface is limited to Windows applications that (1) use the golang.org/x/sys/windows package, (2) call NewNTUnicodeString, and (3) pass attacker-influenced strings exceeding 65,535 bytes without prior validation. The vulnerability is not listed in CISA KEV, and no POC has been identified. The primary real-world risk is integrity-affecting logic errors or security control bypasses in specific Windows Go applications, not direct system compromise. Overall, this is a genuine but low-priority finding whose severity depends heavily on how the consuming application handles the silently truncated result.

Exploit ScenarioDerived

A local attacker with a low-privilege account on a Windows host running a Go application that uses NewNTUnicodeString constructs an input string exceeding 65,535 bytes - for example via a filename, registry value, or IPC message - and passes it to the target application. The function silently wraps the length field and returns a truncated NTUnicodeString without signaling an error. If the application relies on the returned structure to enforce path restrictions, authentication tokens, or access control strings, the truncated value may bypass those checks. No public POC has been identified, so this scenario requires attacker knowledge of the specific code path.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 27, 2026

Integer overflow in NewNTUnicodeString within the Go extended syscall package for Windows allows a local low-privileged attacker to silently inject a truncated NTUnicodeString into applications that expect validation failures on oversized input. Affected is golang.org/x/sys/windows before version 0.44.0. Because the function returns a truncated result rather than an error, consuming code may proceed with a malformed string, potentially bypassing length-based security checks or causing downstream logic errors - no public exploit has been identified at time of analysis and EPSS exploitation probability is 0.02%.

RemediationAI

Vendor-released patch: golang.org/x/sys/windows v0.44.0. Upgrade by running 'go get golang.org/x/sys@v0.44.0' and rebuilding affected binaries; verify the fix is incorporated by checking go.sum and the module graph. The upstream code change is available at https://go.dev/cl/770080, and the announcement was distributed via the golang-announce mailing list at https://groups.google.com/g/golang-announce/c/6MMI8Lj-Atg. If an immediate upgrade is not possible, a compensating control is to add explicit length validation on any string passed to NewNTUnicodeString - reject or truncate inputs exceeding 32,767 UTF-16 code units (65,534 bytes) before the call. This workaround introduces application-layer complexity and must be applied at every call site, which is error-prone; upgrading to v0.44.0 is strongly preferred.

Affected VersionsENISA

golang.org/x/sys/windows 0 <0.44.0

Affected Packages

go golang.org/x/sys fix: 0.44.0
euvd golang_org_x_sys_windows fix: 0.44.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

golang.org/x/sys is the Go team's extended package for low-level OS syscall access; the windows sub-package provides wrappers for Windows-native data structures. NTUnicodeString is a Windows kernel structure (UNICODE_STRING) whose Length and MaximumLength fields are 16-bit unsigned integers, capping the representable byte count at 65,535. The function NewNTUnicodeString is responsible for constructing this structure from a Go string; CWE-190 (Integer Overflow or Wraparound) describes exactly this class of defect: when the input string's byte length exceeds 65,535, the 16-bit length field wraps around silently, yielding a structurally valid but content-truncated NTUnicodeString. The affected CPE is cpe:2.3:a:golang.org/x/sys:golang.org/x/sys/windows:*:*:*:*:*:*:*:* for all versions prior to 0.44.0.

Know when Golang Org X Sys Windows gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Go) PRIMARY 3.3 LOW
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Primary rating from Vendor (Go) · only source for this CVE.

CVSS VectorVendor: Go

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Lifecycle Timeline

3
CVSS changed
May 27, 2026 - 19:37 NVD
3.3 (LOW)
CVE Published
May 22, 2026 - 19:39 nvd
UNKNOWN (no severity yet)
CVE Published
May 22, 2026 - 19:39 nvd
LOW 3.3

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

16
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +16
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy