CVE-2024-54887 Memory corruption in n/a
An authenticated attacker can execute arbitrary code with root privileges on TP-Link TL-WR940N routers via a buffer overflow in DNS configuration parameters.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-54887?
CVE-2024-54887 is a high-severity memory corruption vulnerability in n/a, published on 9 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
TP-Link TL-WR940N V3 and V4 with firmware 3.16.9 and earlier contain a buffer overflow via the dnsserver1 and dnsserver2 parameters at /userRpm/Wan6to4TunnelCfgRpm.htm. This vulnerability allows an authenticated attacker to execute arbitrary code on the remote device in the context of the root user.
Weakness: CWE-120
Which versions are affected by CVE-2024-54887?
It affects 1 product.
Products include Tp-Link Tl-Wr940n Firmware.
How do I fix CVE-2024-54887?
No fix has been published for CVE-2024-54887 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-54887 being exploited?
There is no known exploitation of CVE-2024-54887 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in n/a
- CVE-2023-36355 Memory corruption in n/a
- CVE-2022-24355 Memory corruption in TL-WR940N
- CVE-2019-6989 Memory corruption in n/a
- CVE-2026-11409 OS Command Injection in IPv6 PPPoE Configuration in TP-Link TL-WR940N
- CVE-2026-11410 OS Command Injection in BigPond Cable (BPA) Configuration in TP-Link TL-WR940N
Sources
Also known as GHSA-qf55-97mm-vqcj.