# CVE-2023-40042: TOTOLINK T10v2 5.9c.5061B20200511 has a stack-based buffer overflow in setStaticDhcpConfig in /lib/cstemodules/lan.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.54%, higher than 75% 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:54.360Z
- 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 setStaticDhcpConfig in /lib/cste_modules/lan.so. Attackers can send crafted data in an MQTT packet, via the comment parameter, to control the return address and execute code.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- totolink t10_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/setStaticDhcpConfig.md> (exploit, third-party-advisory)
- <http://www.totolink.cn> (not-applicable)
- <https://www.totolink.net/home/menu/detail/menu_listtpl/download/id/172/ids/36.html> (product)

## Sources

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

---

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