{"id":"CVE-2024-10918","summary":"Stack-based Buffer Overflow in libmodbus library","details":"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.","modified":"2026-08-12T03:51:34.800083818Z","published":"2025-02-27T11:44:25.170Z","database_specific":{"cna_assigner":"Nozomi","cwe_ids":["CWE-121"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/10xxx/CVE-2024-10918.json"},"references":[{"type":"WEB","url":"https://libmodbus.org/"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00010.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2026/08/msg00003.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/10xxx/CVE-2024-10918.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-10918"},{"type":"ADVISORY","url":"https://www.nozominetworks.com/labs/vulnerability-advisories-cve-2024-10918"},{"type":"PACKAGE","url":"https://github.com/stephane/libmodbus"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/stephane/libmodbus","events":[{"introduced":"2cbafa3113e276c3697d297f68e88d112b53174d"},{"last_affected":"2cbafa3113e276c3697d297f68e88d112b53174d"}],"database_specific":{"source":["AFFECTED_FIELD","CPE_STRING"],"cpe":"cpe:2.3:a:libmodbus:libmodbus:3.1.10:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"3.1.10"},{"introduced":"3.1.10"}]}}],"versions":["3.1.10","v3.1.10"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-10918.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L"}]}