Stack-based Buffer Overflow in libmodbus library
Summary
| CVE | CVE-2024-10918 |
|---|---|
| State | PUBLISHED |
| Assigner | Nozomi |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-02-27 12:15:33 UTC |
| Updated | 2026-08-01 19:16:41 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 9.8 CRITICAL from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-121 | CWE-787 | CWE-121 CWE-121 Stack-based Buffer Overflow
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | [email protected] | Secondary | 4.8 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L |
| 3.1 | CNA | CVSS | 4.8 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| lists.debian.org/debian-lts-announce/2026/08/msg00003.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| www.nozominetworks.com/labs/vulnerability-advisories-cve-2024-10918 | [email protected] | www.nozominetworks.com | Third Party Advisory |
| lists.debian.org/debian-lts-announce/2025/03/msg00010.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Gabriele Quagliarella of Nozomi Networks found this bug during a security research activity. (en)
Additional Advisory Data
Solutions
CNA: To fix this issue, it's suggested to update libmodbus to v3.1.11
There are currently no legacy QID mappings associated with this CVE.