Skip to content
OpenAdvisories
High · 7.8 CVE-2024-41148 EUVD-2024-54798GHSA-f577-ch35-2wcx

Unsafe use of eval() method in rostopic hz 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 'hz' verb, which reports the publishing rate of a 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