{"id":"CVE-2022-0367","published":"2022-08-29T14:03:05Z","modified":"2025-11-03T20:34:24Z","title":"A heap-based buffer overflow flaw was found in libmodbus in function modbus_reply() in src/modbus.c","vendor":null,"product":null,"tier":"tail","description":{"text":"A heap-based buffer overflow flaw was found in libmodbus in function modbus_reply() in src/modbus.c.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0046,"percentile":0.40645,"provenance":"source"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"references":[{"url":"https://github.com/stephane/libmodbus/issues/614","tags":["x_refsource_MISC"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2045571","tags":["x_refsource_MISC"]},{"url":"https://github.com/stephane/libmodbus/commit/b4ef4c17d618eba0adccc4c7d9e9a1ef809fc9b6","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00007.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00010.html","tags":[]}],"priority":{"score":8.1,"factors":[{"name":"EPSS percentile","points":8.13}]},"affectedVersions":[{"vendor":"n/a","product":"libmodbus","versions":["Fixed in v3.1.7"]}],"euvd":{"id":"EUVD-2022-15522","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2019-14462-family-cve-2019-14462","parents":[{"from":"CVE-2019-14462","to":"CVE-2022-0367","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/modbus.c"],"commits":["https://github.com/stephane/libmodbus/commit/5ccdf5ef79d742640355d1132fa9e2abc7fbaefc","https://github.com/stephane/libmodbus/commit/b4ef4c17d618eba0adccc4c7d9e9a1ef809fc9b6"],"basis":"shared function","functions":["modbus_reply"]}]},{"from":"CVE-2019-14463","to":"CVE-2022-0367","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/modbus.c"],"commits":["https://github.com/stephane/libmodbus/commit/5ccdf5ef79d742640355d1132fa9e2abc7fbaefc","https://github.com/stephane/libmodbus/commit/b4ef4c17d618eba0adccc4c7d9e9a1ef809fc9b6"],"basis":"shared function","functions":["modbus_reply"]}]}]}}