stephane.libmodbus is vulnerable to Out-of-bounds Read
70
CVE Score
High
Out-of-bounds Read
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.
Upgrade the stephane.libmodbus library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 3.0.7
Fixed in 3.0.83.1.0 - 3.1.5
Fixed in 3.1.6stephane.libmodbus is vulnerable to Out-of-bounds Read in versions 0.0.1 - 3.0.7 and 3.1.0 - 3.1.5.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.