Skip to content
Threat Feed
high advisory

Remote OS Command Injection in Baicells EG3661M LuCI Interface

The Baicells EG3661M router running firmware BaiCE_BQ6_2.0.5.3_NA is vulnerable to unauthenticated or privileged OS command injection via the LuCI web interface.

CVE search metadata

CVE search record: CVE-2026-19771. Severity: high. CVSS: 7.2. KEV: no. Product: EG3661M. Brief: Remote OS Command Injection in Baicells EG3661M LuCI Interface. Brief link: https://feed.craftedsignal.io/briefs/2026-08-baicells-rce/

A remote OS command injection vulnerability (CVE-2026-19771) has been identified in the Baicells EG3661M wireless router, specifically affecting firmware version BaiCE_BQ6_2.0.5.3_NA. The flaw exists within the LuCI web interface component, specifically within the /cgi-bin/luci file. An attacker can trigger this vulnerability by manipulating specific input arguments, namely 'MaxHops', 'Timeout', or 'Size'. Successful exploitation allows for the execution of arbitrary operating system commands on the affected device. Public exploit code for this vulnerability is available, and the vendor has not provided a response or a patch as of the time of disclosure.

Attack Chain

  1. The attacker identifies an internet-facing Baicells EG3661M device running the vulnerable firmware.
  2. The attacker navigates to the management interface hosted on the device.
  3. The attacker prepares a crafted HTTP request targeting the /cgi-bin/luci endpoint.
  4. The attacker injects malicious shell metacharacters into one of the vulnerable parameters: MaxHops, Timeout, or Size.
  5. The web server process, executing with elevated privileges, improperly sanitizes the input before passing it to a system call.
  6. The injected OS command is executed by the router's underlying operating system.
  7. The attacker achieves persistent remote command execution to perform further malicious actions, such as configuration modification or credential theft.

Impact

Successful exploitation results in full control over the affected Baicells EG3661M device. Given that these are routing and networking appliances, impact includes potential interception of network traffic, device bricking, or utilization of the router as a pivot point within the local network.

Recommendation

Prioritize the isolation of the management interface of all Baicells EG3661M devices from the public internet. Ensure the management interface is only accessible via a secure, private network or VPN. Since the vendor has not provided a patch, consider upgrading to an alternative hardware solution or strictly enforcing access control lists (ACLs) to restrict access to the /cgi-bin/luci endpoint.


Immediate actions

Restrict access to the management interface for Baicells EG3661M routers

IT Operations 24h

Threat Hunt

Search web logs for requests to /cgi-bin/luci containing ; or &

T1190 high high confidence hunt now

Data: Web access logs

Mitigations

Firewall rule to block external access to device management ports

immediate IT Operations

CVE-2026-19771

Detection coverage 1

Detects CVE-2026-19771 Exploitation - OS Command Injection in LuCI

high

Detects attempts to exploit CVE-2026-19771 by sending HTTP requests to /cgi-bin/luci containing shell metacharacters in specific parameters.

sigma tactics: execution, initial_access techniques: T1059, T1190 sources: webserver

Detection queries are available on the platform. Get full rules →