CWE-193Weakness · CWE-193

CVE-2026-54410

HIGH · 8.6 CVSS v3.1 Published 2026-06-14
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
95/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

An off-by-one buffer overflow in nanoMODBUS library's recv_msg_header() function allows remote unauthenticated attackers to write one attacker-controlled byte past the end of a 260-byte receive buffer by sending a crafted Modbus/TCP MBAP frame with the Length field set to 255, corrupting an adjacent buffer-index field in the state structure and enabling denial of service through invalid memory accesses, and on bare-metal/RTOS targets without memory protection, limited information disclosure and writes to unintended register addresses via the Write Multiple Registers (FC16) handler.

MitigationUpgrade to nanoMODBUS v1.23.1 or later which contains proper bounds checking in recv_msg_header(); if immediate patching is not possible, restrict network access to the Modbus/TCP service via firewall or network segmentation.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify nanoMODBUS presence
    Search for nanoMODBUS library files or headers in the project (e.g., modbus.h, modbus.c, or any file referencing 'nanoMODBUS' in the codebase or installed packages)
    Affected if nanoMODBUS library is present and used for Modbus communication
  2. Determine installed version
    Check the version string in source files, headers, or build configuration (look for version macros or constants, often in modbus.h or similar header files)
    Affected if Version is v1.23.0 or earlier (the vulnerability affects through v1.23.0)
  3. Verify Modbus TCP (MBAP) processing is enabled
    Inspect the code to confirm the application uses Modbus TCP transport (look for MBAP header parsing, typically involving recv_msg_header or similar function calls)
    Affected if The application processes Modbus TCP frames with MBAP headers using the vulnerable recv_msg_header function
  4. Check if Length field is validated
    Search the recv_msg_header function or its callers for bounds checking on the MBAP Length field; verify if Length > 253 (260-7) is rejected before buffer access
    Affected if The MBAP Length field from network packets is not properly validated against buffer size before being used, allowing values up to 255 to trigger the overflow
  5. Monitor for crash or memory corruption indicators
    If running, check logs/dmesg for crashes in recv_msg_header or adjacent memory corruption errors; look for unexpected behavior when processing Modbus TCP frames
    Affected if Application crashes or exhibits memory corruption when receiving Modbus TCP frames with Length field set to 255 (0xFF)

User is affected if nanoMODBUS v1.23.0 or earlier is in use and the application processes Modbus TCP frames with the vulnerable recv_msg_header function without proper Length field validation.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade to nanoMODBUS v1.23.1 or later which contains proper bounds checking in recv_msg_header(); if immediate patching is not possible, restrict network access to the Modbus/TCP service via firewall or network segmentation.

Have this fixed Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing12.0 h
  • Review / QA4.0 h
28.0 hours of engineering $4,760
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $7,616.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-54410 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-54410 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data