C++Severity: HighStatus: Published

Memory exhaustion from unchecked lengths in message deserialization

Message readers in the Robot Raconteur core library used wire-supplied lengths and counts (strings in format v4, numeric arrays in the async reader, Extended header, entry and element fields, and nested element lists) to allocate memory before checking that the message contained that much data (CWE-789). A few bytes per field could make the receiver allocate gigabytes. Any peer that can open a connection to a Robot Raconteur transport can reach this before a session or authentication. The TCP transport’s default port is 48653. TLS and authentication do not prevent it. Affected versions are <= 1.2.9, including Robot Raconteur Core and the packages robotraconteur (pip/other), RobotRaconteurNET (nuget), RobotRaconteur.jar and RobotRaconteurMatlab. Fixed by the maintainers in 1.3.0: every length and count is checked against the remaining bytes of the section before allocating. The same release also fixes async reader format v4 header size checks and an unsigned remaining-length wraparound.

Impact

Message readers in the Robot Raconteur core library used lengths and counts from the message to allocate memory before checking that the message contained that much data (CWE-789). Those values come from:

  • strings in format v4
  • numeric arrays in the async reader
  • Extended header, entry and element fields
  • nested element lists

A few bytes per field could make the receiver allocate gigabytes. Any peer that can open a connection to a Robot Raconteur transport can reach this, before a session or authentication. The TCP transport’s default port is 48653. TLS and authentication do not prevent it: the lengths are read while the connection is being set up.

Affected versions and fix

Versions <= 1.2.9 are affected. The patched release is Robot Raconteur Core 1.3.0. The same version range applies to these packages:

  • robotraconteur (pip and other)
  • RobotRaconteurNET (nuget)
  • RobotRaconteur.jar
  • RobotRaconteurMatlab

Version 1.3.0 checks every length and count against the remaining bytes of the section before allocating. It also fixes the async reader’s format v4 header size checks and an unsigned remaining-length wraparound.

The maintainer’s fix commits are e365de0, c023c44 and 0da5e36. The tracking issue is #495. The release is v1.3.0.

The published advisory is GHSA-mp86-55qw-3rfh. It credits Ugur Celik (@ucsurf). There is no CVE. The maintainers wrote the fix in the commits above.

Workarounds

Restrict network access to Robot Raconteur ports to trusted hosts. TLS and authentication do not prevent a peer that can open a connection from sending these lengths.

Timeline

  1. Found
  2. Reported via private vulnerability report
  3. Advisory published
  4. Entry last updated

Machine-readable: JSON · Markdown · ID security/cpp/robotraconteur__robotraconteur/2026-11-20-unchecked-message-lengths-memory-exhaustion

If this work is useful to you, you can support it on Buy Me a Coffee.