CVE-2025-5620 D-Link DIR-816 setipsec_config os command injection

Medium 6.9 Published Updated

Remote attackers can execute arbitrary OS commands on unsupported D-Link DIR-816 routers via the setipsec_config interface.

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

What is CVE-2025-5620?

CVE-2025-5620 is a medium-severity command injection vulnerability in Dlink Dir-816 Firmware, published on 4 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability, which was classified as critical, was found in D-Link DIR-816 1.10CNB05. Affected is the function setipsec_config of the file /goform/setipsec_config. The manipulation of the argument localIP/remoteIP leads to os command injection. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may 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-2025-5620?

It affects 1 product.

Products include Dlink Dir-816 Firmware.

How do I fix CVE-2025-5620?

No fix has been published for CVE-2025-5620 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-2025-5620 being exploited?

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

All Dlink Dir-816 Firmware vulnerabilities

Sources

Also known as GHSA-q445-fpwx-qv82.

Is CVE-2025-5620 in your software?

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

Check your SBOMs for free