CVE-2024-34244: libmodbus · Classic Buffer Overflow
Affects libmodbusSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 11:42 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 8 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: 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 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubstephane/libmodbuspkg:github/stephane/libmodbusOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-34244, organizations should first monitor for updates or patches from the libmodbus maintainers and apply them promptly once available. In the absence of patches, implement strict input validation and sanitization on Modbus requests at the application or network gateway level to prevent malformed packets from reaching vulnerable functions. Network segmentation is critical: isolate OT networks and restrict Modbus traffic to trusted devices only, using firewalls and access control lists to limit exposure. Deploy intrusion detection or prevention systems (IDS/IPS) capable of recognizing anomalous Modbus traffic patterns. Regularly audit and monitor Modbus communications for unusual activity or crashes indicative of exploitation attempts. Additionally, consider employing application whitelisting and runtime protections to detect and prevent buffer overflow exploitation. Educate operational staff about the risks and ensure incident response plans include scenarios involving Modbus protocol disruptions.
Description
libmodbus v3.1.10 is vulnerable to Buffer Overflow via the modbus_write_bits function. This issue can be triggered when the function is fed with specially crafted input, which leads to out-of-bounds read and can potentially cause a crash or other unintended behaviors.