CVE-2026-12197 Details
Description
A security flaw has been discovered in Ruijie EG105G-P 2.340. The impacted element is the function nslookup of the file /cgi-bin/luci/api/diagnose of the component JSON-RPC Diagnose Endpoint. Performing a manipulation of the argument params.target results in command injection. It is possible to initiate the attack remotely. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
A command injection vulnerability has been identified in the Ruijie Reyee EG105G-P switch, specifically in the JSON-RPC diagnose endpoint. The issue arises in the 'nslookup' method, where the 'params.target' parameter is not properly sanitized before being executed as a shell command. This flaw allows authenticated attackers to inject additional commands, which are executed with the privileges of the LuCI backend process. The vulnerability can be exploited remotely, and evidence of the command execution can be retrieved through an outbound HTTP callback.
Ruijie should revise the command construction for the 'nslookup' method to eliminate shell injection risks. This can be achieved by using safer execution methods that do not involve shell command concatenation, applying strict validation to ensure only legitimate IP addresses or hostnames are accepted, and removing control characters from diagnostic parameters. Additionally, all shell arguments should be properly quoted to prevent injection, and regression tests should be implemented to catch similar issues in the future.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 15, 2026CISA-ADP
Assessed Jun 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ictrun/java/issues/6 | [email protected] | ExploitIssue TrackingTechnical Description |
| https://vuldb.com/cve/CVE-2026-12197 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/829253 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/370840 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/370840/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Ruijie Reyee EG105G-P | ReyeeOS 2.340 EG_3.0(1)B11P340 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 15, 2026 | New CVE Received | [email protected] |
Volerion