A buffer overflow vulnerability exists in the apply.cgi component of Linksys WRT54G firmware versions 3.01.03, 3.03.6, and possibly other versions prior to 4.20.7. The vulnerability is triggered by sending a long HTTP POST request to apply.cgi, which can overflow a buffer and allow remote attackers to execute arbitrary code on the device.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).
This repository contains a single Metasploit module (modules/exploits/linux/http/linksys_apply_cgi.rb) that exploits a stack buffer overflow vulnerability in the /apply.cgi endpoint of Linksys WRT54G and WRT54GS routers (CVE-2005-2799). The exploit works by sending a specially crafted HTTP POST request to the /apply.cgi endpoint, overflowing a buffer and overwriting function pointers to execute arbitrary code (payload) on the device. The module is written in Ruby and leverages the Metasploit framework's HttpClient mixin. The payload is customizable and supports MIPSLE architecture, allowing for various post-exploitation actions such as spawning a shell. The default target IP is set to 192.168.1.1, which is typical for these routers. The exploit is operational and can be used to gain remote code execution on vulnerable devices.
This repository contains a single Metasploit module (modules/exploits/linux/http/linksys_wrt54gl_apply_exec.rb) targeting Linksys WRT54GL routers vulnerable to authenticated OS command injection via the web interface's apply.cgi endpoint (CVE-2005-2799). The exploit requires valid credentials (default: admin/admin or admin/password) and the router's WAN protocol to be set to DHCP. The module allows the attacker to execute arbitrary shell commands or upload and execute a MIPS ELF payload, providing remote code execution as root. The exploit interacts with the router's HTTP interface, specifically the /apply.cgi and /index.asp endpoints, and manages payload delivery and execution via temporary files on the device. The code is written in Ruby and is designed to be used within the Metasploit framework. The module also attempts to restore the original router configuration after exploitation to minimize impact.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.