# CVE-2026-71254: nanoMODBUS Server-Side Out-of-Bounds Write in handle_read_file_record()

- Severity: Critical 9.8 (CVSS:3.1, scored by TuranSec) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-08-05T11:44:20.214Z
- Modified: 2026-10-24T15:10:00.190Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: TuranSec

## 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.

(As written by CVE List.)

## Affected

- debevv nanoMODBUS: up to 1.23.0

## References

- <https://github.com/debevv/nanoMODBUS> (third-party-advisory)
- <https://github.com/debevv/nanoMODBUS/blob/master/nanomodbus.c> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-71254](https://www.cve.org/CVERecord?id=CVE-2026-71254), CVE Terms of Use, modified 2026-08-10
- NVD: [CVE-2026-71254](https://nvd.nist.gov/vuln/detail/CVE-2026-71254), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-71254 · Whole record: https://cve.day/CVE-2026-71254.json · Rebuilt by cve.day 2026-11-25T22:59:31.098Z
