Skip to content
Fencer Intel
high 7.8

CVE-2022-0367 json

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

published 4y ago modified 2mo ago also EUVD-2022-15522 , JLSEC-2026-1250

cvss
7.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 40%
public exploits
0
none known

Summary

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

Patch / fix

  • julia LibModbus_jll 3.1.10+0
  • libmodbus libmodbus 3.1.7
  • libmodbus Debian 14, Debian 13, Debian 12 3.1.6-2.1

debian advisories DEBIAN-CVE-2022-0367

  • libmodbus Package Hub 15 SP4, openSUSE Leap 15.4 3.1.6-bp154.2.3.1

opensuse advisories openSUSE-SU-2022:10196-1

  • libmodbus Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 3.1.8-r0

alpine advisories ALPINE-CVE-2022-0367

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2022-0367 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-0367 updated cvss 6.7

libmodbus: Heap-based Buffer Overflow in modbus_reply

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.46% chance of exploitation in the next 30 days, higher than 40% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • github.com https://github.com/stephane/libmodbus/issues/614 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
julia LibModbus_jll
<3.1.10+0
3.1.10+0

Affected products

  • n/a libmodbus

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
  • CWE-787 Out-of-bounds Write

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.