CVE-2026-54410: CWE-193 Off-by-one Error in debevv nanoMODBUS
nanoMODBUS versions up to 1.23.0 have an off-by-one buffer overflow vulnerability in the recv_msg_header() function of the Modbus/TCP server. This flaw allows remote unauthenticated attackers to write one byte beyond the end of a 260-byte buffer by sending a specially crafted MBAP frame with a Length field set to 255. The overflow corrupts an adjacent buffer-index field, causing denial of service via invalid memory accesses. On bare-metal and RTOS systems without memory protection, it can also lead to one-byte information disclosure and unintended writes to registers during the Write Multiple Registers handler execution.
AI Analysis
Technical Summary
CVE-2026-54410 is an off-by-one buffer overflow in the recv_msg_header() function of the nanoMODBUS Modbus/TCP server up to version 1.23.0. The vulnerability arises when processing an MBAP frame with a Length field set to 255, allowing an attacker to overwrite one byte past the 260-byte receive buffer. This corrupts the adjacent buffer-index field in the nanoMODBUS state structure, resulting in denial of service through invalid memory accesses. On systems lacking memory protection, such as bare-metal or RTOS targets, this overflow can also cause one-byte information disclosure and unintended writes to register addresses in the Write Multiple Registers (FC16) handler path. The vulnerability is remotely exploitable without authentication.
Potential Impact
The vulnerability enables remote unauthenticated attackers to cause denial of service by corrupting memory structures, leading to invalid memory accesses. On bare-metal and RTOS systems without memory protection, it may also result in limited information disclosure and unauthorized writes to Modbus registers, potentially affecting system integrity and reliability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should consider implementing network-level protections to restrict access to the Modbus/TCP server and monitor for anomalous MBAP frames with suspicious Length field values. Avoid exposing the vulnerable service to untrusted networks.
CVE-2026-54410: CWE-193 Off-by-one Error in debevv nanoMODBUS
Description
nanoMODBUS versions up to 1.23.0 have an off-by-one buffer overflow vulnerability in the recv_msg_header() function of the Modbus/TCP server. This flaw allows remote unauthenticated attackers to write one byte beyond the end of a 260-byte buffer by sending a specially crafted MBAP frame with a Length field set to 255. The overflow corrupts an adjacent buffer-index field, causing denial of service via invalid memory accesses. On bare-metal and RTOS systems without memory protection, it can also lead to one-byte information disclosure and unintended writes to registers during the Write Multiple Registers handler execution.
CVSS v4.0
Score 7.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-54410 is an off-by-one buffer overflow in the recv_msg_header() function of the nanoMODBUS Modbus/TCP server up to version 1.23.0. The vulnerability arises when processing an MBAP frame with a Length field set to 255, allowing an attacker to overwrite one byte past the 260-byte receive buffer. This corrupts the adjacent buffer-index field in the nanoMODBUS state structure, resulting in denial of service through invalid memory accesses. On systems lacking memory protection, such as bare-metal or RTOS targets, this overflow can also cause one-byte information disclosure and unintended writes to register addresses in the Write Multiple Registers (FC16) handler path. The vulnerability is remotely exploitable without authentication.
Potential Impact
The vulnerability enables remote unauthenticated attackers to cause denial of service by corrupting memory structures, leading to invalid memory accesses. On bare-metal and RTOS systems without memory protection, it may also result in limited information disclosure and unauthorized writes to Modbus registers, potentially affecting system integrity and reliability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should consider implementing network-level protections to restrict access to the Modbus/TCP server and monitor for anomalous MBAP frames with suspicious Length field values. Avoid exposing the vulnerable service to untrusted networks.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-06-13T16:39:46.122Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2ee3c9e617e2d834c15759
Added to database: 06/14/2026, 17:24:25 UTC
Last enriched: 06/22/2026, 15:19:02 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 108
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.