CVE-2024-10918
Stack-based Buffer Overflow in libmodbus library
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
4.8
Stack-based Buffer Overflow in libmodbus library
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.
- Record
CVE-2024-10918- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L - Weakness
- CWE-121
- Updated
- 2026-11-02
EUVDEUVD-2024-53894
4.8
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.
- Record
EUVD-2024-53894- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-96xh-5wq4-m4cc
4.8
Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer...
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.
- Record
GHSA-96xh-5wq4-m4cc- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L - Weakness
- CWE-121, CWE-787
- Updated
- 2026-11-02
NVD
4.8
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.
- Record
CVE-2024-10918- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L - CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-121, CWE-787
- Updated
- 2026-11-02
OSV
4.8
Stack-based Buffer Overflow in libmodbus library
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.
- Record
CVE-2024-10918- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L - Weakness
- CWE-121
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-10918
9.8
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.
- Record
DEBIAN-CVE-2024-10918- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVJLSEC-2026-1252
9.8
Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer...
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.
- Record
JLSEC-2026-1252- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-10918
4.8
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.
- Record
UBUNTU-CVE-2024-10918- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L - CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libmodbusDebian:12 |
before 3.1.6-2.1+deb12u1, plus listed versions 3.1.6-2.1 |
3.1.6-2.1+deb12u1 |
libmodbusDebian:13 |
before 3.1.11-1 | 3.1.11-1 |
libmodbusDebian:14 |
before 3.1.11-1 | 3.1.11-1 |
libmodbusDebian:11 From an advisory covering 5 CVEs |
before 3.1.6-2+deb11u1, plus listed versions 3.1.6-2 |
3.1.6-2+deb11u1 |
LibModbus_jllJulia |
3.1.10+0 up to 3.1.12+0 | 3.1.12+0 |
libmodbusUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 3.0.4-13.0.5-13.0.5-1ubuntu0.1~esm1 |
None known |
libmodbusUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 3.0.6-13.0.6-1ubuntu0.1~esm1 |
None known |
libmodbusUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 3.0.6-23.0.6-2ubuntu0.1~esm13.0.6-2+deb9u1build0.18.04.1 |
None known |
libmodbusUbuntu:20.04:LTS |
All versions, plus listed versions 3.1.6-13.1.6-2 |
None known |
libmodbusUbuntu:22.04:LTS |
All versions, plus listed versions 3.1.6-2 |
None known |
libmodbusUbuntu:24.04:LTS |
All versions, plus listed versions 3.1.6-2.13.1.10-1ubuntu1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-10918 is a medium vulnerability (CVSS 4.8) in Libmodbus, published February 27, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.56%, the 46th percentile. Fixed in libmodbus 3.1.6-2.1+deb12u1.
References
nozominetworks.com/labs/vulnerability-advisories-cve-2024-10918
lists.debian.org/debian-lts-announce/2025/03/msg00010.html
lists.debian.org/debian-lts-announce/2026/08/msg00003.html
nvd.nist.gov/vuln/detail/CVE-2024-10918
github.com/advisories/GHSA-96xh-5wq4-m4cc
libmodbus.org
Show 8 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2024/10xxx/CVE-2024-10918.json
github.com/stephane/libmodbus
security-tracker.debian.org/tracker/CVE-2024-10918
ubuntu.com/security/CVE-2024-10918
cve.org/CVERecord?id=CVE-2024-10918
github.com/stephane/libmodbus/commit/df79a02feb253c0a9a009bcdbb21e47581315111
github.com/stephane/libmodbus/commit/81bf713cf029bfa5b5da87b945c1e8817b4398f9
github.com/stephane/libmodbus/commit/d8a971e04d52be16bf405b51d934a30b8aa3f2c3