CVE-2024-5291: (0Day) D-Link DIR-2150 GetDeviceSettings Target Command Injection Remote Code Execution Vulnerability
D-Link DIR-2150 GetDeviceSettings Target Command Injection Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DIR-2150 routers. Authentication is not required to exploit this vulnerability.
The specific flaw exists within the SOAP API interface, which listens on TCP port 80 by default. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-21235.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Restrict network access to the D-Link DIR-2150 SOAP API interface that listens on TCP port 80 by default, e.g., limit inbound access to trusted management sources only.
- Compensating control
Because authentication is not required to exploit the vulnerability, ensure the SOAP API endpoint is not exposed to untrusted networks (e.g., do not allow direct WAN/Internet access).
Event History
Frequently Asked Questions
What is the severity of CVE-2024-5291?
CVE-2024-5291 is classified as a critical severity vulnerability due to its potential for remote code execution without authentication.
How do I fix CVE-2024-5291?
To fix CVE-2024-5291, update your D-Link DIR-2150 router to the latest firmware version provided by D-Link.
Who can exploit CVE-2024-5291?
CVE-2024-5291 can be exploited by network-adjacent attackers, which means attackers in the local network can potentially exploit this vulnerability.
What is the impact of CVE-2024-5291?
The impact of CVE-2024-5291 includes the ability for attackers to execute arbitrary code on vulnerable D-Link DIR-2150 routers.
Does CVE-2024-5291 require authentication to exploit?
No, CVE-2024-5291 does not require authentication for exploitation.