CVE-2026-71254 Details
Description
nanoMODBUS through v1.23.0 contains an out-of-bounds write in the Modbus server-side handle_read_file_record function (FC 0x14, Read File Record) in nanomodbus.c. The function validates that the total request size does not exceed 245 bytes and that each sub-request's record_length is at most 124, but it never validates the CUMULATIVE response size across all sub-requests before processing them.
A vulnerability allowing out-of-bounds write has been identified in nanoMODBUS versions through 1.23.0. The issue arises in the Modbus server-side function handle_read_file_record() within nanomodbus.c. This function improperly validates the cumulative response size across sub-requests before processing them, leading to potential memory corruption. An unauthenticated network client can exploit this vulnerability, causing denial-of-service or possibly allowing remote code execution, especially on embedded systems without memory protection.
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 Aug 5, 2026CISA-ADP
Assessed Aug 5, 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://github.com/debevv/nanoMODBUS | TuranSec | Vendor |
| https://github.com/debevv/nanoMODBUS/blob/master/nanomodbus.c | TuranSec | Source CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | TuranSec |
Affected Products
| Product | Versions |
|---|---|
| debevv nanoMODBUS | <= 1.23.0 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 10, 2026 | CVE Modified | TuranSec |
| Aug 5, 2026 | CVE Modified | CISA-ADP |
| Aug 5, 2026 | New CVE Received | TuranSec |
Volerion