CVE-2025-5215 D-Link DCS-5020L ptdc.cgi websReadEvent stack-based overflow

High 8.7 Published Updated

Remote attackers can trigger a stack-based buffer overflow in the D-Link DCS-5020L camera's web interface, potentially executing arbitrary code on the unsupported device.

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

What is CVE-2025-5215?

CVE-2025-5215 is a high-severity memory corruption vulnerability in D-Link DCS-5020L, published on 27 May 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability classified as critical has been found in D-Link DCS-5020L 1.01_B2. This affects the function websReadEvent of the file /rame/ptdc.cgi. The manipulation of the argument Authorization leads to stack-based buffer overflow. It is possible to initiate 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-121, CWE-787, CWE-119

Which versions are affected by CVE-2025-5215?

It affects 1 product.

Products include Dlink Dcs-5020l Firmware.

How do I fix CVE-2025-5215?

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

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-5215 being exploited?

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

Sources

Also known as GHSA-3m9x-xqwx-4x9c.

Is CVE-2025-5215 in your software?

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

Check your SBOMs for free