libmodbus · Stack-based Buffer Overflow Vulnerability
Affects libmodbusSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical.
Data as of 24 Nov 2026, 19:25 UTC
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Feb 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlibmodbuspkg:deb/ubuntu/libmodbus?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlibmodbuspkg:deb/ubuntu/libmodbus?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSlibmodbuspkg:deb/ubuntu/libmodbus?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSlibmodbuspkg:deb/ubuntu/libmodbus?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in– |
Ubuntu Pro 16.04 LTSlibmodbuspkg:deb/ubuntu/libmodbus?arch=source&distro=esm-apps/xenialOther threats | Affected
| Fixed in– |
Ubuntu Pro 14.04 LTSlibmodbuspkg:deb/ubuntu/libmodbus?arch=source&distro=esm-infra-legacy/trustyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-10918 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-10918 (opens in a new tab)
- nozominetworks.com/labs/vulnerability-advisories-cve-2024-10918 (opens in a new tab)
- github.com/stephane/libmodbus/commit/df79a02feb253c0a9a009bcdbb21e47581315111 (opens in a new tab)
- github.com/stephane/libmodbus/commit/81bf713cf029bfa5b5da87b945c1e8817b4398f9 (opens in a new tab)
- github.com/stephane/libmodbus/commit/d8a971e04d52be16bf405b51d934a30b8aa3f2c3 (opens in a new tab)