{"id":"CVE-2026-54410","aliases":["EUVD-2026-36661","GHSA-6f53-f2m4-6j2h"],"status":"published","title":"nanoMODBUS Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field","description":"nanoMODBUS through v1.23.0 contains an off-by-one buffer overflow in the recv_msg_header function of the Modbus/TCP server that allows remote unauthenticated attackers to write one attacker-controlled byte past the end of the 260-byte receive buffer by sending a crafted MBAP frame whose Length field is set to 255.","severity":{"version":"4.0","score":7.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P/AU:Y","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00541,"percentile":0.45961,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-193","CWE-787"],"published":"2026-06-14T17:10:12Z","modified":"2026-10-28T02:30:26Z","products":[{"vendor":"debevv","product":"nanomodbus"}],"references":[{"url":"https://github.com/debevv/nanoMODBUS","tags":["product","package"]},{"url":"https://github.com/debevv/nanoMODBUS/blob/v1.23.0/nanomodbus.c#L369","tags":["product","web"]},{"url":"https://cwe.mitre.org/data/definitions/193.html","tags":["technical-description","article"]},{"url":"https://cwe.mitre.org/data/definitions/787.html","tags":["technical-description","article"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54410","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-6f53-f2m4-6j2h"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54410.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-54410","title":"nanoMODBUS Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field","description":"nanoMODBUS through v1.23.0 contains an off-by-one buffer overflow in the recv_msg_header function of the Modbus/TCP server that allows remote unauthenticated attackers to write one attacker-controlled byte past the end of the 260-byte receive buffer by sending a crafted MBAP frame whose Length field is set to 255.","status":"published","published":"2026-06-14T17:10:12.275Z","modified":"2026-08-10T11:43:54.292Z","cvss":[{"version":"4.0","score":7.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P/AU:Y","level":"high","assessor":"cna"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","level":"high","assessor":"cna"},{"version":"2.0","score":9,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:C","assessor":"cna"}],"cwes":["CWE-193","CWE-787"],"updated_at":"2026-11-02T13:38:09.774038Z"}],"euvd":[{"id":"EUVD-2026-36661","description":"nanoMODBUS through v1.23.0 contains an off-by-one buffer overflow in the recv_msg_header function of the Modbus/TCP server that allows remote unauthenticated attackers to write one attacker-controlled byte past the end of the 260-byte receive buffer by sending a crafted MBAP frame whose Length field is set to 255.","status":"published","published":"2026-06-14T17:10:12Z","modified":"2026-08-10T11:43:54Z","cvss":[{"version":"4.0","score":7.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P/AU:Y","level":"high"}],"updated_at":"2026-11-02T18:02:06.086083Z"}],"ghsa":[{"id":"GHSA-6f53-f2m4-6j2h","title":"nanoMODBUS through v1.23.0 contains an off-by-one buffer overflow in the recv_msg_header()...","description":"nanoMODBUS through v1.23.0 contains an off-by-one buffer overflow in the recv_msg_header() function of the Modbus/TCP server that allows remote unauthenticated attackers to write one attacker-controlled byte past the end of the 260-byte receive buffer by sending a crafted MBAP frame whose Length field is set to 255. The overflow corrupts the adjacent buffer-index field of the nanoMODBUS state structure, resulting in denial of service through invalid memory accesses and, on bare-metal and RTOS targets without memory protection, one-byte information disclosure and writes to unintended register addresses on the Write Multiple Registers (FC16) handler path.","status":"published","published":"2026-06-14T18:32:35Z","modified":"2026-06-14T18:32:41Z","cvss":[{"version":"4.0","score":7.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:X/V:X/RE:X/U:X","level":"high"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","level":"high"}],"cwes":["CWE-193"],"updated_at":"2026-11-02T15:08:45.788743Z"}],"nvd":[{"id":"CVE-2026-54410","description":"nanoMODBUS through v1.23.0 contains an off-by-one buffer overflow in the recv_msg_header function of the Modbus/TCP server that allows remote unauthenticated attackers to write one attacker-controlled byte past the end of the 260-byte receive buffer by sending a crafted MBAP frame whose Length field is set to 255.","status":"published","published":"2026-06-14T18:17:20.33Z","modified":"2026-08-10T12:17:16.943Z","cvss":[{"version":"4.0","score":7.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","level":"high","assessor":"secondary"},{"version":"2.0","score":9,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:C","level":"high","assessor":"secondary"}],"cwes":["CWE-193","CWE-787"],"updated_at":"2026-11-02T14:12:23.846948Z"}],"osv":[{"id":"CVE-2026-54410","title":"nanoMODBUS Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field","description":"nanoMODBUS through v1.23.0 contains an off-by-one buffer overflow in the recv_msg_header function of the Modbus/TCP server that allows remote unauthenticated attackers to write one attacker-controlled byte past the end of the 260-byte receive buffer by sending a crafted MBAP frame whose Length field is set to 255.","status":"published","published":"2026-06-14T17:10:12.275Z","modified":"2026-10-28T02:30:26.459503519Z","cvss":[{"version":"4.0","score":7.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P/AU:Y","level":"high"}],"cwes":["CWE-193","CWE-787"],"updated_at":"2026-11-02T15:45:10.818486Z"}]}}
