Buffer Overflow in TP-Link Routers Allowing Code Execution
Key Information:
- Vendor
TP-Link
- Status
- CVE ID
- CVE ID:
- CVE-2024-54887
- Vendor
- CVE Published:
- 9 January 2025
Timeline
Exploit known 12 days after it was published
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
- ๐ฐ
First article discovered by GBHackers News
Vulnerability published
Badges
How risky is it?
- No: Needs adjacent network access
- Yes: Public exploit code (1 proof-of-concept)
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Patch this week
Exploitation is likely. Prioritise the fix.
What to do
1Check the vendor's fix
No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.
2Look for signs of compromise
Exploit code is public, so check logs on exposed Tl-wr940n Firmware systems for unusual requests or new processes from before you patched. The 1 public proof-of-concept show what an attack looks like.
3Why it's rated "Patch this week"
- Exploit code is public, so attacks are easy to copy.
- Its CVSS severity is high (8).
What is CVE-2024-54887?
CVE-2024-54887 is a vulnerability in the TP-Link TL-WR940N router, specifically affecting hardware versions 3 and 4 with firmware 3.16.9 and earlier. The flaw is a buffer overflow that occurs via the dnsserver1 and dnsserver2 parameters in the /userRpm/Wan6to4TunnelCfgRpm.htm endpoint. An authenticated attacker can exploit this vulnerability to execute arbitrary code on the device with root privileges.
The vulnerability has been exploited in the wild, and it allows attackers to manipulate the execution flow of the router by sending specially crafted HTTP requests that overflow the buffer used for DNS server settings.
Potential Impact of CVE-2024-54887
-
Arbitrary Code Execution: An attacker can execute arbitrary code on the router, potentially gaining full control over the device and its network.
-
Network Compromise: Successful exploitation may lead to unauthorized access to connected devices and data breaches within the network.
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
News Articles
PoC Exploit released for TP-Link Code Execution Vulnerability(CVE-2024-54887)
A researcher has successfully identified a critical vulnerability in the TP-Link TL-WR940N router.
PoC Exploit released for TP-Link Code Execution Vulnerability(CVE-2024-54887)
A serious code execution vulnerability in the TP-Link TL-WR940N router, identified as CVE-2024-54887, PoC exploit.
References
More TP-Link Vulnerabilities
Stack-based Buffer Overflow in TP-Link Archer AX50 Router
Hardcoded Password Vulnerability in TP-Link Router
Authentication Bypass in TP-Link WR840N v6 Router
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction