CVE-2024-36843: libmodbus · Heap-based Buffer Overflow
Affects libmodbusSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 13:47 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 55% 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 31 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
- Immediately identify and inventory all systems and devices using libmodbus version 3.1.6 within your environment, focusing on ICS and SCADA components.
- Isolate vulnerable devices from untrusted networks to reduce exposure to remote attacks, employing network segmentation and strict firewall rules.
- Monitor network traffic for unusual Modbus activity or unexpected crashes in applications using libmodbus, leveraging anomaly detection and logging.
- Engage with libmodbus maintainers or vendors for updates and patches; apply official patches as soon as they become available.
- Where patching is not immediately possible, consider deploying runtime protections such as memory protection mechanisms (e.g., ASLR, DEP) and application whitelisting to mitigate exploitation risks.
- Conduct regular security assessments and penetration tests focusing on ICS environments to detect potential exploitation attempts.
- Train ICS operators and security teams on recognizing symptoms of exploitation, such as unexpected system restarts or communication failures.
- Develop and test incident response plans specifically addressing denial of service scenarios in industrial environments.
Description
libmodbus v3.1.6 was discovered to contain a heap overflow via the modbus_mapping_free() function.