{"id":"CVE-2024-10918","aliases":["DEBIAN-CVE-2024-10918","DLA-4084-1","EUVD-2024-53894","GHSA-96xh-5wq4-m4cc","JLSEC-2026-1252","UBUNTU-CVE-2024-10918"],"status":"published","title":"Stack-based Buffer Overflow in libmodbus library","description":"Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer allocated for the Modbus response if the function tries to reply to a Modbus request with an\nunexpected length.","severity":{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00562,"percentile":0.47176,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-121","CWE-787"],"published":"2025-02-27T11:44:25Z","modified":"2026-11-02T12:00:23Z","fixes":[{"ecosystem":"Debian:12","package":"libmodbus","fixed_in":["3.1.6-2.1+deb12u1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libmodbus","fixed_in":["3.1.11-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libmodbus","fixed_in":["3.1.11-1"],"sources":["osv"]},{"ecosystem":"Julia","package":"LibModbus_jll","fixed_in":["3.1.12+0"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"libmodbus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.6-2.1+deb12u1"}]}],"versions":["3.1.6-2.1"]},{"source":"osv","ecosystem":"Debian:13","package":"libmodbus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.11-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libmodbus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.11-1"}]}]},{"source":"osv","ecosystem":"Debian:11","package":"libmodbus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.6-2+deb11u1"}]}],"versions":["3.1.6-2"],"bundled":5},{"source":"osv","ecosystem":"Julia","package":"LibModbus_jll","ranges":[{"type":"SEMVER","events":[{"introduced":"3.1.10+0"},{"fixed":"3.1.12+0"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"libmodbus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.4-1","3.0.5-1","3.0.5-1ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"libmodbus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.6-1","3.0.6-1ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"libmodbus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.6-2","3.0.6-2ubuntu0.1~esm1","3.0.6-2+deb9u1build0.18.04.1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"libmodbus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.6-1","3.1.6-2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libmodbus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.6-2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"libmodbus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.6-2.1","3.1.10-1ubuntu1"]}],"products":[{"vendor":"libmodbus","product":"libmodbus"}],"references":[{"url":"https://www.nozominetworks.com/labs/vulnerability-advisories-cve-2024-10918","tags":["Third Party Advisory","advisory","web","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00010.html","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/08/msg00003.html","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-10918","tags":["advisory","web"]},{"url":"https://github.com/advisories/GHSA-96xh-5wq4-m4cc","tags":["web"]},{"url":"https://libmodbus.org/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/10xxx/CVE-2024-10918.json","tags":["advisory"]},{"url":"https://github.com/stephane/libmodbus","tags":["package"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-10918","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-10918","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-10918","tags":["report"]},{"url":"https://github.com/stephane/libmodbus/commit/df79a02feb253c0a9a009bcdbb21e47581315111","tags":["report"]},{"url":"https://github.com/stephane/libmodbus/commit/81bf713cf029bfa5b5da87b945c1e8817b4398f9","tags":["report"]},{"url":"https://github.com/stephane/libmodbus/commit/d8a971e04d52be16bf405b51d934a30b8aa3f2c3","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-10918","title":"Stack-based Buffer Overflow in libmodbus library","description":"Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer allocated for the Modbus response if the function tries to reply to a Modbus request with an\nunexpected length.","status":"published","published":"2025-02-27T11:44:25.17Z","modified":"2026-08-01T18:20:11.243Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-121"],"updated_at":"2026-11-02T14:34:02.321514Z"}],"euvd":[{"id":"EUVD-2024-53894","description":"Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer allocated for the Modbus response if the function tries to reply to a Modbus request with an\nunexpected length.","status":"published","published":"2025-02-27T11:44:25Z","modified":"2026-08-01T18:20:11Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T18:02:24.819631Z"}],"ghsa":[{"id":"GHSA-96xh-5wq4-m4cc","title":"Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer...","description":"Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer allocated for the Modbus response if the function tries to reply to a Modbus request with an\nunexpected length.","status":"published","published":"2025-02-27T12:30:55Z","modified":"2026-08-01T21:31:27Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"cwes":["CWE-121","CWE-787"],"updated_at":"2026-11-02T15:10:01.548476Z"}],"nvd":[{"id":"CVE-2024-10918","description":"Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer allocated for the Modbus response if the function tries to reply to a Modbus request with an\nunexpected length.","status":"published","published":"2025-02-27T12:15:33.807Z","modified":"2026-08-01T19:16:41.023Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-121","CWE-787"],"updated_at":"2026-11-02T14:10:44.508862Z"}],"osv":[{"id":"CVE-2024-10918","title":"Stack-based Buffer Overflow in libmodbus library","description":"Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer allocated for the Modbus response if the function tries to reply to a Modbus request with an\nunexpected length.","status":"published","published":"2025-02-27T11:44:25.17Z","modified":"2026-10-28T02:31:02.266964427Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"cwes":["CWE-121"],"updated_at":"2026-11-02T15:44:37.180532Z"},{"id":"DEBIAN-CVE-2024-10918","description":"Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer allocated for the Modbus response if the function tries to reply to a Modbus request with an unexpected length.","status":"published","published":"2025-02-27T12:15:33.807Z","modified":"2026-11-02T12:00:23.546195947Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:41.849198Z"},{"id":"JLSEC-2026-1252","title":"Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer...","description":"Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer allocated for the Modbus response if the function tries to reply to a Modbus request with an\nunexpected length.","status":"published","published":"2026-08-11T14:12:22.442Z","modified":"2026-08-11T14:28:54.341482122Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:47:18.159338Z"},{"id":"UBUNTU-CVE-2024-10918","description":"Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer allocated for the Modbus response if the function tries to reply to a Modbus request with an unexpected length.","status":"published","published":"2025-02-27T12:15:00Z","modified":"2026-04-22T14:36:51.19007Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T16:54:41.555387Z"},{"id":"DLA-4084-1","title":"libmodbus - security update","status":"published","published":"2025-03-11T00:00:00Z","modified":"2026-03-09T01:21:10.637699Z","updated_at":"2026-11-02T15:46:12.7027Z"}]}}
