CVE-2026-54410: CWE-193 Off-by-one Error in debevv nanoMODBUS
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.
AI Analysis
Technical Summary
The vulnerability in nanoMODBUS (<=1.23.0) arises from an off-by-one buffer overflow in the recv_msg_header() function of its Modbus/TCP server implementation. An attacker can send a malicious MBAP frame with the Length field set to 255, causing a single byte to be written beyond the 260-byte receive buffer. This corrupts the adjacent buffer-index field in the nanoMODBUS state structure. The corruption results in denial of service through invalid memory accesses. Additionally, on bare-metal and RTOS systems lacking memory protection, this overflow can cause one-byte information disclosure and unintended register writes on the Write Multiple Registers (FC16) handler path. The vulnerability has a CVSS 4.0 base score of 7.8, indicating high severity. No official patch or remediation is currently documented, and no known exploits are reported in the wild.
Potential Impact
Remote unauthenticated attackers can exploit this off-by-one overflow to cause denial of service by corrupting internal state and triggering invalid memory accesses. On systems without memory protection (bare-metal or RTOS), the vulnerability also allows limited information disclosure and unauthorized writes to Modbus registers, potentially impacting device operation or data integrity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider mitigating exposure by restricting network access to the Modbus/TCP server and monitoring for anomalous MBAP frames with suspicious Length fields. Avoid deploying nanoMODBUS on unprotected bare-metal or RTOS targets without memory protection where possible.
CVE-2026-54410: CWE-193 Off-by-one Error in debevv nanoMODBUS
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. 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.
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
The vulnerability in nanoMODBUS (<=1.23.0) arises from an off-by-one buffer overflow in the recv_msg_header() function of its Modbus/TCP server implementation. An attacker can send a malicious MBAP frame with the Length field set to 255, causing a single byte to be written beyond the 260-byte receive buffer. This corrupts the adjacent buffer-index field in the nanoMODBUS state structure. The corruption results in denial of service through invalid memory accesses. Additionally, on bare-metal and RTOS systems lacking memory protection, this overflow can cause one-byte information disclosure and unintended register writes on the Write Multiple Registers (FC16) handler path. The vulnerability has a CVSS 4.0 base score of 7.8, indicating high severity. No official patch or remediation is currently documented, and no known exploits are reported in the wild.
Potential Impact
Remote unauthenticated attackers can exploit this off-by-one overflow to cause denial of service by corrupting internal state and triggering invalid memory accesses. On systems without memory protection (bare-metal or RTOS), the vulnerability also allows limited information disclosure and unauthorized writes to Modbus registers, potentially impacting device operation or data integrity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider mitigating exposure by restricting network access to the Modbus/TCP server and monitoring for anomalous MBAP frames with suspicious Length fields. Avoid deploying nanoMODBUS on unprotected bare-metal or RTOS targets without memory protection where possible.
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: 6/14/2026, 5:24:25 PM
Last enriched: 6/14/2026, 5:39:19 PM
Last updated: 6/14/2026, 8:56:27 PM
Views: 10
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.