libnodave Read Past an S7 Response Buffer
CVE-2026-138309 affects lettoz libnodave through 0.8.5. The defect is an out-of-bounds read in _daveSetupReceivedPDU() while handling an S7 response PDU. The parser uses data from the response without proving that the buffer contains the required fields and length. The vulnerability is remotely reachable, and the public issue includes exploit information.
libnodave is a client library for Siemens S7 industrial controllers. Its position in engineering tools, gateways and custom integrations makes it part of the operational technology trust boundary even when it is not the most visible component in a network diagram.
Why a read matters
An out-of-bounds read can disclose adjacent memory or crash the parser. In a long-running gateway, a crash can interrupt collection, alarm forwarding or control workflows. The immediate integrity impact may appear limited, but the availability consequences depend on what the process is controlling and whether it fails open, fails closed or restarts with default state.
The public bug report says the project has not responded. That changes the response model. Operators cannot wait for a vendor package to appear under the same name. They need to identify their build origin, test a local patch or replace the component, and protect the network path in the meantime.
Identify the dependency
Search source trees, package inventories and container image layers for libnodave. Ask vendors of PLC gateways and HMI products whether the library is bundled. Look for the affected function or commit state when source is available. A product inventory that lists only the gateway model will miss embedded clients.
Restrict S7 traffic to expected engineering and gateway addresses. Do not treat TCP 102 as a sufficient fingerprint of libnodave; many unrelated systems expose the S7 service. Capture a baseline of valid peers and alert on new hosts that initiate sessions.
Patch and verify
Apply a reviewed fix that validates PDU length before each field read. Rebuild the client, run malformed-response tests in a lab and confirm that a bad PDU produces a clean error rather than a crash. Monitor process restarts and memory faults after deployment. Replace unmaintained integrations when a supported library offers the same function.
Top comments (0)