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.
Published: 2026-06-14
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is an off‑by‑one buffer overflow in the recv_msg_header() function of the Modbus/TCP server in nanoMODBUS. A remote unauthenticated attacker can send a crafted MBAP frame whose Length field is set to 255, causing a single attacker‑controlled byte to be written just past the 260‑byte receive buffer. This off‑by‑one error can corrupt adjacent memory structures, potentially leading to service disruption or other unexpected behavior, though higher‑level exploitation is not documented in the description. The flaw corresponds to classic buffer overrun weaknesses (CWE-193, CWE-787).

Affected Systems

The issue affects the debevv nanoMODBUS implementation, specifically versions up to and including 1.23.0. It originates in the Modbus/TCP server code, so any deployment that exposes this service to network traffic is impacted.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity, while the EPSS score of <1% indicates a very low probability of exploitation at present. The vulnerability is not listed in CISA’s KEV catalog. An attacker requires only network access to the Modbus/TCP port and does not need authentication. The attack vector is remote over the network. Successful exploitation can lead to loss of service due to memory corruption or potentially alter device behavior if critical memory areas are affected.

Generated by OpenCVE AI on August 11, 2026 at 00:07 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade nanoMODBUS to a version newer than 1.23.0 that addresses the buffer overflow.
  • If an update cannot be applied, restrict Modbus/TCP traffic to trusted hosts or disable the service on untrusted networks.
  • On bare‑metal or RTOS targets, enable or configure memory protection (e.g., MPU or guard pages) to prevent the overflow from reaching critical memory regions.

Generated by OpenCVE AI on August 11, 2026 at 00:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 12:00:00 +0000

Type Values Removed Values Added
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. 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.
Title nanoMODBUS - Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field nanoMODBUS Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field

Mon, 10 Aug 2026 11:45:00 +0000

Type Values Removed Values Added
Title nanoMODBUS Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field nanoMODBUS - Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field

Wed, 05 Aug 2026 13:45:00 +0000

Type Values Removed Values Added
Title Off‑by‑One Buffer Overflow in nanoMODBUS Modbus/TCP Server Allowing Unauthenticated Denial of Service and Information Disclosure nanoMODBUS Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field

Mon, 15 Jun 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sun, 14 Jun 2026 19:15:00 +0000

Type Values Removed Values Added
Title Off‑by‑One Buffer Overflow in nanoMODBUS Modbus/TCP Server Allowing Unauthenticated Denial of Service and Information Disclosure

Sun, 14 Jun 2026 18:45:00 +0000

Type Values Removed Values Added
First Time appeared Debevv
Debevv nanomodbus
Vendors & Products Debevv
Debevv nanomodbus

Sun, 14 Jun 2026 17:30:00 +0000

Type Values Removed Values Added
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.
Weaknesses CWE-193
CWE-787
References
Metrics cvssV2_0

{'score': 9, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:C'}

cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H'}

cvssV4_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'}


Subscriptions

Debevv Nanomodbus
cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-10T11:43:54.292Z

Reserved: 2026-06-13T16:39:46.122Z

Link: CVE-2026-54410

cve-icon Vulnrichment

Updated: 2026-06-15T17:00:28.535Z

cve-icon NVD

Status : Deferred

Published: 2026-06-14T18:17:20.330

Modified: 2026-08-10T12:17:16.943

Link: CVE-2026-54410

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-11T00:15:04Z

Weaknesses