CVE-2025-68120: 
Go vulnerability analysis and mitigation

Overview

CVE-2025-68120 is a code injection vulnerability in the Visual Studio Code Go extension (github.com/golang/vscode-go) that allows unexpected untrusted code execution. All versions prior to 0.52.1 are affected. The vulnerability was disclosed on December 29–30, 2025, with a patch released in version 0.52.1. It carries a CVSS v3.1 base score of 5.4 (Medium), as assessed by CISA-ADP (GitHub Advisory, Red Hat).

Technical details

The root cause is classified as CWE-94 (Improper Control of Generation of Code / Code Injection), where the VS Code Go extension fails to properly restrict code execution when operating in VS Code's Restricted Mode — a sandboxed environment intended to prevent untrusted workspace code from running (GitHub Advisory). An attacker with low-level network access and authenticated (low-privilege) access can trigger untrusted code execution without requiring user interaction. The fix disables the extension entirely when VS Code is operating in Restricted Mode, preventing the vulnerable execution path (Go Vuln DB, Golang Dev Mailing List).

Impact

Successful exploitation results in low-level confidentiality impact (partial data exposure) and availability degradation on the affected system, with no integrity impact. The attack requires low privileges and no user interaction, making it relatively straightforward to attempt against systems where the vulnerable extension is installed and network-accessible. Lateral movement potential is limited given the constrained impact scope, but unauthorized code execution in a developer environment could expose source code, credentials, or build artifacts (GitHub Advisory, Red Hat).

Exploitability

There is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation as of the time of disclosure (Red Hat). The EPSS score is approximately 0.022–0.024%, placing it in the 7th percentile for exploitation likelihood within 30 days (GitHub Advisory). The CVE is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. A GitHub repository (choewonwoo1817/CVE-2025-68120) referencing this CVE was noted in tracking data, though no weaponized exploit code has been confirmed.

Mitigation and workarounds

Update the Visual Studio Code Go extension (github.com/golang/vscode-go) to version 0.52.1 or later, which disables the extension in Restricted Mode to prevent untrusted code execution (GitHub Advisory, Go Vuln DB). As an interim workaround, enable VS Code's Restricted Mode for untrusted workspaces to limit the extension's ability to execute code. Administrators should audit developer environments running affected versions and review any recent unexpected code execution events.

Community reactions

The vulnerability received routine coverage across vulnerability tracking platforms and security community feeds, including mentions on Mastodon (infosec.exchange) and Bluesky shortly after disclosure (Feedly). Red Hat acknowledged the CVE and published a tracking entry (Red Hat). SUSE also issued a govulncheck advisory referencing this CVE. Overall community sentiment reflects low urgency given the moderate severity, absence of a public PoC, and availability of a straightforward patch.

Additional resources


Source: This report was generated using AI

Related Go vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-97032HIGH7.5
  • Go logoGo
  • gitlab-kas-19.2
NoYesOct 08, 2026
CVE-2026-97031HIGH7.5
  • Go logoGo
  • terraform-fips-1.13
NoYesOct 08, 2026
CVE-2026-111943MEDIUM6.8
  • Go logoGo
  • kubedock
NoYesOct 21, 2026
CVE-2026-97030MEDIUM6.1
  • Go logoGo
  • wait-for-port
NoYesOct 08, 2026
CVE-2026-94448MEDIUM6.1
  • Go logoGo
  • buildah-tests
NoYesOct 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management