PatchSiren

PatchSiren cyber security CVE debrief

CVE-2024-42002 Open Source Robotics Foundation CVE debrief

A code injection vulnerability was discovered in the 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.

Vendor
Open Source Robotics Foundation
Product
Robot Operating System 2 (ROS 2)
CVSS
HIGH 8.6
CISA KEV
Not listed in stored evidence
Original CVE published
2026-09-28
Original CVE updated
2026-11-09
Advisory published
2026-09-28
Advisory updated
2026-11-09

Who should care

Defenders responsible for ROS 2 systems, especially those with local user access, should assess exposure and prioritize patching or mitigation. This includes operators, platform administrators, vulnerability management teams, and security teams who need to ensure that ROS 2 'ros2topic' command-line tool versions are updated and configured securely.

Why it matters

CVE-2024-42002 is a code injection vulnerability in ROS 2 'ros2topic' command-line tool that allows local users to execute arbitrary code. Defenders should prioritize patching, especially in systems with local user access.

  • Local users can craft and execute arbitrary code, potentially leading to system compromise
  • Defenders must verify ROS 2 'ros2topic' command-line tool versions and configurations to ensure input sanitization
  • Patching or mitigating this vulnerability is crucial to prevent potential code execution

Technical summary

The ROS 2 'ros2topic' command-line tool is vulnerable to code injection due to the 'hz' verb accepting user-provided Python expressions via the --filter option, which are passed directly to the eval() function without sanitization. This vulnerability affects all ROS 2 distributions from Crystal Clemmys up to and including Lyrical Luth and Rolling Ridley. Local users can craft and execute arbitrary code, potentially leading to system compromise. Defenders must verify ROS 2 'ros2topic' command-line tool versions and configurations to ensure input sanitization.

Defensive priority

Defenders should prioritize patching or mitigating this vulnerability, especially in systems where local user access cannot be strictly controlled.

Recommended defensive actions

  • Patch or update ROS 2 'ros2topic' command-line tool to a version that sanitizes user input
  • Implement compensating controls to restrict local user access to the affected tool
  • Monitor systems for suspicious activity related to the 'hz' verb and --filter option
  • Review ROS 2 'ros2topic' command-line tool versions and configurations to ensure input sanitization
  • Verify ROS 2 systems for potential code execution and prioritize patching
  • Track exceptions and retest remediated assets to ensure vulnerability resolution
  • Document evidence of patching or mitigation for future reference

Evidence notes

The CVE record and NVD entry provide details about the vulnerability, but do not specify any known exploits or affected versions beyond ROS 2 distributions from Crystal Clemmys up to and including Lyrical Luth and Rolling Ridley.

Sources and references

Verified primary and authoritative sources

  • CVE-2024-42002 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2024-42002

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2024-42002 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2024-42002

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.