CVE-2019-14462 is an out-of-bounds read in libmodbus, the open-source Modbus library used in embedded gateways: a server built on it trusts the coil count in a crafted Write Multiple Coils request and reads past the received data. NVD scores it 9.1. It affects versions before 3.0.7 and 3.1.0 to 3.1.4, fixed in 3.1.5 on 29 July 2019.
Vulnerability summary
CVSS base score
9.1
Critical severity
EPSS score (FIRST)
2.0%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2019-14462 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| libmodbus (modbus_reply, Write Multiple Coils, function code 0x0F) | cpe:2.3:a:libmodbus:libmodbus:*:*:*:*:*:*:*:* | before 3.0.7 and 3.1.0 to 3.1.4; fixed in 3.0.7 and 3.1.5 (NVD, libmodbus NEWS) |
| OpenWrt packages feed libmodbus | — | 3.1.4 until the 3.1.6 update of 15 September 2019; openwrt-18.06 branch builds 3.1.4 (OpenWrt packages repository) |
| Buildroot package libmodbus | — | 3.1.4 from September 2017; bumped to 3.1.5 on 30 July 2019 (Buildroot repository) |
What does this mean for affected devices?
NVD describes CVE-2019-14462 as "an out-of-bounds read for the MODBUS_FC_WRITE_MULTIPLE_COILS case, aka VD-1302" in "libmodbus before 3.0.7 and 3.1.x before 3.1.5." NVD's Primary score is CVSS v3.1 9.1 (critical), vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H, with CWE-125 (NVD).
The bug sits in modbus_reply(), the server-side function that answers requests. A Write Multiple Coils request (function code 0x0F) carries a coil count and a byte count. Before the fix, the code checked only that the coil count was between 1 and the maximum, then copied that many bits from the request, even when the byte count and the data actually received were shorter. The fix commit, contributed by Maor Vermucht and Or Peles of VDOO, adds the check nb_bits * 8 < nb, so a request whose byte count cannot hold the declared coils gets an Illegal Data Value exception. It shipped in libmodbus 3.1.5 and the 3.0.7 backport, both dated 29 July 2019 in the libmodbus NEWS. The companion bug on Write Multiple Registers is CVE-2019-14463, whose first fix needed a correction in 3.1.6.
No CISA ICS advisory in CISA's CSAF repository names this CVE (searched 2026-11-17), so the device exposure is through firmware that bundles the library. Embedded Linux build systems show where the vulnerable versions shipped. The OpenWrt packages feed carried libmodbus 3.1.4 from May 2016 until it moved to 3.1.6 on 15 September 2019 (history), and its openwrt-18.06 branch still builds 3.1.4, checked 2026-11-17. Buildroot shipped 3.1.4 from September 2017 until it moved to 3.1.5 on 30 July 2019 and 3.1.6 on 1 August 2019 (history). A gateway or HMI image built from those trees before then carries the flaw unless the vendor patched it. The Debian Security Tracker lists the fix as 3.0.6-2+deb9u1 for stretch (DLA-2825-1) and 3.1.4-2+deb10u1 for buster, which matters for Debian-based industrial PCs.
Our Modbus protocol security guide lists this CVE with the other libmodbus parser bugs and explains why a firmware SBOM is the way to tell whether a device uses an affected version. The Buildroot and Yocto SBOM guide shows how to get that SBOM from the build, and the memory corruption fix guide covers length checks like this one as a class. The later libmodbus heap overflow in the same function is CVE-2022-0367.
To fix it, update libmodbus to 3.1.6 or later (3.0.8 on the 3.0 branch), which also covers the corrected register check. CVE-2019-14462 is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.01981, the 81st percentile, in the 2026-11-16 dataset (CISA KEV, FIRST EPSS).
Evidence
- Out-of-bounds read for MODBUS_FC_WRITE_MULTIPLE_COILS (VD-1302) in libmodbus before 3.0.7 and 3.1.x before 3.1.5; NVD Primary CVSS v3.1 9.1; CWE-125. — NVD
- Fix adds nb_bits * 8 < nb check for Write Multiple Coils; contributed by Maor Vermucht and Or Peles from VDOO. — libmodbus commit 5ccdf5e
- 3.1.5 and 3.0.7 released 2019-07-29 with VD-1301/VD-1302 fixes; 3.1.6 and 3.0.8 on 2019-07-31 fix the VD-1301 typo. — libmodbus NEWS
- OpenWrt packages libmodbus 3.1.4 from 2016-05-31, updated to 3.1.6 on 2019-09-15; openwrt-18.06 branch Makefile PKG_VERSION 3.1.4. — OpenWrt packages repository
- Buildroot libmodbus 3.1.4 from 2017-09-09, bumped to 3.1.5 on 2019-07-30 and 3.1.6 on 2019-08-01. — Buildroot repository
- Fixed in stretch 3.0.6-2+deb9u1 (DLA-2825-1) and buster 3.1.4-2+deb10u1. — Debian Security Tracker
- Not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). — CISA KEV
- EPSS 0.01981 (81st percentile), dataset 2026-11-16, read 2026-11-17. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Which libmodbus versions are affected by CVE-2019-14462?
Versions before 3.0.7 and 3.1.0 to 3.1.4. The fix is in 3.0.7 and 3.1.5, both released 29 July 2019 (per NVD and the libmodbus NEWS).
Does CVE-2019-14462 affect Modbus clients or servers?
Servers. The bug is in modbus_reply(), the function a libmodbus-based server or gateway uses to answer incoming requests (per the libmodbus fix commit).
Did OpenWrt and Buildroot ship an affected libmodbus?
Yes. Both carried libmodbus 3.1.4 until July to September 2019, and the openwrt-18.06 packages branch still builds 3.1.4, checked 2026-11-17 (per the OpenWrt and Buildroot repositories).
Is CVE-2019-14462 in the CISA KEV catalog?
No, not as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.01981, the 81st percentile, in the 2026-11-16 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?