All vulnerabilities
CVE-2024-42002

Robot Operating System 2 (ROS 2): Unsafe use of eval() method in ros2 topic hz tool

Open Source Robotics Foundation Robot Operating System 2 (ROS 2)
CVSS
8.6High
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.16%Chance of exploitation activity in the next 30 days, higher than 4% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed inNone listedNo source names a fixed version. Check the vendor advisory below
Published28 Sep 2026Updated 30 Sep 2026CVE List

What fixes it

No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.

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.

Text from CVE List

Affected versions 11

  • Robot Operating System 2 (ROS 2)affected: Rolling RidleyCVE List
  • Robot Operating System 2 (ROS 2)affected: Lyrical LuthCVE List
  • Robot Operating System 2 (ROS 2)affected: Kilted KaijuCVE List
  • Robot Operating System 2 (ROS 2)affected: Jazzy JaliscoCVE List
  • Robot Operating System 2 (ROS 2)affected: Iron IrwiniCVE List
  • Robot Operating System 2 (ROS 2)affected: Humble HawksbillCVE List
  • Robot Operating System 2 (ROS 2)affected: Galactic GeocheloneCVE List
  • Robot Operating System 2 (ROS 2)affected: Foxy FitzroyCVE List
  • Robot Operating System 2 (ROS 2)affected: Eloquent ElusorCVE List
  • Robot Operating System 2 (ROS 2)affected: Dashing DiademataCVE List
  • Robot Operating System 2 (ROS 2)affected: Crystal ClemmysCVE List

References 2