CVE-2026-54410
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
Summary
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. The overflow corrupts the adjacent buffer-index field of the nanoMODBUS state structure, resulting in denial of service through invalid memory accesses and, on bare-metal and RTOS targets without memory protection, one-byte information disclosure and writes to unintended register addresses on the Write Multiple Registers (FC16) handler path.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| debevv | nanoMODBUS | 0 <= 1.23.0 | affected |
Weaknesses
- CWE-193: CWE-193 Off-by-one Error
- CWE-787: CWE-787 Out-of-bounds Write
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: yes
- Technical Impact: partial
References
- https://github.com/debevv/nanoMODBUS
- https://github.com/debevv/nanoMODBUS/blob/v1.23.0/nanomodbus.c#L369
- https://cwe.mitre.org/data/definitions/193.html
- https://cwe.mitre.org/data/definitions/787.html
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.