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

CVE-2026-30303

Published: 2026-03-27 15:16:53
Last Modified: 2026-04-02 17:24:04

Description

The command auto-approval module in Axon Code contains an OS Command Injection vulnerability, rendering its whitelist security mechanism ineffective. The vulnerability stems from the incorrect use of an incompatible command parser (the Unix-based shell-quote library) to analyze commands on the Windows platform, coupled with a failure to correctly handle Windows CMD-specific escape sequences (^). Attackers can exploit this discrepancy between the parsing logic and the execution environment by constructing payloads such as git log ^" & malicious_command ^". The Axon Code parser is deceived by the escape characters, misinterpreting the malicious command connector (&) as being within a protected string argument and thus auto-approving the command. However, the underlying Windows CMD interpreter ignores the escaped quotes, parsing and executing the subsequent malicious command directly. This allows attackers to achieve arbitrary Remote Code Execution (RCE) after bypassing what appears to be a legitimate Git whitelist check.

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:matterai:axon_code:*:*:*:*:*:*:*:* - VULNERABLE
Axon 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-30303 # Target: Axon Code on Windows # Description: Exploiting the parser mismatch to bypass the whitelist. # The payload uses the caret (^) to escape the quote in the parser's logic, # but Windows CMD interprets it differently. PAYLOAD = 'git log ^" & whoami ^"' # Alternatively, to write a file or establish a reverse shell: # PAYLOAD = 'git log ^" & echo pwned > c:\\pwn.txt ^"' print(f"[+] Sending payload to Axon Code auto-approval module: {PAYLOAD}") # In a real exploit, this would be sent via the vulnerable API endpoint.

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-30303", "sourceIdentifier": "[email protected]", "published": "2026-03-27T15:16:52.513", "lastModified": "2026-04-02T17:24:03.950", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "The command auto-approval module in Axon Code contains an OS Command Injection vulnerability, rendering its whitelist security mechanism ineffective. The vulnerability stems from the incorrect use of an incompatible command parser (the Unix-based shell-quote library) to analyze commands on the Windows platform, coupled with a failure to correctly handle Windows CMD-specific escape sequences (^). Attackers can exploit this discrepancy between the parsing logic and the execution environment by constructing payloads such as git log ^\" & malicious_command ^\". The Axon Code parser is deceived by the escape characters, misinterpreting the malicious command connector (&) as being within a protected string argument and thus auto-approving the command. However, the underlying Windows CMD interpreter ignores the escaped quotes, parsing and executing the subsequent malicious command directly. This allows attackers to achieve arbitrary Remote Code Execution (RCE) after bypassing what appears to be a legitimate Git whitelist check."}], "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:matterai:axon_code:*:*:*:*:*:*:*:*", "versionEndIncluding": "4.123.1", "matchCriteriaId": "C22FA693-0B24-4698-9228-E2243A995A06"}]}]}], "references": [{"url": "https://github.com/Secsys-FDU/LLM-Tool-Calling-CVEs/issues/6", "source": "[email protected]", "tags": ["Issue Tracking"]}, {"url": "https://www.matterai.so/", "source": "[email protected]", "tags": ["Product"]}]}}