Intel

AIKIDO-2026-10243

stephane.libmodbus is vulnerable to Out-of-bounds Read

Out-of-bounds Read Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Feb 25, 2026

70

High Risk

This Affects:

C++stephane.libmodbus
0.0.1 - 3.0.7
Fixed in 3.0.8
3.1.0 - 3.1.5
Fixed in 3.1.6
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to an out-of-bounds read due to improper validation of Modbus write request parameters. When handling WRITE_MULTIPLE_COILS or WRITE_MULTIPLE_REGISTERS requests, the implementation validates the number of requested values but fails to verify that the supplied byte count contains sufficient data for those values. An attacker can send a crafted Modbus request with inconsistent length fields, causing the application to read beyond the bounds of the request buffer, resulting in a denial of service or potential information disclosure. The issue is fixed by validating that the provided byte count matches the declared number of values before processing the request.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

stephane.libmodbus is vulnerable to Out-of-bounds Read in versions 0.0.1 - 3.0.7 and 3.1.0 - 3.1.5.

How to fix this

Upgrade the stephane.libmodbus library to the patch version.