CVE-2026-54410 nanoMODBUS Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field
Remote attackers can trigger a buffer overflow in nanoMODBUS via crafted Modbus frames, potentially leading to code execution or service disruption.
- 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-2026-54410?
CVE-2026-54410 is a high-severity memory corruption vulnerability in debevv nanoMODBUS, published on 14 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
nanoMODBUS through v1.23.0 contains an off-by-one buffer overflow in the recv_msg_header function of the Modbus/TCP server that allows remote unauthenticated attackers to write one attacker-controlled byte past the end of the 260-byte receive buffer by sending a crafted MBAP frame whose Length field is set to 255.
Which versions are affected by CVE-2026-54410?
How do I fix CVE-2026-54410?
No fix has been published for CVE-2026-54410 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-2026-54410 being exploited?
There is no known exploitation of CVE-2026-54410 in the wild and no public exploit code.
Sources
Also known as GHSA-6f53-f2m4-6j2h.