Skip to main content

CVE-2025-4747: Bohua NetDragon Firewall RCE Vulnerability

CVE-2025-4747 is a critical command injection flaw in Bohua NetDragon Firewall 1.0 that enables remote code execution through the ip_status.php file. This article covers technical details, exploitation risks, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-4747 Overview

CVE-2025-4747 is a command injection vulnerability in Bohua NetDragon Firewall 1.0. The flaw resides in the /systemstatus/ip_status.php script, where the subnet parameter is passed to an underlying system command without proper sanitization. Remote attackers with low-privilege access can inject operating system commands through this parameter. The exploit details have been publicly disclosed, increasing the likelihood of opportunistic attacks against exposed devices. The vulnerability is tracked under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component.

Critical Impact

Authenticated remote attackers can execute arbitrary operating system commands on the firewall appliance by manipulating the subnet parameter, potentially compromising network perimeter security.

Affected Products

  • Bohua NetDragon Firewall 1.0
  • Component: /systemstatus/ip_status.php
  • Vulnerable parameter: subnet

Discovery Timeline

  • 2025-05-16 - CVE-2025-4747 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-4747

Vulnerability Analysis

The vulnerability is a command injection flaw in the IP status reporting feature of the Bohua NetDragon Firewall. The ip_status.php endpoint accepts a subnet argument from HTTP requests and incorporates it into a shell command executed on the host. Because the application does not neutralize shell metacharacters, attackers can append additional commands using standard operators such as ;, |, &&, or backticks. Successful injection runs with the privileges of the web service account, which on embedded firewall appliances is frequently root or an equally privileged system user.

Root Cause

The root cause is improper neutralization of special elements passed to a downstream shell interpreter [CWE-74]. The subnet parameter is concatenated into a command string, likely invoked through functions such as system(), exec(), or shell_exec() in PHP, without input validation or safe parameterization. Any request containing shell control characters bypasses the intended logic and executes attacker-controlled commands.

Attack Vector

The attack is network-reachable and requires authenticated access to the firewall management interface. An attacker sends a crafted HTTP request to /systemstatus/ip_status.php with a malicious subnet value containing shell metacharacters and injected commands. Because firewall management interfaces are often exposed to internal networks or, in misconfigured deployments, to the internet, the attack surface can extend beyond administrators. Full technical details and proof-of-concept notes are tracked in the public GitHub issue and the VulDB entry.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2025-4747

Indicators of Compromise

  • HTTP requests to /systemstatus/ip_status.php containing shell metacharacters such as ;, |, &, $(, or backticks in the subnet parameter.
  • Unexpected child processes spawned by the firewall's web server process, especially shell interpreters, wget, curl, or nc.
  • Outbound network connections from the firewall appliance to unknown hosts shortly after HTTP requests to the vulnerable endpoint.
  • New or modified files in web-writable directories or persistence locations on the appliance.

Detection Strategies

  • Deploy web application firewall rules that inspect POST and GET parameters to ip_status.php for shell metacharacters and known command-injection patterns.
  • Monitor process ancestry on the firewall host for shell processes whose parent is the HTTP daemon serving PHP.
  • Alert on anomalous DNS resolutions or egress traffic originating from the management plane of the firewall.

Monitoring Recommendations

  • Centralize web server access logs and shell audit logs from network appliances into a SIEM for correlation.
  • Create detection content that joins HTTP requests containing subnet= with subsequent process execution events on the same host.
  • Review authentication logs for the firewall management interface to identify suspicious low-privilege account activity.

How to Mitigate CVE-2025-4747

Immediate Actions Required

  • Restrict access to the firewall management interface to a dedicated management VLAN and trusted administrative IP addresses only.
  • Audit all accounts on the Bohua NetDragon Firewall and disable or rotate credentials for low-privilege accounts that do not require access.
  • Review web server and system logs for any prior requests to /systemstatus/ip_status.php containing shell metacharacters.
  • Contact Bohua support to confirm patch availability and request a fixed firmware release.

Patch Information

At the time of publication, no vendor patch or security advisory from Bohua has been linked in the public CVE record. Administrators should monitor the VulDB entry for CVE-2025-4747 and vendor channels for updates. Until a fix is released, treat the appliance as exposed and apply compensating controls.

Workarounds

  • Place the firewall management interface behind a VPN or jump host and block direct access from user networks and the internet.
  • Use network ACLs to allow HTTP(S) access to /systemstatus/ip_status.php only from administrator workstations.
  • Where feasible, disable the IP status feature or the containing module until a vendor patch is available.
  • Deploy an inline WAF or reverse proxy to filter requests to the vulnerable endpoint and strip shell metacharacters from the subnet parameter.
bash
# Example nginx reverse-proxy rule to block shell metacharacters in the subnet parameter
location /systemstatus/ip_status.php {
    if ($arg_subnet ~* "[;|&`$()<>\\]") {
        return 403;
    }
    proxy_pass http://netdragon-firewall-backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.