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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v4.0, CNA) `CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.85% (percentile 56, 2026-11-26)
- **CWE:** CWE-121
- **Published:** 2025-12-20T00:41:56.823Z
- **Modified:** 2026-09-25T23:10:00.463Z

## Who should check

- Anyone running TP-Link Systems Inc. Tapo C200 V3 \< V3\_1.4.5 Build 251104
- Anyone running TP-Link Systems Inc. Tapo C520WS v2.6 \< 1.2.4 Build 260326 Rel.24666n

## 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.

## Affected and fixed versions

- TP-Link Systems Inc. Tapo C200 V3: \< V3\_1.4.5 Build 251104 (cvelist)
- TP-Link Systems Inc. Tapo C520WS v2.6: \< 1.2.4 Build 260326 Rel.24666n (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-8065. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-8065.md
Affected: TP-Link Systems Inc. Tapo C200 V3 < V3_1.4.5 Build 251104; TP-Link Systems Inc. Tapo C520WS v2.6 < 1.2.4 Build 260326 Rel.24666n
Fixed in: TP-Link Systems Inc. Tapo C520WS v2.6 1.2.4

Steps:
1. Search this machine and project for TP-Link Systems Inc. Tapo C200 V3, TP-Link Systems Inc. Tapo C520WS v2.6: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-8065 being exploited?

There is no confirmed exploitation: CVE-2025-8065 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.85% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-8065?

High: CVSS 8.7 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-8065?

TP-Link Systems Inc. Tapo C200 V3 \< V3\_1.4.5 Build 251104; TP-Link Systems Inc. Tapo C520WS v2.6 \< 1.2.4 Build 260326 Rel.24666n.

### Is there a fix for CVE-2025-8065?

Yes. Fixed in TP-Link Systems Inc. Tapo C520WS v2.6 1.2.4. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-8065?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://www.tp-link.com/us/support/faq/4849/>
- patch: <https://www.tp-link.com/us/support/download/tapo-c200/v3/#Firmware-Release-Notes>
- patch: <https://www.tp-link.com/us/support/download/tapo-c520ws/#Firmware-Release-Notes>
- patch: <https://www.tp-link.com/en/support/download/tapo-c520ws/#Firmware-Release-Notes>
- patch: <https://www.tp-link.com/en/support/download/tapo-c200/v3/#Firmware-Release-Notes>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-8065>

HTML: <https://flawdb.com/CVE-2025-8065> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-8065>
