# CVE-2026-54410: nanoMODBUS Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field

- Severity: High 7.8 (CVSS:4.0, scored by TuranSec) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P/AU:Y`
- 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.54%, higher than 46% of CVEs (2026-12-01)
- Published: 2026-06-14T17:10:12.275Z
- Modified: 2026-08-10T12:17:16.943Z
- Weaknesses: CWE-193, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: TuranSec

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

(As written by CVE List.)

## Affected

- debevv nanoMODBUS: up to 1.23.0

## Every score

- TuranSec: CVSS:4.0 7.8 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P/AU:Y`
- TuranSec: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- TuranSec: CVSS:2.0 9.0 Critical `AV:N/AC:L/Au:N/C:P/I:P/A:C`

## References

- <https://github.com/debevv/nanoMODBUS> (product)
- <https://github.com/debevv/nanoMODBUS/blob/v1.23.0/nanomodbus.c#L369> (product)
- <https://cwe.mitre.org/data/definitions/193.html> (technical-description)
- <https://cwe.mitre.org/data/definitions/787.html> (technical-description)

## Sources

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

---

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