VYPR
Unrated severityNVD Advisory· Published Feb 2, 2023· Updated Mar 27, 2025

CVE-2022-46552

CVE-2022-46552

Description

D-Link DIR-846 Firmware FW100A53DBR was discovered to contain a remote command execution (RCE) vulnerability via the lan(0)_dhcps_staticlist parameter. This vulnerability is exploited via a crafted POST request.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

D-Link DIR-846 firmware FW100A53DBR has an authenticated RCE via the lan(0)_dhcps_staticlist parameter due to improper input sanitization in SetIpMacBindSettings.php.

Vulnerability

The vulnerability resides in the SetIpMacBindSettings.php file (line 79) of D-Link DIR-846 firmware version FW100A53DBR-Retail. The application uses an exec() function to run a shell command with user-supplied input from the lan(0)_dhcps_staticlist parameter. The input is partially sanitized but allows injection of arbitrary OS commands via the second comma-separated value in the JSON-encoded POST request. This is classified as CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') [1][3].

Exploitation

An attacker must be authenticated to the router's web interface. The attacker sends a crafted POST request with a JSON body containing the lan(0)_dhcps_staticlist key. The payload is placed in the second value of the comma-separated list. The server then executes exec(changename.sh $mac "$(malicious_payload_command)"), allowing arbitrary command execution. No additional user interaction is required beyond authentication [3].

Impact

Successful exploitation grants the attacker remote command execution on the router with the privileges of the web server (typically root). This leads to full compromise of the device, including the ability to modify configuration, exfiltrate data, or use the router as a pivot point. The CVSS v3.1 score is 9.1 (High) with vector AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H [3].

Mitigation

As of the publication date (2023-02-02), no official patch from D-Link has been released. The vendor was contacted but no fix is documented. Users should consider replacing the device if it remains unpatched, or restrict access to the administrative interface to trusted networks only. The vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog as of the report date [3].

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

Root cause

"Missing input sanitization in the `lan(0)_dhcps_staticlist` parameter allows shell metacharacter injection, leading to arbitrary command execution."

Attack vector

An attacker sends a crafted POST request to the D-Link DIR-846 router's web interface, injecting shell metacharacters into the `lan(0)_dhcps_staticlist` parameter. The firmware passes this unsanitized input to a PHP function such as `exec()`, `system()`, or `shell_exec()` [ref_id=1], which executes the attacker's arbitrary commands on the underlying operating system. No authentication is mentioned as a prerequisite, implying the vulnerable endpoint may be accessible without prior login.

Affected code

The advisory does not specify exact file paths or function names. The vulnerability is in the D-Link DIR-846 firmware (FW100A53DBR) and is triggered via the `lan(0)_dhcps_staticlist` parameter in a crafted POST request [ref_id=1].

What the fix does

No patch is provided in the bundle. The advisory does not include a vendor fix or remediation guidance. To close this vulnerability, the vendor would need to sanitize or escape the `lan(0)_dhcps_staticlist` parameter before passing it to any shell execution function, for example by using `escapeshellarg()` or `escapeshellcmd()` as documented in the PHP manual [ref_id=1], or by avoiding shell execution entirely.

Preconditions

  • networkThe attacker must be able to send HTTP POST requests to the router's web interface.
  • authThe vulnerable endpoint must be accessible (no authentication barrier is mentioned in the advisory).

Generated on May 26, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

7

News mentions

0

No linked articles in our index yet.