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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-02-27 · Modified: 2026-08-01
- Aliases: UBUNTU-CVE-2024-10918, DEBIAN-CVE-2024-10918, DLA-4714-1
- Record: https://cvemate.com/vulnerability/CVE-2024-10918 · JSON: https://cvemate.com/vulnerability/CVE-2024-10918/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.558%, percentile 47.938%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libmodbus (Debian): \< 3.1.11-1 \| \< 3.1.6-2.1+deb12u1
- ubuntu libmodbus (Ubuntu): All versions (No fix recorded)
- libmodbus libmodbus: ≤ 3.1.10 \| 3.1.10

## References

- <https://www.nozominetworks.com/labs/vulnerability-advisories-cve-2024-10918>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00010.html>
- <https://lists.debian.org/debian-lts-announce/2026/08/msg00003.html>
- <https://ubuntu.com/security/CVE-2024-10918>
- <https://www.cve.org/CVERecord?id=CVE-2024-10918>
- <https://github.com/stephane/libmodbus/commit/df79a02feb253c0a9a009bcdbb21e47581315111>
- <https://github.com/stephane/libmodbus/commit/81bf713cf029bfa5b5da87b945c1e8817b4398f9>
- <https://github.com/stephane/libmodbus/commit/d8a971e04d52be16bf405b51d934a30b8aa3f2c3>
- <https://security-tracker.debian.org/tracker/CVE-2024-10918>

---

Data as of 2026-12-05T18:19:17.984Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
