top of page
perceptive_background_267k.jpg

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 Devi…

Published:

4 augustus 2026 om 22:00:00

Alert date:

5 augustus 2026 om 13:02:41

Source:

nvd.nist.gov

Click to open the original link from this advisory

Mobile & IoT, Critical Infrastructure, Network Infrastructure

nanoMODBUS through v1.23.0 contains an out-of-bounds write vulnerability in the client-side recv_read_device_identification_res() function within nanomodbus.c. The vulnerability stems from improper validation of the server-supplied object_length field, which is only checked against the remaining PDU size but never against the caller-supplied buffers_length parameter. After copying data using strncpy(), the code unconditionally writes a NUL terminator at a position determined by object_length, potentially past the end of the allocated buffer. A malicious or compromised Modbus server can exploit this by sending a crafted response where object_length is greater than or equal to the client's buffers_length. This causes the NUL write to land outside the caller-provided buffer, corrupting adjacent stack or heap memory on the client side. The vulnerability affects industrial control and IoT environments using the nanoMODBUS library for Modbus communications.

Technical details

Mitigation steps:

Affected products:

nanoMODBUS v1.23.0 and earlier

Related links:

Related CVE's:

Related threat actors:

IOC's:

This article was created with the assistance of AI technology by Perceptive.

© 2025 by Perceptive Security. All rights reserved.

email: info@perceptivesecurity.com

Deze website toont informatie afkomstig van externe bronnen; Perceptive aanvaardt geen verantwoordelijkheid voor de juistheid, volledigheid of actualiteit van deze informatie.

bottom of page