CVE-2026-54410
published high CVSS 4.0 · 7.8nanoMODBUS Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| debevv | — | nanoMODBUS0 through 1.23.0 · Other versions: unknown | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- TuranSec · cna
- Vector string
- 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
- Scenarios
- en: An attacker who can reach the TCP listening port of a Modbus/TCP server built on nanoMODBUS (typically TCP/502 on industrial / OT networks) sends a single crafted MBAP frame with Length=255 to corrupt the buf_idx field of the nmbs_t struct, causing denial of service or, on memory-protection-less embedded targets, additional information disclosure or unintended register writes.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.6 | high | TuranSec · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H | en: GENERAL |
| 2.0 | 9.0 | high | TuranSec · cna | AV:N/AC:L/Au:N/C:P/I:P/A:C | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| debevv | nanoMODBUS | 0 through 1.23.0 (affected · semver)Default: unknown | TuranSec · cna |
Weaknesses
2- CWE-193 CWE-193 Off-by-one Error
- CWE-787 CWE-787 Out-of-bounds Write
References
4- CWE-193: Off-by-one Error https://cwe.mitre.org/data/definitions/193.html
- CWE-787: Out-of-bounds Write https://cwe.mitre.org/data/definitions/787.html
- nanoMODBUS - upstream repository (vendor) https://github.com/debevv/nanoMODBUS
- Vulnerable bounds check at nanomodbus.c line 369 (v1.23.0) https://github.com/debevv/nanoMODBUS/blob/v1.23.0/nanomodbus.c#L369
Provider assertions
2TuranSec · cna
nanoMODBUS Off-by-One Buffer Overflow in recv_msg_header() via Crafted MBAP Length Field
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6466157521f0593296708d616e070042046d5eff8f09198b5cb3681293a6600b
- Ingested
- 23 Sep 2026, 09:20:18 UTC
- Source record
- Official CVE record