CVE-2026-54410
nanoMODBUS Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field
- State
- Published
- Severity
- 7.8 High
- Published
- Jun 14, 2026
- Updated
- Aug 10, 2026
- Reserved
- Jun 13, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 7.8 High | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P/AU:Y | TuranSec |
| 3.1 | 8.6 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H | TuranSec |
| 2.0 | 9.0 High | AV:N/AC:L/Au:N/C:P/I:P/A:C | TuranSec |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
nanoMODBUSdebevv |
|
References
- nanoMODBUS - upstream repository (vendor)product
- Vulnerable bounds check at nanomodbus.c line 369 (v1.23.0)product
- CWE-193: Off-by-one Errortechnical-description
- CWE-787: Out-of-bounds Writetechnical-description
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.