Vulnerability · Published Feb 27, 2025 · Assigned by Nozomi

CVE-2024-10918Stack-based Buffer Overflow in libmodbus library

Medium 4.8

In plain English

A medium-severity stack buffer overflow in libmodbus from libmodbus. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.8Medium
Exploit odds (30 days)0.6%top 53.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer allocated for the Modbus response if the function tries to reply to a Modbus request with an unexpected length.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libmodbus3.1.6-2.1+deb12u1DEBIAN-CVE-2024-10918
Debian:13libmodbus3.1.11-1DEBIAN-CVE-2024-10918
Debian:14libmodbus3.1.11-1DEBIAN-CVE-2024-10918
Ubuntu:22.04:LTSlibmodbusno fix listedUBUNTU-CVE-2024-10918
Ubuntu:24.04:LTSlibmodbusno fix listedUBUNTU-CVE-2024-10918

Affected products (as reported)

VendorProductVersions
libmodbus libmodbus 0 – through 3.1.10

Weakness: CWE-121 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

References