CVE-2026-54410 nanoMODBUS Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field
HighCVSS 7.8
EPSS 0.54%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debevv nanoMODBUS | <= 1.23.0 | after 1.23.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debevv nanoMODBUS | <= 1.23.0 | No fix listed |
References
- nanoMODBUS - upstream repository (vendor) product
- Vulnerable bounds check at nanomodbus.c line 369 (v1.23.0) product
- CWE-193: Off-by-one Error technical-description
- CWE-787: Out-of-bounds Write technical-description
- ENISA EUVD EUVD-2026-36661 third-party-advisory