๐Ÿ” CVE Alert

CVE-2026-71255

HIGH 8.6

nanoMODBUS Client-Side Out-of-Bounds Write via object_length in recv_read_device_identification_res()

CVSS Score
8.6
EPSS Score
0.0%
EPSS Percentile
0th

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. After copying data with strncpy(buffers_out[buf_index], str, buffers_length), the code unconditionally writes a NUL terminator at buffers_out[buf_index][object_length]. When a malicious or compromised Modbus server sends a response with object_length greater than or equal to the client's buffers_length, this NUL write lands past the end of the caller-provided buffer, corrupting adjacent stack or heap memory on the client.

CWE CWE-787
Vendor debevv
Product nanomodbus
Published Aug 5, 2026
Last Updated Aug 5, 2026
Stay Ahead of the Next One

Get instant alerts for debevv nanomodbus

Be the first to know when new high vulnerabilities affecting debevv nanomodbus are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability

Affected Versions

debevv / nanoMODBUS
0 โ‰ค 1.23.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/debevv/nanoMODBUS github.com: https://github.com/debevv/nanoMODBUS/blob/master/nanomodbus.c

Credits

Shukhratbek Uraiimov