# CVE-2023-40041: TOTOLINK T10v2 5.9c.5061B20200511 has a stack-based buffer overflow in setWiFiWpsConfig in /lib/cstemodules/wps.so.

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.03%, higher than 64% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-08T00:00:00.000Z
- Modified: 2026-06-17T06:15:53.980Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## Description

TOTOLINK T10_v2 5.9c.5061_B20200511 has a stack-based buffer overflow in setWiFiWpsConfig in /lib/cste_modules/wps.so. Attackers can send crafted data in an MQTT packet, via the pin parameter, to control the return address and execute code.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- totolink t10_v2: v2 5.9c.5061_b20200511
- totolink t10_v2_firmware: 5.9c.5061_b20200511

## References

- <https://github.com/Korey0sh1/IoT_vuln/blob/main/TOTOLINK/T10_V2/lib-cste_modules-wps.md> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2023-40041](https://www.cve.org/CVERecord?id=CVE-2023-40041), CVE Terms of Use, modified 2024-10-10
- NVD: [CVE-2023-40041](https://nvd.nist.gov/vuln/detail/CVE-2023-40041), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-40041 · Whole record: https://cve.day/CVE-2023-40041.json · Rebuilt by cve.day 2026-11-25T22:58:26.961Z
