CVE-2024-54807 Command injection in n/a

Critical 9.8 Published Updated

Attackers can execute arbitrary commands on Netgear WNR854T routers via unsanitized UPNP AddPortMapping requests.

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-2024-54807?

CVE-2024-54807 is a critical command injection vulnerability in n/a, published on 31 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Netgear WNR854T 1.5.2 (North America), the UPNP service is vulnerable to command injection in the function addmap_exec which parses the NewInternalClient parameter of the AddPortMapping SOAPAction into a system call without sanitation. An attacker can send a specially crafted SOAPAction request for AddPortMapping via the router's WANIPConn1 service to achieve arbitrary command execution.

Weakness: CWE-94

Which versions are affected by CVE-2024-54807?

It affects 1 product.

Products include Netgear Wnr854t Firmware.

How do I fix CVE-2024-54807?

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

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

Sources

Also known as GHSA-8w2m-3cmp-47gw.

Is CVE-2024-54807 in your software?

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

Check your SBOMs for free