Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2022-24355: TP-Link TL-WR940N httpRpmFs Stack-based Buffer Overflow RCE

Published Feb 18, 2022 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3.1
EPSS2.1%82nd percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
TP-Link
IdentifiersCVE-2022-24355CWE-121 · Stack-based Buffer Overflow

CVE-2022-24355 is a stack-based buffer overflow in TP-Link TL-WR940N routers, affecting at least firmware 3.20.1 Build 200316 Rel.34392n (5553). The flaw exists in the httpd component, specifically the httpRpmFs functionality, during parsing of file name extensions. User-supplied data is copied into a fixed-length stack buffer without proper validation of input length, allowing an overlong extension value to overflow the stack. The issue is reachable by a network-adjacent attacker and does not require authentication. Successful exploitation can result in arbitrary code execution as root.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows unauthenticated network-adjacent attackers to achieve remote code execution on the router with root privileges. Given the execution context, an attacker can fully compromise the device, alter configuration, intercept or manipulate traffic, deploy malware or botnet payloads, and disrupt availability.

Mitigation

If you can’t patch tonight, do this now.

Restrict access to the router management interface and vulnerable HTTP service to trusted administrative networks only. Disable remote/WAN-side management exposure where possible, segment management access, and place the device behind appropriate network controls. Monitor for signs of compromise and isolate potentially affected devices until patched or replaced.

Remediation

Patch, then assume compromise.

TP-Link fixed the vulnerability in firmware version 211111. Affected devices should be upgraded to the vendor-fixed firmware or a later supported release. If the product is end-of-life or no supported fixed firmware is available, the device should be replaced with a supported model.

Public exploits

Exploits

2 exploits validated by Mallory's analysis.

View more in app →
CVE-2022-24355The repository contains two standalone Python exploit scripts totaling 13,036 supplied source bytes, with embedded big-endian MIPS machine code. No README, vendor identification, product version, CVE, repository URL, or revision is supplied. Archive size is unavailable; the zero value is a placeholder, not a measured archive size. Both scripts attempt a stack buffer overflow through a binary Cookie header in GET /loginFs/passwd. exp.py overwrites control flow using a fixed stack address. exp_with_sleep.py builds a libc-based ROP chain using five fixed gadgets and a sleep function address before entering the same encoded reverse-shell payload. Comments also preserve an unencoded shellcode example and an inactive pwntools encoder invocation. Pwntools supplies exploitation utilities but these are not modules for a larger exploit framework. The payload is intended to establish an interactive shell back to 192.168.1.2:31337. This is an exploitation attempt, not a vulnerability detector, and no unrelated destructive or exfiltration behavior is evident. The particular vulnerable product cannot be established from the supplied files. Reliability limitations are significant: both scripts wait for a callback before sending the triggering request, potentially consuming the listener timeout prematurely. In exp_with_sleep.py, the variable sleep is overwritten with an integer function address, so the later Python call sleep(5) raises TypeError before c.interactive(). Hardcoded addresses and Python 2-style socket data further limit portability. These issues do not establish that the exploit is fake, but successful exploitation is unverified.ExLuck · Disclosed Mar 23, 2022 · python · mips assembly · network · webOperationalCVE-2022-24355This repository is a small, single-purpose exploit repo containing one Python exploit script and a short README. The main file, CVE-2022-24355.py, is a pwntools-based remote code execution exploit for TP-Link WR841 v10 targeting CVE-2022-24355. It sets pwntools context for a 32-bit big-endian MIPS target, defines hardcoded ROP gadgets and function/string addresses, generates MIPS shellcode, and embeds the resulting payload into an HTTP Cookie header. The exploit sends a raw HTTP GET request to /loginFs/passwd on 192.168.0.1:80 with Host and Referer headers also pointing to 192.168.0.1. After triggering the overflow/control-flow hijack, it waits briefly, then connects to a bind shell on port 4444 and drops into interactive mode. The shellcode uses a listen socket on 4444, dup2 redirection for standard streams, and system('/bin/sh') for command execution. The exploit is operational rather than a simple detector because it includes a complete payload and post-exploitation connection logic, but it is not highly generalized: target IP, ports, gadget addresses, and runtime assumptions are hardcoded, indicating firmware/version specificity. The README only identifies the target and labels the code as a proof of concept.ilizavr · Disclosed Jul 30, 2026 · python · markdown · network · webOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
TP-LinkTl-Wr940n Firmwareoperating_system
FAQ

Frequently asked questions

Is CVE-2022-24355 exploited in the wild?
As of Oct 16, 2026, Mallory has no reports of CVE-2022-24355 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2022-24355?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2022-24355, the earliest disclosed Mar 23, 2022.
Is there a patch for CVE-2022-24355?
TP-Link fixed the vulnerability in firmware version 211111. Affected devices should be upgraded to the vendor-fixed firmware or a later supported release.
What products are affected by CVE-2022-24355?
TP-Link Tl-Wr940n Firmware.
How severe is CVE-2022-24355?
CVE-2022-24355 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 2.1% (82nd percentile) as of Oct 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware2Malware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.