Stack-Based Buffer Overflow in TOTOLINK T10_v2

Patch this weekFull system takeover over the network, no login needed.
9.8CRITICAL

CVE-2023-40042

Key Information:

Vendor

Totolink

CVE ID
CVE ID:
CVE-2023-40042
Vendor
CVE Published:
8 August 2023

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Yes: Works over the network, no login needed
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Patch this week

Exploitation is likely. Prioritise the fix.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory ↗
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach T10 V2 Firmware. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Patch this week"
  • It can be exploited remotely without credentials.
  • Its CVSS severity is critical (9.8).

What is CVE-2023-40042?

The TOTOLINK T10_v2 5.9c.5061_B20200511 suffers from a stack-based buffer overflow in the 'setStaticDhcpConfig' function located in '/lib/cste_modules/lan.so'. This vulnerability allows attackers to send specially crafted data via the comment parameter in an MQTT packet. By controlling the return address during this process, malicious actors can execute arbitrary code, potentially compromising the device and the network it operates within. Timely patching and updates are crucial to mitigate the risk associated with this vulnerability.

References

Buffer Overflow Vulnerability in TOTOLINK N150RT Router

CVE-2025-3993
TotolinkN150rt👾8.7HIGH

Stack-Based Buffer Overflow Vulnerability in TOTOLINK X18 Router

CVE-2025-1340
TotolinkX18👾8.7HIGH
View more Totolink vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged
.