Remote service crash via register-table underwrite
Published May 31, 2024 · Updated Nov 3, 2025
Heap-based buffer overflow in libmodbus 3.1.6 allows remote attackers to crash a Modbus TCP server with crafted requests. A read/write-multiple-register request drives a two-byte write six bytes before the allocated register table, corrupting heap state later consumed by modbus_mapping_free(). The application must expose a libmodbus TCP server using a mapping; the demonstrated consequence is process abort during mapping cleanup.
Summary
What happened
Heap-based buffer overflow in libmodbus 3.1.6 allows remote attackers to crash a Modbus TCP server with crafted requests. A read/write-multiple-register request drives a two-byte write six bytes before the allocated register table, corrupting heap state later consumed by modbus_mapping_free(). The application must expose a libmodbus TCP server using a mapping; the demonstrated consequence is process abort during mapping cleanup.
The record
- CVE
- CVE-2024-36843
- Published
- May 31, 2024
- Updated
- Nov 3, 2025
- Vendor
- Stéphane Raimbault
- Product
- libmodbus
- Classifications
- CWE-122, T1499.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 31, 2024CVE publishedPublication date reported by the CVE source.
- Nov 3, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=3.1.6
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- libmodbusPoc Modbus TCP request sequenceproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo