CVE-2024-5242: (Pwn2Own) TP-Link Omada ER605 Stack-based Buffer Overflow Remote Code Execution Vulnerability
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of TP-Link Omada ER605 routers. Authentication is not required to exploit this vulnerability. However, devices are vulnerable only if configured to use the Comexe DDNS service. The specific flaw exists within the handling of DDNS error codes. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of root.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
For TP-Link Omada ER605 devices, ensure they are not configured to use the Comexe DDNS service to avoid exposure to the vulnerability (ZDI-CAN-22522).
- Compensating control
Limit network-adjacent access to the router’s DDNS-related functionality/management interfaces (only allow trusted sources) to reduce the chance an attacker can trigger the DDNS error-code flaw (ZDI-CAN-22522).
Event History
Frequently Asked Questions
What is the severity of CVE-2024-5242?
CVE-2024-5242 is considered a high severity vulnerability due to the potential for arbitrary code execution by network-adjacent attackers.
How do I fix CVE-2024-5242?
To mitigate CVE-2024-5242, disable the Comexe DDNS service on the affected TP-Link Omada ER605 routers.
Who is affected by CVE-2024-5242?
CVE-2024-5242 affects installations of TP-Link Omada ER605 routers configured to use the Comexe DDNS service.
Is authentication required to exploit CVE-2024-5242?
No, authentication is not required to exploit CVE-2024-5242, making it easier for attackers to exploit the vulnerability.
What type of attacks does CVE-2024-5242 enable?
CVE-2024-5242 enables network-adjacent attackers to execute arbitrary code, potentially compromising the affected router.