CVE-2026-71254: CWE-787 in debevv nanoMODBUS
nanoMODBUS through v1.23.0 contains an out-of-bounds write in the Modbus server-side handle_read_file_record function (FC 0x14, Read File Record) in nanomodbus.c. The function validates that the total request size does not exceed 245 bytes and that each sub-request's record_length is at most 124, but it never validates the CUMULATIVE response size across all sub-requests before processing them.
AI Analysis
Technical Summary
CVE-2026-71254 is an out-of-bounds write vulnerability (CWE-787) in the nanoMODBUS library up to version 1.23.0. The issue exists in the Modbus server-side handle_read_file_record function (function code 0x14, Read File Record) implemented in nanomodbus.c. While the function validates that the total request size does not exceed 245 bytes and each sub-request's record_length is at most 124 bytes, it fails to validate the cumulative response size across all sub-requests before processing. This can lead to an out-of-bounds write condition, potentially allowing an attacker to corrupt memory and cause denial of service or execute arbitrary code.
Potential Impact
Successful exploitation of this vulnerability can result in a critical impact affecting confidentiality, integrity, and availability of the affected system. An attacker can cause memory corruption through out-of-bounds writes, which may lead to denial of service or arbitrary code execution within the context of the nanoMODBUS server.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround has been documented at this time. Users should monitor the vendor's communications for updates and apply patches once available.
CVE-2026-71254: CWE-787 in debevv nanoMODBUS
Description
nanoMODBUS through v1.23.0 contains an out-of-bounds write in the Modbus server-side handle_read_file_record function (FC 0x14, Read File Record) in nanomodbus.c. The function validates that the total request size does not exceed 245 bytes and that each sub-request's record_length is at most 124, but it never validates the CUMULATIVE response size across all sub-requests before processing them.
CVSS v3.1
Score 9.8critical
Affected software
debevv
nanoMODBUS
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-71254 is an out-of-bounds write vulnerability (CWE-787) in the nanoMODBUS library up to version 1.23.0. The issue exists in the Modbus server-side handle_read_file_record function (function code 0x14, Read File Record) implemented in nanomodbus.c. While the function validates that the total request size does not exceed 245 bytes and each sub-request's record_length is at most 124 bytes, it fails to validate the cumulative response size across all sub-requests before processing. This can lead to an out-of-bounds write condition, potentially allowing an attacker to corrupt memory and cause denial of service or execute arbitrary code.
Potential Impact
Successful exploitation of this vulnerability can result in a critical impact affecting confidentiality, integrity, and availability of the affected system. An attacker can cause memory corruption through out-of-bounds writes, which may lead to denial of service or arbitrary code execution within the context of the nanoMODBUS server.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround has been documented at this time. Users should monitor the vendor's communications for updates and apply patches once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T11:43:52.777Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a73253ebf8831d539d6a9b9
Added to database: 08/05/2026, 11:57:50 UTC
Last enriched: 08/12/2026, 14:30:21 UTC
Last updated: 09/17/2026, 22:01:38 UTC
Views: 116
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.