Impact
nanoMODBUS up to version 1.23.0 contains an out‑of‑bounds write in the server‑side handle_read_file_record() function for Modbus function code 0x14. The code checks each sub‑request’s record length but never checks the cumulative response size before allocating and writing data. The result is a buffer overflow that can corrupt adjacent memory and potentially cause the server to crash or, in the worst case, allow arbitrary code execution. This is a classic out‑of‑bounds write (CWE‑787) that affects the integrity and availability of the application.
Affected Systems
The flaw affects the nanoMODBUS server developed by debevv. All releases up to and including version 1.23.0 are vulnerable. No other vendors or product variants appear to be impacted according to the advisory.
Risk and Exploitability
The CVSS score of 9.8 indicates a critical severity. The EPSS score of less than 1% reflects a low but non‑zero probability of exploitation in the wild. The description does not specify authentication requirements, so it is unclear whether only authenticated clients can trigger the vulnerability. Based on typical Modbus deployments, the likely attack vector is an unauthenticated network client that can send a crafted FC 0x14 request. The vulnerability is not yet listed in the CISA KEV catalog, which suggests it has not been widely exploited, but the combination of a high severity score and the ease of constructing the faulting request means the risk remains significant for exposed deployments.
OpenCVE Enrichment