Skip to content

CVE-2024-42002 Unsafe use of eval() method in ros2 topic hz tool

HighCVSS 8.6 EPSS 0.16%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

Description

A code injection vulnerability has been discovered in the Robot Operating System 2 (ROS 2) 'ros2topic' command-line tool, affecting all ROS 2 distributions from Crystal Clemmys up to and including Lyrical Luth and Rolling Ridley. 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.

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
Open Source Robotics Foundation Robot Operating System 2 (ROS 2) = Crystal Clemmys; = Dashing Diademata; = Eloquent Elusor; = Foxy Fitzroy +7 more No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
Open Source Robotics Foundation Robot Operating System 2 (ROS 2) = Rolling Ridley No fix listed
Open Source Robotics Foundation Robot Operating System 2 (ROS 2) = Lyrical Luth No fix listed
Open Source Robotics Foundation Robot Operating System 2 (ROS 2) = Kilted Kaiju No fix listed
Open Source Robotics Foundation Robot Operating System 2 (ROS 2) = Jazzy Jalisco No fix listed
Open Source Robotics Foundation Robot Operating System 2 (ROS 2) = Iron Irwini No fix listed
Open Source Robotics Foundation Robot Operating System 2 (ROS 2) = Humble Hawksbill No fix listed
Open Source Robotics Foundation Robot Operating System 2 (ROS 2) = Galactic Geochelone No fix listed
Open Source Robotics Foundation Robot Operating System 2 (ROS 2) = Foxy Fitzroy No fix listed
Open Source Robotics Foundation Robot Operating System 2 (ROS 2) = Eloquent Elusor No fix listed
Open Source Robotics Foundation Robot Operating System 2 (ROS 2) = Dashing Diademata No fix listed
Open Source Robotics Foundation Robot Operating System 2 (ROS 2) = Crystal Clemmys No fix listed

References