CVE-2026-54410 Details
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.
A buffer overflow vulnerability has been identified in nanoMODBUS versions through 1.23.0, specifically within the Modbus/TCP server implementation. The issue arises in the recv_msg_header() function, where remote, unauthenticated attackers can exploit the vulnerability by sending a crafted MBAP frame with the Length field set to 255. This manipulation causes the server to write one byte beyond the end of a 260-byte receive buffer, corrupting adjacent memory and leading to invalid memory accesses. On bare-metal and RTOS targets without memory protection, this overflow could result in unauthorized information disclosure and unintended writes to register addresses during the handling of Write Multiple Registers (FC16) commands, causing a denial-of-service condition.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 14, 2026CISA-ADP
Assessed Jun 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cwe.mitre.org/data/definitions/193.html | TuranSec | |
| https://cwe.mitre.org/data/definitions/787.html | TuranSec | Not Applicable |
| https://github.com/debevv/nanoMODBUS | TuranSec | Vendor |
| https://github.com/debevv/nanoMODBUS/blob/v1.23.0/nanomodbus.c#L369 | TuranSec | Source CodeVendor |
Weakness Enumeration
Affected Products
| Product | Versions |
|---|---|
| nanoMODBUS | <= 1.23.0 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 10, 2026 | CVE Modified | TuranSec |
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | TuranSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 14, 2026 | New CVE Received | TuranSec |
Volerion