Skip to content
OpenAdvisories
High · 7.8 CVE-2024-41921 EUVD-2024-54797GHSA-7mg9-54m6-qh35

Unsafe use of eval() method in rostopic echo tool

Published Jul 17, 2025 · Updated Jul 18, 2025 · Assigned by canonical

Description

A code injection vulnerability has been discovered in the Robot Operating System (ROS) 'rostopic' command-line tool, affecting ROS distributions Noetic Ninjemys and earlier. The vulnerability lies in the 'echo' verb, which allows a user to introspect a ROS topic and accepts a user-provided Python expression via the --filter option. This input is passed directly to the eval() function without sanitization, allowing a local user to craft and execute arbitrary code.

Affected products

VendorProductAffectedFixed
Open Source Robotics Foundation Robot Operating System (ROS) Noetic Ninjemys, Melodic Morenia, Kinetic Kame, Indigo Igloo —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ros-ros-comm No fix yet —
Debian 13 ros-ros-comm No fix yet —
Debian 12 ros-ros-comm No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS ros-ros-comm No fix yet —
Ubuntu 20.04 LTS ros-ros-comm No fix yet —
Ubuntu 18.04 LTS ros-ros-comm No fix yet —
Ubuntu 16.04 LTS ros-ros-comm No fix yet —

References