Intel

AIKIDO-2026-10243

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

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Feb 25, 2026
February 25, 2026

70

CVE Score

High

Out-of-bounds Read

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.

How do I fix this?

Upgrade the stephane.libmodbus library to the patch version.

Who does this affect?

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

Package

stephane.libmodbus

Versions

0.0.1 - 3.0.7

Fixed in 3.0.8

3.1.0 - 3.1.5

Fixed in 3.1.6

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.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea