Privilege escalation in Go programming language

Published: 2022-11-17
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2022-41716
Exploitation vector Local
Public exploit N/A
Vulnerable software
Go programming language
Universal components / Libraries / Scripting languages

Vendor Google

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Input validation error

EUVDB-ID: #VU69405

Risk: Low


CVE-ID: CVE-2022-41716

CWE-ID: CWE-20 - Improper Input Validation

Exploit availability: No


The vulnerability allows a local user to execute arbitrary OS commands on the system.

The vulnerability exists due to insecure processing of unsanitized NUL values in syscall.StartProcess and os/exec.Cmd. A local user on the Windows operating system can set a specially crafted environment variable and execute arbitrary OS commands on the system.


Install updates from vendor's website.

Vulnerable software versions

Go programming language: 1.19 - 1.19.2, 1.18 - 1.18.7

CPE2.3 External links

Q & A

Can this vulnerability be exploited remotely?

Is there known malware, which exploits this vulnerability?