{"schemaVersion":3,"id":"CVE-2022-0367","aliases":["openSUSE-SU-2022:10196-1","UBUNTU-CVE-2022-0367","DEBIAN-CVE-2022-0367","DLA-3098-1"],"status":"published","duplicateOf":null,"title":null,"description":"A heap-based buffer overflow flaw was found in libmodbus in function modbus_reply() in src/modbus.c.","dates":{"published":"2022-08-29T14:03:05.000Z","modified":"2025-11-03T20:34:24.383Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00455,"percentile":0.38175,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00455},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00455,"percentile":0.38175}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00455,"percentile":0.38175}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_STEPHANE_LIBMODBUS","name":"Libmodbus","source":"github","url":"https://github.com/stephane/libmodbus/issues/614","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"debian","product":"libmodbus","name":"libmodbus","label":"libmodbus","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libmodbus","purlType":"deb","versions":[{"text":"< 3.1.4-2+deb10u2","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1.6-2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.4-2+deb10u2 | < 3.1.6-2.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libmodbus","name":"libmodbus","label":"libmodbus","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libmodbus","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"fedoraproject","product":"extra_packages_for_enterprise_linux","name":"extra packages for enterprise linux","label":"extra_packages_for_enterprise_linux","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0","eol":null,"hubHref":"/vendor/fedoraproject/extra_packages_for_enterprise_linux"},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"35","noFixRecorded":false,"fixedIn":null}],"versionsText":"35","eol":{"isEol":true,"eolDate":"2022-12-13T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"35","label":"35","eolFrom":"2022-12-13T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"libmodbus","product":"libmodbus","name":"libmodbus","label":"libmodbus","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.1.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.7","eol":null,"hubHref":"/vendor/libmodbus/libmodbus"},{"vendor":"opensuse","product":"libmodbus&distro=openSUSE Leap 15.4","name":"libmodbus","label":"libmodbus&distro=openSUSE Leap 15.4","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/libmodbus&distro=openSUSE Leap 15.4","purlType":"rpm","versions":[{"text":"< 3.1.6-bp154.2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.6-bp154.2.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"libmodbus&distro=SUSE Package Hub 15 SP4","name":"libmodbus","label":"libmodbus&distro=SUSE Package Hub 15 SP4","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/libmodbus&distro=SUSE Package Hub 15 SP4","purlType":"rpm","versions":[{"text":"< 3.1.6-bp154.2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.6-bp154.2.3.1","eol":null,"hubHref":null}],"affectedCount":8,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://github.com/stephane/libmodbus/issues/614","label":"github.com/stephane/libmodbus/issues/614","hostname":"github.com","tags":["X Refsource MISC","REPORT","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2045571","label":"bugzilla.redhat.com/show_bug.cgi?id=2045571","hostname":"bugzilla.redhat.com","tags":["X Refsource MISC","REPORT","Issue Tracking","Third Party Advisory"]},{"url":"https://github.com/stephane/libmodbus/commit/b4ef4c17d618eba0adccc4c7d9e9a1ef809fc9b6","label":"github.com/stephane/libmodbus/commit/b4ef4c17d618eba0adccc4c7d9e9a1ef809fc9b6","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00007.html","label":"lists.debian.org/debian-lts-announce/2022/09/msg00007.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00010.html","label":"lists.debian.org/debian-lts-announce/2025/03/msg00010.html","hostname":"lists.debian.org","tags":[]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/EIOLFKKA6W3QAHUVQZV5YYSRIKTNBNBP/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1195124","label":"bugzilla.suse.com/1195124","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0367","label":"www.suse.com/security/cve/CVE-2022-0367","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2022-0367","label":"ubuntu.com/security/CVE-2022-0367","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-0367","label":"www.cve.org/CVERecord?id=CVE-2022-0367","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-0367","label":"security-tracker.debian.org/tracker/CVE-2022-0367","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-4084-1"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-08-29T14:03:05.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-03T20:34:24.383Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T06:27:00.632Z","stale":false,"partial":false}}