CVE-2026-12197 Ruijie EG105G-P JSON-RPC Diagnose Endpoint diagnose nslookup command injection
Remote attackers can execute arbitrary commands on Ruijie EG105G-P routers via the JSON-RPC diagnose endpoint.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-12197?
CVE-2026-12197 is a high-severity command injection vulnerability in Ruijie EG105G-P, published on 14 Jun 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Which versions are affected by CVE-2026-12197?
How do I fix CVE-2026-12197?
No fix has been published for CVE-2026-12197 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-12197 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-12197 exists.
Sources
Also known as GHSA-f7mp-cw7j-wx85.