Buffer overflow in Libmodbus
CVE-2022-0367
A heap-based buffer overflow flaw was found in libmodbus in function modbus_reply() in src/modbus.c.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.005, 40.4th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Libmodbus
- Debian Linux — versions 10.0
- Fedoraproject Extra Packages For Enterprise Linux — versions 7.0
- Fedoraproject Fedora — versions 35
- Libmodbus — versions Fixed in v3.1.7
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (w4zu/Debian_security). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/stephane/libmodbus/issues/614 (Exploit, Patch, Third Party Advisory, Issue Tracking)
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- github.com/stephane/libmodbus/commit/b4ef4c17d618eba0adccc4c7d9e9a1ef809fc9b6 (Patch, Third Party Advisory)
- [debian-lts-announce] 20220904 [SECURITY] [DLA 3098-1] libmodbus security update (mailing-list, Mailing List, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2025/03/msg00010.html