CVE-2023-40042 Memory corruption in n/a

Critical 9.8 Published Updated

Attackers can execute arbitrary code on TOTOLINK T10 routers by sending crafted MQTT packets to trigger a stack-based buffer overflow.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-40042?

CVE-2023-40042 is a critical memory corruption vulnerability in n/a, published on 8 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-787

Which versions are affected by CVE-2023-40042?

It affects 1 product.

Products include Totolink T10 V2 Firmware.

How do I fix CVE-2023-40042?

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

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-40042 exists.

Sources

Also known as CVE-2023-38815, GHSA-vcx8-fvxx-m3v6.

Is CVE-2023-40042 in your software?

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

Check your SBOMs for free