# CVE-2024-36843: libmodbus v3.1.6 was discovered to contain a heap overflow via the modbusmappingfree() function.

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-05-31T00:00:00.000Z
- Modified: 2026-06-17T07:37:14.587Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## Description

libmodbus v3.1.6 was discovered to contain a heap overflow via the modbus_mapping_free() function.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- libmodbus libmodbus: 3.1.6

## References

- <https://github.com/stephane/libmodbus/issues/748> (exploit, issue-tracking, vendor-advisory)
- <https://github.com/balckgu1/libmodbusPoc/blob/main/gdb.md> (exploit, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00010.html>

## Sources

- CVE List: [CVE-2024-36843](https://www.cve.org/CVERecord?id=CVE-2024-36843), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2024-36843](https://nvd.nist.gov/vuln/detail/CVE-2024-36843), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-36843 · Whole record: https://cve.day/CVE-2024-36843.json · Rebuilt by cve.day 2026-11-25T22:58:41.340Z
