Vulnerability · Published Aug 29, 2022 · Assigned by redhat
CVE-2022-0367
High 7.8
In plain English
A high-severity memory corruption in libmodbus. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.8High
Exploit odds (30 days)0.5%top 59.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
A heap-based buffer overflow flaw was found in libmodbus in function modbus_reply() in src/modbus.c.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | libmodbus | 3.1.8-r0 | ALPINE-CVE-2022-0367 |
| Alpine:v3.21 | libmodbus | 3.1.8-r0 | ALPINE-CVE-2022-0367 |
| Alpine:v3.22 | libmodbus | 3.1.8-r0 | ALPINE-CVE-2022-0367 |
| Alpine:v3.23 | libmodbus | 3.1.8-r0 | ALPINE-CVE-2022-0367 |
| Alpine:v3.24 | libmodbus | 3.1.8-r0 | ALPINE-CVE-2022-0367 |
| Debian:12 | libmodbus | 3.1.6-2.1 | DEBIAN-CVE-2022-0367 |
| Debian:13 | libmodbus | 3.1.6-2.1 | DEBIAN-CVE-2022-0367 |
| Debian:14 | libmodbus | 3.1.6-2.1 | DEBIAN-CVE-2022-0367 |
| Ubuntu:22.04:LTS | libmodbus | no fix listed | UBUNTU-CVE-2022-0367 |
| Ubuntu:24.04:LTS | libmodbus | no fix listed | UBUNTU-CVE-2022-0367 |
| Ubuntu:25.10 | libmodbus | no fix listed | UBUNTU-CVE-2022-0367 |
| Ubuntu:26.04:LTS | libmodbus | no fix listed | UBUNTU-CVE-2022-0367 |
| Ubuntu:26.10 | libmodbus | no fix listed | UBUNTU-CVE-2022-0367 |
Affected products (as reported)
Weakness: CWE-119
References
- https://github.com/stephane/libmodbus/issues/614 x_refsource_MISC
- https://bugzilla.redhat.com/show_bug.cgi?id=2045571 x_refsource_MISC
- https://github.com/stephane/libmodbus/commit/b4ef4c17d618eba0adccc4c7d9e9a1ef809fc9b6 x_refsource_MISC
- [debian-lts-announce] 20220904 [SECURITY] [DLA 3098-1] libmodbus security update mailing-list, x_refsource_MLIST
- https://lists.debian.org/debian-lts-announce/2025/03/msg00010.html