# CVE-2026-71256: nanoMODBUS Client-Side Out-of-Bounds Read Leading to Wild-Pointer Write via object_id

- 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:21.992Z
- Modified: 2026-10-24T15:10:00.190Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: TuranSec

## Description

nanoMODBUS through v1.23.0 contains an out-of-bounds stack read leading to a wild-pointer write in nmbs_read_device_identification_basic / recv_read_device_identification_res in nanomodbus.c. A fixed 3-element stack array order[3] = {0,1,2} maps object IDs to buffer indices. The server-supplied object_id field (0-255, read directly from the wire) is used without any bounds check as buf_index = order[object_id].

(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-71256](https://www.cve.org/CVERecord?id=CVE-2026-71256), CVE Terms of Use, modified 2026-08-10
- NVD: [CVE-2026-71256](https://nvd.nist.gov/vuln/detail/CVE-2026-71256), Public domain, modified 2026-10-24

---

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