CVE-2026-71255: CWE-787 in debevv nanoMODBUS
nanoMODBUS through v1.23.0 contains an out-of-bounds write in the Modbus client-side recv_read_device_identification_res function (FC 0x2B/MEI 0x0E, Read Device Identification) in nanomodbus.c. The server-supplied object_length field (0-246) is validated only against the remaining PDU size (res_size_left) and is never validated against the caller-supplied buffers_length parameter.
AI Analysis
Technical Summary
CVE-2026-71255 is an out-of-bounds write vulnerability in the nanoMODBUS library through version 1.23.0. The flaw exists in the Modbus client-side function recv_read_device_identification_res, which processes the Read Device Identification response (function code 0x2B, MEI type 0x0E). The vulnerability arises because the server-supplied object_length field, which can range from 0 to 246, is only validated against the remaining PDU size (res_size_left) but not against the caller-supplied buffers_length parameter. This lack of proper validation can lead to writing beyond the bounds of the buffer, causing memory corruption.
Potential Impact
Successful exploitation of this vulnerability can lead to memory corruption, which may result in denial of service or potentially allow an attacker to execute arbitrary code. The CVSS score of 8.6 reflects a high severity with network attack vector, low attack complexity, no privileges required, no user interaction, and impacts on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should exercise caution when processing untrusted Modbus responses and consider additional input validation or sandboxing measures to mitigate potential exploitation.
CVE-2026-71255: CWE-787 in debevv nanoMODBUS
Description
nanoMODBUS through v1.23.0 contains an out-of-bounds write in the Modbus client-side recv_read_device_identification_res function (FC 0x2B/MEI 0x0E, Read Device Identification) in nanomodbus.c. The server-supplied object_length field (0-246) is validated only against the remaining PDU size (res_size_left) and is never validated against the caller-supplied buffers_length parameter.
CVSS v3.1
Score 8.6high
Affected software
debevv
nanoMODBUS
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-71255 is an out-of-bounds write vulnerability in the nanoMODBUS library through version 1.23.0. The flaw exists in the Modbus client-side function recv_read_device_identification_res, which processes the Read Device Identification response (function code 0x2B, MEI type 0x0E). The vulnerability arises because the server-supplied object_length field, which can range from 0 to 246, is only validated against the remaining PDU size (res_size_left) but not against the caller-supplied buffers_length parameter. This lack of proper validation can lead to writing beyond the bounds of the buffer, causing memory corruption.
Potential Impact
Successful exploitation of this vulnerability can lead to memory corruption, which may result in denial of service or potentially allow an attacker to execute arbitrary code. The CVSS score of 8.6 reflects a high severity with network attack vector, low attack complexity, no privileges required, no user interaction, and impacts on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should exercise caution when processing untrusted Modbus responses and consider additional input validation or sandboxing measures to mitigate potential exploitation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T11:43:52.778Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a73253ebf8831d539d6a9bd
Added to database: 08/05/2026, 11:57:50 UTC
Last enriched: 08/12/2026, 14:30:35 UTC
Last updated: 09/17/2026, 22:01:38 UTC
Views: 53
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.