CVE-2024-34244
High · 7.5CVSS
7.5
EPSS
0.5%
Published
May 8, 2024
CISA due date
—
Cloudanix analysis
A problem in a widely used industrial communication tool can let attackers send bad messages that crash connected equipment and interrupt work.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflow in modbus_write_bits allows out-of-bounds read from specially crafted input, leading to crashes or undefined behavior.
Why it matters to the business
Systems relying on this library for industrial communications may experience sudden outages or erratic behavior, disrupting operations with low likelihood of data theft.
How an attack unfolds
An attacker sends a malformed request to a service using the vulnerable modbus_write_bits function, triggering the overflow during input processing.
How to fix it
Upgrade libmodbus to the latest stable release that resolves the overflow in modbus_write_bits; recompile dependent applications and validate through testing.
How to confirm the fix worked
Confirm the installed libmodbus version exceeds 3.1.10 and perform fuzz testing of modbus_write_bits with boundary inputs to ensure no crashes occur.
Typical attack path
- Identify a network-exposed service using libmodbus
- Craft a Modbus request with oversized or invalid bit data targeting modbus_write_bits
- Transmit the payload over the network
- Trigger out-of-bounds read resulting in crash or side effects
How to detect it
Review application logs and process crash dumps for segmentation faults or abnormal terminations when handling Modbus write requests; correlate with inbound traffic spikes on port 502.
What your security team should do
- Inventory all deployments using libmodbus and schedule upgrades
- Apply network segmentation to limit exposure of Modbus services
- Monitor for unusual crashes or restarts in affected processes
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | libmodbus | 0 | No fix |
| Debian:12 | libmodbus | 0 | No fix |
| Debian:13 | libmodbus | 0 | No fix |
| Ubuntu:20.04:LTS | libmodbus | 0 | No fix |
| Ubuntu:22.04:LTS | libmodbus | 0 | No fix |
| Ubuntu:24.04:LTS | libmodbus | 0 | No fix |
| Ubuntu:24.10 | libmodbus | 0 | No fix |
| Ubuntu:25.04 | libmodbus | 0 | No fix |
| Ubuntu:25.10 | libmodbus | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | libmodbus | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | libmodbus | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | libmodbus | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | libmodbus | 0 | No fix |
Related vulnerabilities
- CVE-2024-36844 libmodbus v3.1.6 was discovered to contain a use-after-free via the ctx->backend pointer. Also affects libmodbus
- CVE-2024-36845 An invalid pointer in the modbus_receive() function of libmodbus v3.1.6 allows attackers… Also affects libmodbus
- CVE-2024-36843 libmodbus v3.1.6 was discovered to contain a heap overflow via the modbus_mapping_free()… Also affects libmodbus
- CVE-2023-26793 libmodbus v3.1.10 has a heap-based buffer overflow vulnerability in read_io_status… Also affects libmodbus
- CVE-2026-112108 A vulnerability was determined in ztxz16 fastllm up to 0.1.8.2. CWE-120
- CVE-2026-90804 A vulnerability was detected in GNU Binutils 2.47. CWE-120
- CVE-2026-90803 A security vulnerability has been detected in GNU Binutils 2.47. CWE-120
- CVE-2026-90801 A security flaw has been discovered in GNU Binutils 2.47. CWE-120