CVE-2026-71256: CWE-125 in debevv nanoMODBUS
nanoMODBUS through v1.23.0 contains an out-of-bounds stack read leading to a wild-pointer write in nmbs_read_device_identification_basic / recv_read_device_identification_res in nanomodbus.c. A fixed 3-element stack array order[3] = {0,1,2} maps object IDs to buffer indices. The server-supplied object_id field (0-255, read directly from the wire) is used without any bounds check as buf_index = order[object_id].
AI Analysis
Technical Summary
The vulnerability in nanoMODBUS through version 1.23.0 arises from improper bounds checking on the server-supplied object_id field (0-255) used as an index into a fixed 3-element stack array order[3]. This results in an out-of-bounds stack read and subsequent wild-pointer write in nanomodbus.c functions nmbs_read_device_identification_basic and recv_read_device_identification_res. The lack of validation allows an attacker to cause memory corruption, potentially leading to arbitrary code execution or denial of service.
Potential Impact
Successful exploitation can lead to memory corruption due to wild-pointer writes, impacting confidentiality, integrity, and availability of the affected system. The CVSS score of 9.8 reflects critical severity with network attack vector, no privileges required, no user interaction, and full impact on confidentiality, integrity, and availability.
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 restricting access to the nanoMODBUS service from untrusted networks to reduce exposure.
CVE-2026-71256: CWE-125 in debevv nanoMODBUS
Description
nanoMODBUS through v1.23.0 contains an out-of-bounds stack read leading to a wild-pointer write in nmbs_read_device_identification_basic / recv_read_device_identification_res in nanomodbus.c. A fixed 3-element stack array order[3] = {0,1,2} maps object IDs to buffer indices. The server-supplied object_id field (0-255, read directly from the wire) is used without any bounds check as buf_index = order[object_id].
CVSS v3.1
Score 9.8critical
Affected software
debevv
nanoMODBUS
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in nanoMODBUS through version 1.23.0 arises from improper bounds checking on the server-supplied object_id field (0-255) used as an index into a fixed 3-element stack array order[3]. This results in an out-of-bounds stack read and subsequent wild-pointer write in nanomodbus.c functions nmbs_read_device_identification_basic and recv_read_device_identification_res. The lack of validation allows an attacker to cause memory corruption, potentially leading to arbitrary code execution or denial of service.
Potential Impact
Successful exploitation can lead to memory corruption due to wild-pointer writes, impacting confidentiality, integrity, and availability of the affected system. The CVSS score of 9.8 reflects critical severity with network attack vector, no privileges required, no user interaction, and full impact on confidentiality, integrity, and availability.
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 restricting access to the nanoMODBUS service from untrusted networks to reduce exposure.
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: 6a73253ebf8831d539d6a9c1
Added to database: 08/05/2026, 11:57:50 UTC
Last enriched: 08/12/2026, 14:30:58 UTC
Last updated: 09/19/2026, 22:01:37 UTC
Views: 57
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.