CVE-2021-4470 TG8 Firewall Unauthenticated RCE via runphpcmd.php

Critical 9.3 Published Updated

Unauthenticated attackers can execute arbitrary OS commands as root via the runphpcmd.php endpoint, leading to full device compromise.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-4470?

CVE-2021-4470 is a critical command injection vulnerability in TG8 Firewall, published on 14 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

TG8 Firewall contains a pre-authentication remote code execution vulnerability in the runphpcmd.php endpoint. The syscmd POST parameter is passed directly to a system command without validation and executed with root privileges. A remote, unauthenticated attacker can supply crafted values to execute arbitrary operating system commands as root, resulting in full device compromise.

Weakness: CWE-78

Which versions are affected by CVE-2021-4470?

How do I fix CVE-2021-4470?

No fix has been published for CVE-2021-4470 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-2021-4470 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-4470 exists.

Sources

Also known as GHSA-vqv4-pwx4-w694.

Is CVE-2021-4470 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free