CVE-2025-8065 Remote Code Execution via Stack-based Buffer Overflow in ONVIF SOAP Parser in TP-Link Tapo C200 and C520WS

High 8.7 Published Updated

Unauthenticated attackers on the local network can achieve remote code execution with elevated privileges via a stack-based buffer overflow in the ONVIF SOAP parser.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-8065?

CVE-2025-8065 is a high-severity memory corruption vulnerability in TP-Link Systems Inc. Tapo C200 V3, published on 20 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A stack-based buffer overflow vulnerability was identified in the ONVIF SOAP XML Parser in Tapo C200 v3 and C520WS v2.6. When processing XML tags with namespace prefixes, the parser fails to validate the prefix length before copying it to a fixed-size stack buffer. It allowed a crafted SOAP request with an oversized namespace prefix to cause memory corruption in stack.

An unauthenticated attacker on the same local network may exploit this flaw to enable remote code execution with elevated privileges, leading to full compromise of the device.

Weakness: CWE-120, CWE-121

Which versions are affected by CVE-2025-8065?

It affects 1 product.

Products include Tp-Link Tapo C200 Firmware.

How do I fix CVE-2025-8065?

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

There is no known exploitation of CVE-2025-8065 in the wild and no public exploit code.

Sources

Also known as GHSA-5r97-vg42-wrjj.

Is CVE-2025-8065 in your software?

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

Check your SBOMs for free