CVE-2013-10058 Linksys Routers apply.cgi Remote Command Injection

High 8.6 Published Updated

Authenticated attackers can inject shell commands via the ping_size parameter in Linksys routers, leading to remote code execution.

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-2013-10058?

CVE-2013-10058 is a high-severity command injection vulnerability in Linksys WRT160nv2, published on 1 Aug 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

An authenticated OS command injection vulnerability exists in various Linksys router models (tested on WRT160Nv2) running firmware version v2.0.03 via the apply.cgi endpoint. The web interface fails to properly sanitize user-supplied input passed to the ping_size parameter during diagnostic operations. An attacker with valid credentials can inject arbitrary shell commands, enabling remote code execution.

Weakness: CWE-78

Which versions are affected by CVE-2013-10058?

How do I fix CVE-2013-10058?

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

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

Public exploit code: 1 Metasploit module.

Sources

Also known as GHSA-gg53-3xxr-77gw.

Is CVE-2013-10058 in your software?

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

Check your SBOMs for free