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 Ly…
- CVSS
- 8.4High
- Chance of exploitation (EPSS)
- 0.16%
- Published
- Sep 28, 2026
- In the news
- Not yet
What to do
A serious code injection flaw that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Open Source Robotics Foundation Robot Operating System 2 Ros 2
- Crystal Clemmys; Dashing Diademata; Eloquent Elusor; Foxy Fitzroy; Galactic Geochelone; Humble Hawksbill; Iron Irwini; Jazzy Jalisco
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.
Affected products
Get alerts for these →No product list yet. It usually appears within a few days of publication.
Timeline 1
Latest change: CVE-2024-42002 published (CVSS 8.4) (Sep 28, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Mon, Sep 28, 2026
- CVECVE-2024-42002 published (CVSS 8.4)CVE Program · 22:17 UTC
References 2
- github.com /ros2/ros2cli/pull/1001
- github.com /ros2/ros2cli/pull/133#discussion_r223081766