CVE-2024-10918: Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer allocated for the
CVE-2024-10918 is a medium-severity flaw (CVSS 4.8) affecting libmodbus. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Remotely exploitable, no login, no user action
No fix is published yet: follow the downgrade or mitigation steps.
Last updated 2026-08-01 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-10918?
libmodbus: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2024-10918 being exploited?
CVE-2024-10918 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-10918 affect?
CVE-2024-10918 affects libmodbus. Severity is medium (CVSS 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.
How urgent is CVE-2024-10918?
Priority 33/100. Remotely exploitable, no login, no user action
Related CVEs
- CVE-2024-36845 MEDIUM 4.3 DOWNGRADE An invalid pointer in the modbus_receive() function of libmodbus v3.1.6 allows attackers to cause a Denial of
- CVE-2024-36844 HIGH 7.5 DOWNGRADE libmodbus v3.1.6 was discovered to contain a use-after-free via the ctx->backend pointer
- CVE-2024-36843 HIGH 7.5 DOWNGRADE libmodbus v3.1.6 was discovered to contain a heap overflow via the modbus_mapping_free() function.
- CVE-2024-34244 HIGH 7.5 DOWNGRADE libmodbus v3.1.10 is vulnerable to Buffer Overflow via the modbus_write_bits function
- CVE-2023-26793 CRITICAL 9.8 DOWNGRADE libmodbus v3.1.10 has a heap-based buffer overflow vulnerability in read_io_status function in src/modbus.c.