Stack-based Buffer Overflow Affecting libmodbus package, versions [,3.1.11)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-LIBMODBUS-8757396
  • published27 Feb 2025
  • disclosed27 Feb 2025
  • creditGabriele Quagliarella

Introduced: 27 Feb 2025

NewCVE-2024-10918  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade libmodbus to version 3.1.11 or higher.

Overview

Affected versions of this package are vulnerable to Stack-based Buffer Overflow due to the buffer allocated for the Modbus response. An attacker can alter the intended control flow of the application by sending a Modbus request with an unexpected length.

CVSS Scores

version 4.0
version 3.1