{"id":"CVE-2026-54410","summary":"nanoMODBUS Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field","details":"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.","modified":"2026-10-28T02:30:26.459503519Z","published":"2026-06-14T17:10:12.275Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54410.json","cna_assigner":"TuranSec","cwe_ids":["CWE-193","CWE-787"]},"references":[{"type":"WEB","url":"https://github.com/debevv/nanoMODBUS/blob/v1.23.0/nanomodbus.c#L369"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54410.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54410"},{"type":"PACKAGE","url":"https://github.com/debevv/nanoMODBUS"},{"type":"ARTICLE","url":"https://cwe.mitre.org/data/definitions/193.html"},{"type":"ARTICLE","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/debevv/nanomodbus","events":[{"introduced":"0"},{"last_affected":"91d6782930ee263bc760f27b0cbc5b82773c5f0d"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"1.23.0"}],"source":"AFFECTED_FIELD"},{"source":"DESCRIPTION","range":[{"introduced":"0"},{"last_affected":"1.23.0"}]}]}}],"versions":["v1.23.0","v1.22.1","v1.22.0","v1.21.0","v1.20.1","v1.20.0","v1.19.0","v1.18.1","v1.17.3","v1.17.2","v1.17.1","v1.17.0","v1.16.0","v1.15.0","v1.14.3","v1.14.2","v1.14.1","v1.14.0","v1.13.0","v1.12.1","v1.12.0","v1.11.0","v1.10.0","v1.9.1","v1.9.0","v1.8.1","v1.8.0","v1.7.0","v1.6.0","v1.5.0","v1.4.0","v1.3.1","v1.3.0","v1.2.1","v1.2.0","v1.1.1","v1.1.0","v1.0.1","v1.0.0","v1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54410.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}