Libmodbus Libmodbus

Don't miss out!

Thousands of developers use stack.watch to stay informed.
Get an email whenever new security vulnerabilities are reported in Libmodbus.

By the Year

In 2026 there have been 0 vulnerabilities in Libmodbus. Last year, in 2025 Libmodbus had 1 security vulnerability published. Right now, Libmodbus is on track to have less security vulnerabilities in 2026 than it did last year.




Year Vulnerabilities Average Score
2026 0 0.00
2025 1 4.80
2024 5 6.43
2023 0 0.00
2022 1 0.00
2021 0 0.00
2020 0 0.00
2019 2 0.00

It may take a day or so for new Libmodbus vulnerabilities to show up in the stats or in the list of recent security vulnerabilities. Additionally vulnerabilities may be tagged under a different product or component name.

Recent Libmodbus Security Vulnerabilities

Stack Buffer Overflow in libmodbus v3.1.10
CVE-2024-10918 4.8 - Medium - February 27, 2025

Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer allocated for the Modbus response if the function tries to reply to a Modbus request with an unexpected length.

Stack Overflow

DoS via Invalid Pointer in libmodbus v3.1.6 modbus_receive()
CVE-2024-36845 4.3 - Medium - May 31, 2024

An invalid pointer in the modbus_receive() function of libmodbus v3.1.6 allows attackers to cause a Denial of Service (DoS) via a crafted message sent to the unit-test-server.

Resource Exhaustion

UAF in libmodbus 3.1.6 (ctx->backend) Enables DoS
CVE-2024-36844 7.5 - High - May 31, 2024

libmodbus v3.1.6 was discovered to contain a use-after-free via the ctx->backend pointer. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted message sent to the unit-test-server.

Dangling pointer

Heap Overflow in libmodbus v3.1.6 (modbus_mapping_free())
CVE-2024-36843 7.5 - High - May 31, 2024

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

Heap-based Buffer Overflow

libmodbus 3.1.10 Buffer Overflow in modbus_write_bits (CVE-2024-34244)
CVE-2024-34244 - May 08, 2024

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.

libmodbus 3.1.10 Heap Buffer Overflow in read_io_status
CVE-2023-26793 - May 01, 2024

libmodbus v3.1.10 has a heap-based buffer overflow vulnerability in read_io_status function in src/modbus.c.

Heap Buffer Overflow in libmodbus modbus_reply()
CVE-2022-0367 - August 29, 2022

A heap-based buffer overflow flaw was found in libmodbus in function modbus_reply() in src/modbus.c.

Buffer Overflow

An issue was discovered in libmodbus before 3.0.7 and 3.1.x before 3.1.5
CVE-2019-14462 - July 31, 2019

An issue was discovered in libmodbus before 3.0.7 and 3.1.x before 3.1.5. There is an out-of-bounds read for the MODBUS_FC_WRITE_MULTIPLE_COILS case, aka VD-1302.

An issue was discovered in libmodbus before 3.0.7 and 3.1.x before 3.1.5
CVE-2019-14463 - July 31, 2019

An issue was discovered in libmodbus before 3.0.7 and 3.1.x before 3.1.5. There is an out-of-bounds read for the MODBUS_FC_WRITE_MULTIPLE_REGISTERS case, aka VD-1301.

Stay on top of Security Vulnerabilities

Want an email whenever new vulnerabilities are published for Libmodbus or by Libmodbus? Click the Watch button to subscribe.

Libmodbus
Vendor

Libmodbus
Product

subscribe