Security Vulnerability Report
中文
CVE-2025-68120 CVSS 5.4 MEDIUM

CVE-2025-68120

Published: 2025-12-30 00:15:52
Last Modified: 2026-01-06 16:17:17

Description

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

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L

Configurations (Affected Products)

cpe:2.3:a:go:go:*:*:*:*:*:visual_studio_code:*:* - VULNERABLE
Visual Studio Code Go extension < 1.0.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# 示例PoC - 恶意Go文件 package main import "os/exec" func main() { // 恶意代码示例 exec.Command("bash", "-c", "whoami > /tmp/pwned").Run() }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68120", "sourceIdentifier": "[email protected]", "published": "2025-12-30T00:15:52.333", "lastModified": "2026-01-06T16:17:16.943", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "To prevent unexpected untrusted code execution, the Visual Studio Code Go extension is now disabled in Restricted Mode."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:go:go:*:*:*:*:*:visual_studio_code:*:*", "versionEndExcluding": "0.52.1", "matchCriteriaId": "E55DE38E-7244-4EF6-B2D4-4035ADE3023C"}]}]}], "references": [{"url": "https://groups.google.com/g/golang-dev/c/CHG4qfcicBU/m/4tanFUymDQAJ", "source": "[email protected]", "tags": ["Mailing List"]}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-68120", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://pkg.go.dev/vuln/GO-2025-4249", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}