Security Advisory

CVE-2019-14463: libmodbus Write Registers OOB Read

Last updated:
  • CVE-2019-14463

CVE-2019-14463 is an out-of-bounds read in libmodbus, the open-source Modbus library used in embedded gateways: a crafted Write Multiple Registers request makes the server read past the received data. NVD scores it 9.1 and lists the fix in 3.1.5 (29 July 2019), but that fix used the wrong length test; libmodbus 3.1.6 and 3.0.8 corrected it on 31 July 2019.

Vulnerability summary

CVSS base score

9.1

Critical severity

EPSS score (FIRST)

1.9%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2019-14463 · Source: NVD

Affected components

ComponentCPEVersion range
libmodbus (modbus_reply, Write Multiple Registers, function code 0x10)cpe:2.3:a:libmodbus:libmodbus:*:*:*:*:*:*:*:*before 3.0.7 and 3.1.0 to 3.1.4 (NVD); complete check in 3.0.8 and 3.1.6 (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; 3.1.5 on 30 July 2019, 3.1.6 on 1 August 2019 (Buildroot repository)

What does this mean for affected devices?

NVD describes CVE-2019-14463 as "an out-of-bounds read for the MODBUS_FC_WRITE_MULTIPLE_REGISTERS case, aka VD-1301" 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).

A Write Multiple Registers request (function code 0x10) declares a register count and a byte count. modbus_reply() checked the register count against the maximum and then copied two bytes per register from the request, whatever the byte count said. The first fix, by Maor Vermucht and Or Peles of VDOO and released in 3.1.5 and 3.0.7 on 29 July 2019, reused the coil test nb_bytes * 8 < nb. That test is wrong for registers, which take 16 bits each, so a short request could still pass. Two days later the maintainer replaced it with nb_bytes != nb * 2 (commit 6f915d4, 3.0 backport); the libmodbus NEWS lists it for 3.1.6 and 3.0.8 as "Fix awful typo in fix for VD-1301 vulnerability."

The practical result: NVD's range treats 3.1.5 and 3.0.7 as fixed, so a scanner that matches only on NVD versions passes them, but the complete check is in 3.1.6 and 3.0.8. The Coils companion is CVE-2019-14462, whose fix needed no correction.

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. Buildroot's 3.1.5 build lasted two days before the 3.1.6 bump. 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, and notes the 3.1.6 correction commit among its references.

Our Modbus protocol security guide lists this CVE with the other libmodbus parser bugs and explains how a firmware SBOM shows the stack version. The Buildroot and Yocto SBOM guide covers getting that SBOM from the build, and the memory corruption fix guide covers length checks as a class. The later write-and-read overflow in the same function is CVE-2022-0367.

To fix it, update libmodbus to 3.1.6 or later, or 3.0.8 on the 3.0 branch. CVE-2019-14463 is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.01927, the 80th percentile, in the 2026-11-16 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • Out-of-bounds read for MODBUS_FC_WRITE_MULTIPLE_REGISTERS (VD-1301) in libmodbus before 3.0.7 and 3.1.x before 3.1.5; NVD Primary CVSS v3.1 9.1; CWE-125. — NVD
  • First fix adds nb_bytes * 8 < nb for Write Multiple Registers; contributed by Maor Vermucht and Or Peles from VDOO. — libmodbus commit 5ccdf5e
  • Correction replaces the check with nb_bytes != nb * 2 ("Fix my so stupid fix for VD-1301 vulnerability"). — libmodbus commit 6f915d4
  • 3.0 branch correction nb_bytes != 2 * nb. — libmodbus commit 64cd092
  • 3.1.5/3.0.7 released 2019-07-29; 3.1.6/3.0.8 released 2019-07-31 with "Fix awful typo in fix for VD-1301 vulnerability". — libmodbus NEWS
  • OpenWrt packages libmodbus 3.1.4 until 3.1.6 on 2019-09-15; openwrt-18.06 branch builds 3.1.4. — OpenWrt packages repository
  • Buildroot libmodbus 3.1.4 from 2017-09-09; 3.1.5 on 2019-07-30; 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; notes reference commits 5ccdf5e, 6f915d4, 2b5cb58, 64cd092. — Debian Security Tracker
  • Not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). — CISA KEV
  • EPSS 0.01927 (80th percentile), dataset 2026-11-16, read 2026-11-17. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. libmodbus fix commit 5ccdf5e (VD-1301 and VD-1302)
  3. libmodbus correction commit 6f915d4 (VD-1301)
  4. libmodbus 3.0 branch correction commit 64cd092
  5. libmodbus NEWS
  6. OpenWrt packages: libmodbus Makefile history
  7. Buildroot: package/libmodbus history
  8. Debian Security Tracker
  9. CISA KEV
  10. FIRST EPSS

Frequently asked questions

Is libmodbus 3.1.5 safe from CVE-2019-14463?

Not fully. NVD lists 3.1.5 as fixed, but its register check used the wrong length test; libmodbus 3.1.6 and 3.0.8, released 31 July 2019, corrected it (per the libmodbus NEWS and commit 6f915d4).

What is the difference between CVE-2019-14462 and CVE-2019-14463?

CVE-2019-14462 (VD-1302) is the Write Multiple Coils case and CVE-2019-14463 (VD-1301) the Write Multiple Registers case of the same missing byte-count check in modbus_reply() (per NVD).

Did embedded Linux build systems ship an affected libmodbus?

Yes. OpenWrt's packages feed and Buildroot carried libmodbus 3.1.4 until 2019, and the openwrt-18.06 branch still builds 3.1.4, checked 2026-11-17 (per the OpenWrt and Buildroot repositories).

Is CVE-2019-14463 in the CISA KEV catalog?

No, not as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.01927, the 80th percentile, in the 2026-11-16 dataset (per CISA KEV and FIRST EPSS).