CVE-2026-71255: nanoMODBUS Client-Side Out-of-Bounds Write via object_length in recv_read_device_identification_res()

Published Aug 5, 2026
·
Updated

nanoMODBUS through v1.23.0 contains an out-of-bounds write in the Modbus client-side recvreaddeviceidentificationres() function (FC 0x2B/MEI 0x0E, Read Device Identification) in nanomodbus.c. The server-supplied objectlength field (0-246) is validated only against the remaining PDU size (ressizeleft) and is never validated against the caller-supplied bufferslength parameter. After copying data with strncpy(buffersout[bufindex], str, bufferslength), the code unconditionally writes a NUL terminator at buffersout[bufindex][objectlength]. When a malicious or compromised Modbus server sends a response with objectlength greater than or equal to the client's bufferslength, this NUL write lands past the end of the caller-provided buffer, corrupting adjacent stack or heap memory on the client.

Affected Software

1 affected component
nanoMODBUS<=1.23.0

Event History

Aug 5, 2026
CVE Published
via MITRE·11:44 AM
Data Sourced
via MITRE·11:44 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-71255?

CVE-2026-71255 has a severity score of 8.2, indicating a high level of risk.

2

How do I fix CVE-2026-71255?

To remediate CVE-2026-71255, update to the latest version of nanoMODBUS that addresses the out-of-bounds write vulnerability.

3

What type of vulnerability is CVE-2026-71255?

CVE-2026-71255 is an out-of-bounds write vulnerability that affects the client-side of the nanoMODBUS implementation.

4

What software is impacted by CVE-2026-71255?

CVE-2026-71255 impacts nanoMODBUS versions prior to 1.23.0.

5

What could be the consequences of CVE-2026-71255?

Exploitation of CVE-2026-71255 could lead to crashes or potentially allow an attacker to execute arbitrary code on the system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203