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 FencerVendor 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 productsnot 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
References
-
github.com
/stephane/libmodbus/commit/b4ef4c17d618eba0adccc4c7d9e9a1ef809fc9b6
patch, third-party-advisory, web
-
github.com
/stephane/libmodbus/issues/614
exploit, issue-tracking, patch, third-party-advisory, web
-
bugzilla.redhat.com
/show_bug.cgi?id=2045571
issue-tracking, third-party-advisory, web
-
lists.debian.org
/debian-lts-announce/2022/09/msg00007.html
mailing-list, third-party-advisory, web
-
lists.debian.org
/debian-lts-announce/2025/03/msg00010.html
web
Sources
- CVE List CVE-2022-0367
- NVD CVE-2022-0367
- OSV JLSEC-2026-1250
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.