CVE-2026-5844 D-Link DIR-882 HNAP1 SetNetworkSettings prog.cgi sprintf os command injection

High 8.6 Published Updated

Remote attackers can execute arbitrary OS commands via the HNAP1 SetNetworkSettings handler in unsupported D-Link DIR-882 routers.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-5844?

CVE-2026-5844 is a high-severity command injection vulnerability in D-Link DIR-882, published on 9 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

A vulnerability was found in D-Link DIR-882 1.01B02. Impacted is the function sprintf of the file prog.cgi of the component HNAP1 SetNetworkSettings Handler. The manipulation of the argument IPAddress results in os command injection. The attack may be performed from remote. The exploit has been made public and could be used. This vulnerability only affects products that are no longer supported by the maintainer.

Weakness: CWE-78, CWE-77

Which versions are affected by CVE-2026-5844?

It affects 1 product.

Products include Dlink Dir-882 Firmware.

How do I fix CVE-2026-5844?

No fix has been published for CVE-2026-5844 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-5844 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-5844 exists.

Sources

Also known as GHSA-2723-wm97-82qm.

Is CVE-2026-5844 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free