# CVE-2025-68120: To prevent unexpected untrusted code execution, the Visual Studio Code Go extension is now disabled in Restricted Mode.

Source: https://junglewise.ai/threats/cve-2025-68120-visual-studio-code-go-extension-has-unexpected-untrusted-code  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-12-30  
License: CC BY 4.0 with a link back

CVE-2025-68120 · Severity: medium · CVSS 5.4 · Published 2025-12-30

To prevent unexpected untrusted code execution, the Visual Studio Code Go extension is now disabled in Restricted Mode.

Technologies: [go (Go)](https://junglewise.ai/threats/technologies/go). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2025-68120 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-68120 being exploited in the wild.

**How severe is CVE-2025-68120?** Medium severity, with a CVSS score of 5.4, published 30 December 2025.

**Which products and versions are affected?** github.com/golang/vscode-go (Go) SEMVER:introduced=0,fixed=0.52.1.

**Is there a fix for CVE-2025-68120?** Yes. github.com/golang/vscode-go (Go): upgrade to 0.52.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-68120?** Check whether you run github.com/golang/vscode-go (Go) or go (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/golang/vscode-go (Go): upgrade to 0.52.1 or later

  ```sh
  go get github.com/golang/vscode-go@v0.52.1
  ```


## Affected products

- github.com/golang/vscode-go (Go) SEMVER:introduced=0,fixed=0.52.1
- go (Go)

## Identifiers

- CVE-2025-68120
- GHSA-fjmr-7667-8v4p
- GO-2025-4249

## Related threats

- [Go command unsafe pkg-config flag handling in cgo](https://junglewise.ai/threats/cve-2026-97039-building-a-malicious-package-that-uses-cgo-pkg-config-directives)
- [Go linker code injection via malicious package compilation](https://junglewise.ai/threats/cve-2026-97038-building-a-malicious-package-containing-syso-files-or-cgo-linker)
- [Go arbitrary code execution via malicious cgo linker flags](https://junglewise.ai/threats/cve-2026-97037-building-a-malicious-package-that-uses-cgo-could-cause-arbitrary)
- [Go cgo arbitrary code execution via Apple linker argument injection](https://junglewise.ai/threats/cve-2026-97036-on-darwin-building-a-malicious-package-that-uses-cgo-could-cause)
- [Go cgo arbitrary code execution via compiler flags](https://junglewise.ai/threats/cve-2026-97033-building-a-malicious-package-that-uses-cgo-could-cause-arbitrary)
